Get SMS message with options

GET /sms/message/{messageID}/{options}

Path parameters

  • messageID integer(int64) Required

    ID of message to return

  • options array[string] Required

    Comma seperated list of additional data to include in the response

    At least 1 but not more than 2 elements. Values are meta or status.

Responses

  • 200 application/json

    Successful operation

    One of:
  • 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/message/{messageID}/{options}
curl \
 -X GET https://sms.apicontrol.co.uk/v1/sms/message/{messageID}/{options} \
 -H "Authorization: $API_KEY"
{
  "to": {
    "+447700900111": "delivered",
    "+447700900122": "delivered",
    "+447700900133": "pending"
  },
  "messageID": 123123,
  "from": "+447700900001",
  "body": "Message to send",
  "send_at": "2024-06-03T10:05:22Z",
  "expires_at": "2024-06-04T10:05:22Z",
  "ref": "d93b9ec9-4e0d-42b8-80c0-ef3036acdafc",
  "callbackURL": "https://sms-callbacks.barbuck.com",
  "paused": false,
  "created_at": "2024-06-03T10:05:22Z",
  "complete_at": "2024-06-03T10:06:22Z",
  "num_parts": 1,
  "balance_used": 3,
  "status": {
    "pending": 0,
    "submitted": 0,
    "sent": 0,
    "delivered": 2,
    "cancelled": 0,
    "expired": 0,
    "aborted": 0,
    "rejected": 0,
    "failed": 1,
    "deleted": 0,
    "unknown": 0
  }
}
{
  "to": [
    "+447700900111",
    "+447700900122"
  ],
  "messageID": 123123,
  "from": "+447700900001",
  "body": "Message to send",
  "send_at": "2024-06-03T10:05:22Z",
  "expires_at": "2024-06-04T10:05:22Z",
  "ref": "d93b9ec9-4e0d-42b8-80c0-ef3036acdafc",
  "callbackURL": "https://sms-callbacks.barbuck.com",
  "paused": false,
  "created_at": "2024-06-03T10:05:22Z",
  "complete_at": "2024-06-03T10:06:22Z",
  "num_parts": 1,
  "balance_used": 3
}
{
  "to": {
    "+447700900111": "delivered",
    "+447700900122": "delivered",
    "+447700900133": "pending"
  },
  "messageID": 923934,
  "from": "+447700900001",
  "body": "Message to send",
  "send_at": "2024-06-03T10:05:22Z",
  "expires_at": "2024-06-04T10:05:22Z",
  "ref": "d93b9ec9-4e0d-42b8-80c0-ef3036acdafc",
  "callbackURL": "https://sms-callbacks.barbuck.com",
  "paused": false,
  "status": {
    "pending": 0,
    "submitted": 0,
    "sent": 0,
    "delivered": 2,
    "cancelled": 0,
    "expired": 0,
    "aborted": 0,
    "rejected": 0,
    "failed": 1,
    "deleted": 0,
    "unknown": 0
  }
}
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"
  ]
}