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.
Minimum length is
34
, maximum length is34
. Format should match the following pattern:^AC[0-9a-fA-F]{32}$
. -
The Twilio-provided string that uniquely identifies the ShortCode resource to fetch
Minimum length is
34
, maximum length is34
. Format should match the following pattern:^SC[0-9a-fA-F]{32}$
.
GET
/2010-04-01/Accounts/{AccountSid}/SMS/ShortCodes/{Sid}.json
curl \
--request GET 'https://api.twilio.com/2010-04-01/Accounts/{AccountSid}/SMS/ShortCodes/{Sid}.json' \
--user "username:password"
Response examples (200)
{
"sid": "SCaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
"uri": "/2010-04-01/Accounts/ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/SMS/ShortCodes/SCaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa.json",
"sms_url": null,
"short_code": "99990",
"sms_method": "POST",
"account_sid": "ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
"api_version": "2010-04-01",
"date_created": "Thu, 01 Apr 2010 00:00:00 +0000",
"date_updated": "Thu, 01 Apr 2010 00:00:00 +0000",
"friendly_name": "API_CLUSTER_TEST_SHORT_CODE",
"sms_fallback_url": null,
"sms_fallback_method": "POST"
}