Receive inbound SMS messages Webhook
If you want to receive SMS messages from your subscribers we can have them delivered to you in real time. When you buy a number capable of receiving SMS, set the inbound configuration for the number by specifying your endpoint and we will send inbound messages to you as soon as they are delivered to us by a mobile network operator.
Name of the default format or renderer for the inbound SMS messages is MO_JSON_2
, and is documented in this section.
Request Body schema:
application/jsonresults | Array of objects | ||||||||||||||||||||||||||
Array
| |||||||||||||||||||||||||||
messageCount | integer <int32> Number of returned messages in this request. | ||||||||||||||||||||||||||
pendingMessageCount | integer <int32> Number of remaining new messages on Infobip servers ready to be returned in the next request. |
Responses
Your server returns this code if it accepts the callback
Request samples
- Payload
Received SMS
{- "results": [
- {
- "messageId": "817790313235066447",
- "from": "385916242493",
- "to": "385921004026",
- "text": "QUIZ Correct answer is Paris",
- "cleanText": "Correct answer is Paris",
- "keyword": "QUIZ",
- "receivedAt": "2016-10-06T09:28:39.220+0000",
- "smsCount": 1,
- "price": {
- "pricePerMessage": 0,
- "currency": "EUR"
}, - "callbackData": "callbackData"
}
], - "messageCount": 1,
- "pendingMessageCount": 0
}
Need assistance
Encountering issues
What's new? Check out
Unsure about a term? See