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
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | |
account_sid | JSON | Optional | |
account_sid (anyOf 1) | string | Alternative | The 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) | null | Alternative | |
api_version | JSON | Optional | |
api_version (anyOf 1) | string | Alternative | The API version used to start a new TwiML session when an SMS message is sent to this short code. |
api_version (anyOf 2) | null | Alternative | |
date_created | JSON | Optional | |
date_created (anyOf 1) | string | Alternative | The 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) | null | Alternative | |
date_updated | JSON | Optional | |
date_updated (anyOf 1) | string | Alternative | The 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) | null | Alternative | |
friendly_name | JSON | Optional | |
friendly_name (anyOf 1) | string | Alternative | A string that you assigned to describe this resource. By default, the `FriendlyName` is the short code. |
friendly_name (anyOf 2) | null | Alternative | |
short_code | JSON | Optional | |
short_code (anyOf 1) | string | Alternative | The short code. e.g., 894546. |
short_code (anyOf 2) | null | Alternative | |
sid | JSON | Optional | |
sid (anyOf 1) | string | Alternative | The 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) | null | Alternative | |
sms_fallback_method | JSON | Optional | |
sms_fallback_method (anyOf 1) | string | Alternative | The 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) | null | Alternative | |
sms_fallback_url | JSON | Optional | |
sms_fallback_url (anyOf 1) | string | Alternative | The URL that we call if an error occurs while retrieving or executing the TwiML from `sms_url`. Format: uri |
sms_fallback_url (anyOf 2) | null | Alternative | |
sms_method | JSON | Optional | |
sms_method (anyOf 1) | string | Alternative | The 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) | null | Alternative | |
sms_url | JSON | Optional | |
sms_url (anyOf 1) | string | Alternative | The URL we call when receiving an incoming SMS message to this short code. Format: uri |
sms_url (anyOf 2) | null | Alternative | |
uri | JSON | Optional | |
uri (anyOf 1) | string | Alternative | The URI of this resource, relative to `https://api.twilio.com`. |
uri (anyOf 2) | null | Alternative |