Fetch origination url
Network element entry points into your communications infrastructure
Path parameters
-
The SID of the Trunk from which to fetch the OriginationUrl.
Minimum length is
34
, maximum length is34
. Format should match the following pattern:^TK[0-9a-fA-F]{32}$
. -
The unique string that we created to identify the OriginationUrl resource to fetch.
Minimum length is
34
, maximum length is34
. Format should match the following pattern:^OU[0-9a-fA-F]{32}$
.
GET
/v1/Trunks/{TrunkSid}/OriginationUrls/{Sid}
curl \
--request GET 'https://trunking.twilio.com/v1/Trunks/{TrunkSid}/OriginationUrls/{Sid}' \
--user "username:password"
Response examples (200)
{
"sid": "OUaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
"url": "https://trunking.twilio.com/v1/Trunks/TKaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/OriginationUrls/OUaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
"weight": 1,
"enabled": false,
"sip_url": "sip://sip-box.com:1234",
"priority": 1,
"trunk_sid": "TKaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
"account_sid": "ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
"date_created": "2018-05-07T20:20:46Z",
"date_updated": "2018-05-07T20:20:46Z",
"friendly_name": "friendly_name"
}