Get SMS message

GET /sms/inbound/{messageID}

Path parameters

  • messageID integer(int64) Required

    ID of message to return

Responses

  • 200 application/json

    Successful operation

    Hide response attributes Show response attributes object
    • messageID integer

      The ID of the message

    • from string

      The msisdn the message was sent from

    • to string

      The msisdn the message was sent to

    • body string

      The message body

    • ref string

      Reference of the msisdn the message was sent to

    • received_at string(timestamp)

      The time at which the message was received

  • 401 application/json

    Unauthorized

    Hide response attributes Show response attributes object
  • 404 application/json

    Not Found

    Hide response attributes Show response attributes object
  • 405 application/json

    Method Not Allowed

    Hide response attributes Show response attributes object
GET /sms/inbound/{messageID}
curl \
 -X GET https://sms.apicontrol.co.uk/v1/sms/inbound/{messageID} \
 -H "Authorization: $API_KEY"
Response examples (200)
{
  "messageID": 7,
  "from": "+447700900000",
  "to": "+447700900999",
  "body": "Test inbound message",
  "ref": "Oxford main office",
  "received_at": "1718893029.000"
}
Response examples (401)
{
  "status_code": 401,
  "status_msg": "Unauthorized"
}
Response examples (404)
{
  "status_code": 404,
  "status_msg": "Not Found",
  "info": "string"
}
Response examples (405)
{
  "status_code": 405,
  "status_msg": "Method Not Allowed",
  "Allow": [
    "POST"
  ]
}