Get inbound SMS messages

If for some reason you are unable to receive incoming SMS to the endpoint of your choice in real time, you can use this API call to fetch messages. Each request will return a batch of received messages - only once. The API request will only return new messages that arrived since the last API request.

Please log in to see full path URL. Learn why.
get
/sms/1/inbox/reports
query Parameters
limit
integer <int32>
Example: limit=2

Maximum number of messages to be returned in a response. If not set, the latest 50 records are returned. Maximum limit value is 1000 and you can only access messages for the last 48h.

applicationId
string
Example: applicationId=marketing-automation-application

Application id that the message is linked to. For more details, see our documentation.

entityId
string
Example: entityId=promotional-traffic-entity

Entity id that the message is linked to. For more details, see our documentation.

campaignReferenceId
string
Example: campaignReferenceId=summersale

ID of a campaign that was sent in the message.

Responses

default

successful response

401

Unauthorized

403

Forbidden

4XX

Error responses

500

Internal Server Error

5XX

Error responses

Request samples

Example
cURL
Copy
curl -L -g 'https://{baseUrl}/sms/1/inbox/reports?limit=2&applicationId=marketing-automation-application&entityId=promotional-traffic-entity&campaignReferenceId=summersale' \
-H 'Authorization: {authorization}' \
-H 'Accept: application/json'

Response samples

Content type
Copy
Collapse all
{
  • "results":
    [
    • {
      • "messageId": "817790313235066447",
      • "from": "385916242493",
      • "to": "385921004026",
      • "text": "QUIZ Correct answer is Paris",
      • "cleanText": "Correct answer is Paris",
      • "keyword": "QUIZ",
      • "receivedAt": "2019-11-09T16:00:00.000+0000",
      • "smsCount": 1,
      • "price":
        {
        • "pricePerMessage": 0,
        • "currency": "EUR"
        },
      • "callbackData": "callbackData"
      }
    ],
  • "messageCount": 1,
  • "pendingMessageCount": 0
}

Encountering issues

Contact our support

What's new? Check out

Release Notes

Unsure about a term? See

Glossary

Research panel

Help shape the future of our products
Learn more
Service status

Copyright @ 2006-2025 Infobip ltd.