Skip to content

Twilio: Short code schemas

1 Twilio schema with complete fields and constraints.

โ† Short code operations ยท All schemas

Fetch an instance of a short code โ€” response body

FieldTypePresenceDescription and constraints
$objectRoot
account_sidJSONOptional
account_sid (anyOf 1)stringAlternativeThe SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created this ShortCode resource.
Maximum length: 34
Minimum length: 34
Pattern: ^AC[0-9a-fA-F]{32}$
account_sid (anyOf 2)nullAlternative
api_versionJSONOptional
api_version (anyOf 1)stringAlternativeThe API version used to start a new TwiML session when an SMS message is sent to this short code.
api_version (anyOf 2)nullAlternative
date_createdJSONOptional
date_created (anyOf 1)stringAlternativeThe date and time in GMT that this resource was created specified in [RFC 2822](https://www.ietf.org/rfc/rfc2822.txt) format.
Format: date-time-rfc-2822
date_created (anyOf 2)nullAlternative
date_updatedJSONOptional
date_updated (anyOf 1)stringAlternativeThe date and time in GMT that this resource was last updated, specified in [RFC 2822](https://www.ietf.org/rfc/rfc2822.txt) format.
Format: date-time-rfc-2822
date_updated (anyOf 2)nullAlternative
friendly_nameJSONOptional
friendly_name (anyOf 1)stringAlternativeA string that you assigned to describe this resource. By default, the `FriendlyName` is the short code.
friendly_name (anyOf 2)nullAlternative
short_codeJSONOptional
short_code (anyOf 1)stringAlternativeThe short code. e.g., 894546.
short_code (anyOf 2)nullAlternative
sidJSONOptional
sid (anyOf 1)stringAlternativeThe unique string that that we created to identify this ShortCode resource.
Maximum length: 34
Minimum length: 34
Pattern: ^SC[0-9a-fA-F]{32}$
sid (anyOf 2)nullAlternative
sms_fallback_methodJSONOptional
sms_fallback_method (anyOf 1)stringAlternativeThe HTTP method we use to call the `sms_fallback_url`. Can be: `GET` or `POST`.
Known values: GET, POST
Format: http-method
sms_fallback_method (anyOf 2)nullAlternative
sms_fallback_urlJSONOptional
sms_fallback_url (anyOf 1)stringAlternativeThe URL that we call if an error occurs while retrieving or executing the TwiML from `sms_url`.
Format: uri
sms_fallback_url (anyOf 2)nullAlternative
sms_methodJSONOptional
sms_method (anyOf 1)stringAlternativeThe HTTP method we use to call the `sms_url`. Can be: `GET` or `POST`.
Known values: GET, POST
Format: http-method
sms_method (anyOf 2)nullAlternative
sms_urlJSONOptional
sms_url (anyOf 1)stringAlternativeThe URL we call when receiving an incoming SMS message to this short code.
Format: uri
sms_url (anyOf 2)nullAlternative
uriJSONOptional
uri (anyOf 1)stringAlternativeThe URI of this resource, relative to `https://api.twilio.com`.
uri (anyOf 2)nullAlternative

Report an issue with this page

Necessary

Required for sign-in, security, authorization, and remembering your choices.

Always active

Analytics

Helps us understand how our website, product, and documentation are used.

Performance diagnostics

Uses performance tracing and privacy-masked session replay to diagnose problems.

Advertising

Shares visits and sign-ups with Meta, Reddit, and X so we can measure which of our ads work.

You can change these choices at any time from Cookie settings.