Fetch SMS Command instance from your account

GET /v1/SmsCommands/{Sid}

Machine-to-machine SMS Commands sent to/from SIMs

Fetch SMS Command instance from your account.

Path parameters

  • Sid string Required

    The SID of the SMS Command resource to fetch.

Responses

  • OK

    Hide response attributes Show response attributes object
    • account_sid string | null

      The SID of the Account that created the resource

      Minimum length is 34, maximum length is 34. Format should match the following pattern: ^AC[0-9a-fA-F]{32}$.

    • date_created string(date-time) | null

      The ISO 8601 date and time in GMT when the resource was created

    • date_updated string(date-time) | null

      The ISO 8601 date and time in GMT when the resource was last updated

    • direction string | null

      The direction of the SMS Command

      Values are to_sim or from_sim.

    • payload string | null

      The message body of the SMS Command sent to or from the SIM

    • sid string | null

      The unique string that identifies the resource

      Minimum length is 34, maximum length is 34. Format should match the following pattern: ^HC[0-9a-fA-F]{32}$.

    • sim_sid string | null

      The SID of the SIM that this SMS Command was sent to or from

      Minimum length is 34, maximum length is 34. Format should match the following pattern: ^HS[0-9a-fA-F]{32}$.

    • status string | null

      The status of the SMS Command

      Values are queued, sent, delivered, received, or failed.

    • url string(uri) | null

      The absolute URL of the SMS Command resource

GET /v1/SmsCommands/{Sid}
curl \
 -X GET https://supersim.twilio.com/v1/SmsCommands/{Sid} \
 --user "username:password"
Response examples (200)
{
  "account_sid": "string",
  "date_created": "2023-05-04T09:42:00+00:00",
  "date_updated": "2023-05-04T09:42:00+00:00",
  "direction": "to_sim",
  "payload": "string",
  "sid": "string",
  "sim_sid": "string",
  "status": "queued",
  "url": "https://example.com"
}
Response examples (200)
{
  "account_sid": "string",
  "date_created": "2024-05-04T09:42:00+00:00",
  "date_updated": "2024-05-04T09:42:00+00:00",
  "direction": "to_sim",
  "payload": "string",
  "sid": "string",
  "sim_sid": "string",
  "status": "queued",
  "url": "https://example.com"
}