GET/2010-04-01/Accounts/{AccountSid}/SMS/ShortCodes/{Sid}.json

Retrieve a short code

Retrieves a specific short code from an account. Use AccountSid and Sid to identify the account and short code; both identifiers must match their documented SID formats.

2 parameters
AccountSidstringrequired
The 34-character account SID, beginning with `AC` and followed by 32 hexadecimal characters, that owns the short code.
Sidstringrequired
The 34-character short code SID, beginning with `SC` and followed by 32 hexadecimal characters.

1 status code
200Returns the short code resource, including its SID, short code, friendly name, API version, SMS URLs and methods, and creation and update dates.
account_sidstringoptional
The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created this ShortCode resource.
api_versionstringoptional
The API version used to start a new TwiML session when an SMS message is sent to this short code.
date_createdstringoptional
The date and time in GMT that this resource was created specified in [RFC 2822](https://www.ietf.org/rfc/rfc2822.txt) format.
date_updatedstringoptional
The date and time in GMT that this resource was last updated, specified in [RFC 2822](https://www.ietf.org/rfc/rfc2822.txt) format.
friendly_namestringoptional
A string that you assigned to describe this resource. By default, the `FriendlyName` is the short code.
short_codestringoptional
The short code. e.g., 894546.
sidstringoptional
The unique string that that we created to identify this ShortCode resource.
sms_fallback_methodstringoptional
The HTTP method we use to call the `sms_fallback_url`. Can be: `GET` or `POST`.
Allowed:GETPOST
sms_fallback_urlstringoptional
The URL that we call if an error occurs while retrieving or executing the TwiML from `sms_url`.
sms_methodstringoptional
The HTTP method we use to call the `sms_url`. Can be: `GET` or `POST`.
Allowed:GETPOST
sms_urlstringoptional
The URL we call when receiving an incoming SMS message to this short code.
uristringoptional
The URI of this resource, relative to `https://api.twilio.com`.

Error handling

The AccountSid must be a 34-character account SID beginning with AC, and Sid must be a 34-character short code SID beginning with SC; each must end with 32 hexadecimal characters.