Fetch an instance of a short code
Messaging short codes
Fetch an instance of a short code
Path parameters
-
The SID of the Account that created the ShortCode resource(s) to fetch.
-
The Twilio-provided string that uniquely identifies the ShortCode resource to fetch
GET /2010-04-01/Accounts/{AccountSid}/SMS/ShortCodes/{Sid}.json
curl \
-X GET https://api.twilio.com/2010-04-01/Accounts/{AccountSid}/SMS/ShortCodes/{Sid}.json \
--user "username:password"
Response examples (200)
{
"account_sid": "string",
"api_version": "string",
"date_created": "string",
"date_updated": "string",
"friendly_name": "string",
"short_code": "string",
"sid": "string",
"sms_fallback_method": "HEAD",
"sms_fallback_url": "https://example.com",
"sms_method": "HEAD",
"sms_url": "https://example.com",
"uri": "https://example.com"
}
Response examples (200)
{
"account_sid": "string",
"api_version": "string",
"date_created": "string",
"date_updated": "string",
"friendly_name": "string",
"short_code": "string",
"sid": "string",
"sms_fallback_method": "HEAD",
"sms_fallback_url": "https://example.com",
"sms_method": "HEAD",
"sms_url": "https://example.com",
"uri": "https://example.com"
}