The OriginationUrl Resource represents the Origination SIP URL(s) of your Trunk. OriginationUrls identify the network element entry point(s) into your communications infrastructure (e.g. IP-PBX, SBC). See Origination Settings in the SIP Trunking configuration page
for more information.
account_sid
type: SID<AC>The SID of the Account that created the OriginationUrl resource.
^AC[0-9a-fA-F]{32}$
34
34
sid
type: SID<OU>The unique string that we created to identify the OriginationUrl resource.
^OU[0-9a-fA-F]{32}$
34
34
trunk_sid
type: SID<TK>The SID of the Trunk that owns the Origination URL.
^TK[0-9a-fA-F]{32}$
34
34
weight
type: integerThe value that determines the relative share of the load the URI should receive compared to other URIs with the same priority. Can be an integer from 1 to 65535, inclusive, and the default is 10. URLs with higher values receive more load than those with lower ones with the same priority.
sip_url
type: string<uri>The SIP address you want Twilio to route your Origination calls to. This must be a sip:
schema.
priority
type: integerThe relative importance of the URI. Can be an integer from 0 to 65535, inclusive, and the default is 10. The lowest number represents the most important URI.
date_created
type: string<date-time>The date and time in GMT when the resource was created specified in RFC 2822 format.
date_updated
type: string<date-time>The date and time in GMT when the resource was last updated specified in RFC 2822 format.
POST https://trunking.twilio.com/v1/Trunks/{TrunkSid}/OriginationUrls
TrunkSid
type: SID<TK>The SID of the Trunk to associate the resource with.
^TK[0-9a-fA-F]{32}$
34
34
Weight
type: integerRequiredThe value that determines the relative share of the load the URI should receive compared to other URIs with the same priority. Can be an integer from 1 to 65535, inclusive, and the default is 10. URLs with higher values receive more load than those with lower ones with the same priority.
Priority
type: integerRequiredThe relative importance of the URI. Can be an integer from 0 to 65535, inclusive, and the default is 10. The lowest number represents the most important URI.
FriendlyName
type: stringRequiredA descriptive string that you create to describe the resource. It can be up to 64 characters long.
SipUrl
type: string<uri>RequiredThe SIP address you want Twilio to route your Origination calls to. This must be a sip:
schema.
GET https://trunking.twilio.com/v1/Trunks/{TrunkSid}/OriginationUrls/{Sid}
TrunkSid
type: SID<TK>The SID of the Trunk from which to fetch the OriginationUrl.
^TK[0-9a-fA-F]{32}$
34
34
Sid
type: SID<OU>The unique string that we created to identify the OriginationUrl resource to fetch.
^OU[0-9a-fA-F]{32}$
34
34
GET https://trunking.twilio.com/v1/Trunks/{TrunkSid}/OriginationUrls
TrunkSid
type: SID<TK>The SID of the Trunk from which to read the OriginationUrl.
^TK[0-9a-fA-F]{32}$
34
34
PageSize
type: integerHow many resources to return in each list page. The default is 50, and the maximum is 1000.
1
Page
type: integerThe page index. This value is simply for client state.
0
POST https://trunking.twilio.com/v1/Trunks/{TrunkSid}/OriginationUrls/{Sid}
TrunkSid
type: SID<TK>The SID of the Trunk from which to update the OriginationUrl.
^TK[0-9a-fA-F]{32}$
34
34
Sid
type: SID<OU>The unique string that we created to identify the OriginationUrl resource to update.
^OU[0-9a-fA-F]{32}$
34
34
Weight
type: integerThe value that determines the relative share of the load the URI should receive compared to other URIs with the same priority. Can be an integer from 1 to 65535, inclusive, and the default is 10. URLs with higher values receive more load than those with lower ones with the same priority.
Priority
type: integerThe relative importance of the URI. Can be an integer from 0 to 65535, inclusive, and the default is 10. The lowest number represents the most important URI.
FriendlyName
type: stringA descriptive string that you create to describe the resource. It can be up to 64 characters long.
SipUrl
type: string<uri>The SIP address you want Twilio to route your Origination calls to. This must be a sip:
schema. sips
is NOT supported.
DELETE https://trunking.twilio.com/v1/Trunks/{TrunkSid}/OriginationUrls/{Sid}
TrunkSid
type: SID<TK>The SID of the Trunk from which to delete the OriginationUrl.
^TK[0-9a-fA-F]{32}$
34
34
Sid
type: SID<OU>The unique string that we created to identify the OriginationUrl resource to delete.
^OU[0-9a-fA-F]{32}$
34
34