Message cache
Read and delete cached inbound SMS messages from leased numbers.
The cache stores inbound SMS messages for leased numbers when caching is enabled.
Configure the cache in the portal under Numbers / SMS Numbers → 3. Forward received SMS (optional).
Fetch the next message
Use Api/Cache/GetNextMessage to read the oldest cached message.
If you omit MobileNumber, the service returns the oldest message across all leased numbers on the account.
UserName
Required
Username
Password
Required
Password
MobileNumber
Optional
Leased SMS number in international or national format
Examples:
/Api/Cache/GetNextMessage?Username=xxx&Password=yyy
/Api/Cache/GetNextMessage?Username=xxx&Password=yyy&MobileNumber=+41763331111Response structure
<IncomingSMS>
<Result>
<ResultCode></ResultCode>
<ResultText></ResultText>
</Result>
<MessageID></MessageID>
<SMS>
<Message></Message>
<AddressTo></AddressTo>
<AddressFrom></AddressFrom>
<TimeStamp></TimeStamp>
</SMS>
</IncomingSMS>Delete a cached message
Use Api/Cache/DeleteMessage to remove a cached message after processing it.
This only deletes the cached copy. The message stays visible under Received Messages.
UserName
Required
Username
Password
Required
Password
MessageID
Required
Message ID returned by GetNextMessage
Example:
Delete response
Last updated
Was this helpful?
