components: schemas: trunking.v1.trunk: properties: account_sid: description: The SID of the Account that created the resource maxLength: 34 minLength: 34 nullable: true pattern: ^AC[0-9a-fA-F]{32}$ type: string auth_type: description: The types of authentication mapped to the domain nullable: true type: string auth_type_set: description: Reserved items: type: string nullable: true type: array cnam_lookup_enabled: description: Whether Caller ID Name (CNAM) lookup is enabled for the trunk nullable: true type: boolean date_created: description: The RFC 2822 date and time in GMT when the resource was created format: date-time nullable: true type: string date_updated: description: The RFC 2822 date and time in GMT when the resource was last updated format: date-time nullable: true type: string disaster_recovery_method: description: The HTTP method we use to call the disaster_recovery_url enum: - HEAD - GET - POST - PATCH - PUT - DELETE nullable: true type: string disaster_recovery_url: description: The HTTP URL that we call if an error occurs while sending SIP traffic towards your configured Origination URL format: uri nullable: true type: string domain_name: description: The unique address you reserve on Twilio to which you route your SIP traffic nullable: true type: string friendly_name: description: The string that you assigned to describe the resource nullable: true type: string links: description: The URLs of related resources nullable: true type: object recording: description: The recording settings for the trunk nullable: true type: object secure: description: Whether Secure Trunking is enabled for the trunk nullable: true type: boolean sid: description: The unique string that identifies the resource maxLength: 34 minLength: 34 nullable: true pattern: ^TK[0-9a-fA-F]{32}$ type: string transfer_caller_id: description: Caller Id for transfer target enum: - from-transferee - from-transferor nullable: true type: string transfer_mode: description: The call transfer settings for the trunk enum: - disable-all - enable-all - sip-only nullable: true type: string url: description: The absolute URL of the resource format: uri nullable: true type: string type: object trunking.v1.trunk.credential_list: properties: account_sid: description: The SID of the Account that created the resource maxLength: 34 minLength: 34 nullable: true pattern: ^AC[0-9a-fA-F]{32}$ type: string date_created: description: The RFC 2822 date and time in GMT when the resource was created format: date-time nullable: true type: string date_updated: description: The RFC 2822 date and time in GMT when the resource was last updated format: date-time nullable: true type: string friendly_name: description: The string that you assigned to describe the resource nullable: true type: string sid: description: The unique string that identifies the resource maxLength: 34 minLength: 34 nullable: true pattern: ^CL[0-9a-fA-F]{32}$ type: string trunk_sid: description: The SID of the Trunk the credential list in associated with maxLength: 34 minLength: 34 nullable: true pattern: ^TK[0-9a-fA-F]{32}$ type: string url: description: The absolute URL of the resource format: uri nullable: true type: string type: object trunking.v1.trunk.ip_access_control_list: properties: account_sid: description: The SID of the Account that created the resource maxLength: 34 minLength: 34 nullable: true pattern: ^AC[0-9a-fA-F]{32}$ type: string date_created: description: The RFC 2822 date and time in GMT when the resource was created format: date-time nullable: true type: string date_updated: description: The RFC 2822 date and time in GMT when the resource was last updated format: date-time nullable: true type: string friendly_name: description: The string that you assigned to describe the resource nullable: true type: string sid: description: The unique string that identifies the resource maxLength: 34 minLength: 34 nullable: true pattern: ^AL[0-9a-fA-F]{32}$ type: string trunk_sid: description: The SID of the Trunk the resource is associated with maxLength: 34 minLength: 34 nullable: true pattern: ^TK[0-9a-fA-F]{32}$ type: string url: description: The absolute URL of the resource format: uri nullable: true type: string type: object trunking.v1.trunk.origination_url: properties: account_sid: description: The SID of the Account that created the resource maxLength: 34 minLength: 34 nullable: true pattern: ^AC[0-9a-fA-F]{32}$ type: string date_created: description: The RFC 2822 date and time in GMT when the resource was created format: date-time nullable: true type: string date_updated: description: The RFC 2822 date and time in GMT when the resource was last updated format: date-time nullable: true type: string enabled: description: Whether the URL is enabled nullable: true type: boolean friendly_name: description: The string that you assigned to describe the resource nullable: true type: string priority: description: The relative importance of the URI nullable: true type: integer sid: description: The unique string that identifies the resource maxLength: 34 minLength: 34 nullable: true pattern: ^OU[0-9a-fA-F]{32}$ type: string sip_url: description: The SIP address you want Twilio to route your Origination calls to format: uri nullable: true type: string trunk_sid: description: The SID of the Trunk that owns the Origination URL maxLength: 34 minLength: 34 nullable: true pattern: ^TK[0-9a-fA-F]{32}$ type: string url: description: The absolute URL of the resource format: uri nullable: true type: string weight: description: The value that determines the relative load the URI should receive compared to others with the same priority nullable: true type: integer type: object trunking.v1.trunk.phone_number: properties: account_sid: description: The SID of the Account that created the resource maxLength: 34 minLength: 34 nullable: true pattern: ^AC[0-9a-fA-F]{32}$ type: string address_requirements: description: Whether the phone number requires an Address registered with Twilio enum: - none - any - local - foreign nullable: true type: string api_version: description: The API version used to start a new TwiML session nullable: true type: string beta: description: Whether the phone number is new to the Twilio platform nullable: true type: boolean capabilities: description: Indicate if a phone can receive calls or messages nullable: true type: object date_created: description: The RFC 2822 date and time in GMT when the resource was created format: date-time nullable: true type: string date_updated: description: The RFC 2822 date and time in GMT when the resource was last updated format: date-time nullable: true type: string friendly_name: description: The string that you assigned to describe the resource nullable: true type: string links: description: The URLs of related resources nullable: true type: object phone_number: description: The phone number in E.164 format nullable: true type: string sid: description: The unique string that identifies the resource maxLength: 34 minLength: 34 nullable: true pattern: ^PN[0-9a-fA-F]{32}$ type: string sms_application_sid: description: The SID of the application that handles SMS messages sent to the phone number maxLength: 34 minLength: 34 nullable: true pattern: ^AP[0-9a-fA-F]{32}$ type: string sms_fallback_method: description: The HTTP method used with sms_fallback_url enum: - HEAD - GET - POST - PATCH - PUT - DELETE nullable: true type: string sms_fallback_url: description: The URL that we call when an error occurs while retrieving or executing the TwiML format: uri nullable: true type: string sms_method: description: The HTTP method to use with sms_url enum: - HEAD - GET - POST - PATCH - PUT - DELETE nullable: true type: string sms_url: description: The URL we call when the phone number receives an incoming SMS message format: uri nullable: true type: string status_callback: description: The URL to send status information to your application format: uri nullable: true type: string status_callback_method: description: The HTTP method we use to call status_callback enum: - HEAD - GET - POST - PATCH - PUT - DELETE nullable: true type: string trunk_sid: description: The SID of the Trunk that handles calls to the phone number maxLength: 34 minLength: 34 nullable: true pattern: ^TK[0-9a-fA-F]{32}$ type: string url: description: The absolute URL of the resource format: uri nullable: true type: string voice_application_sid: description: The SID of the application that handles calls to the phone number maxLength: 34 minLength: 34 nullable: true pattern: ^AP[0-9a-fA-F]{32}$ type: string voice_caller_id_lookup: description: Whether to lookup the caller's name nullable: true type: boolean voice_fallback_method: description: The HTTP method that we use to call voice_fallback_url enum: - HEAD - GET - POST - PATCH - PUT - DELETE nullable: true type: string voice_fallback_url: description: The URL we call when an error occurs in TwiML format: uri nullable: true type: string voice_method: description: The HTTP method used with the voice_url enum: - HEAD - GET - POST - PATCH - PUT - DELETE nullable: true type: string voice_url: description: The URL we call when the phone number receives a call format: uri nullable: true type: string type: object trunking.v1.trunk.recording: properties: mode: description: The recording mode for the trunk. enum: - do-not-record - record-from-ringing - record-from-answer - record-from-ringing-dual - record-from-answer-dual nullable: true type: string trim: description: The recording trim setting for the trunk. enum: - trim-silence - do-not-trim nullable: true type: string type: object securitySchemes: accountSid_authToken: scheme: basic type: http info: contact: email: support@twilio.com name: Twilio Support url: https://support.twilio.com description: This is the public Twilio REST API. license: name: Apache 2.0 url: https://www.apache.org/licenses/LICENSE-2.0.html termsOfService: https://www.twilio.com/legal/tos title: Twilio - Trunking version: 1.27.0 openapi: 3.0.1 paths: /v1/Trunks: description: Represents a SIP trunk get: description: '' operationId: ListTrunk parameters: - description: How many resources to return in each list page. The default is 50, and the maximum is 1000. in: query name: PageSize schema: maximum: 1000 minimum: 1 type: integer responses: '200': content: application/json: schema: properties: meta: properties: first_page_url: format: uri type: string key: type: string next_page_url: format: uri type: string page: type: integer page_size: type: integer previous_page_url: format: uri type: string url: format: uri type: string type: object trunks: items: $ref: '#/components/schemas/trunking.v1.trunk' type: array title: ListTrunkResponse type: object description: OK security: - accountSid_authToken: [] x-maturity: - GA post: description: '' operationId: CreateTrunk requestBody: content: application/x-www-form-urlencoded: schema: properties: CnamLookupEnabled: description: Whether Caller ID Name (CNAM) lookup should be enabled for the trunk. If enabled, all inbound calls to the SIP Trunk from the United States and Canada automatically perform a CNAM Lookup and display Caller ID data on your phone. See [CNAM Lookups](https://www.twilio.com/docs/sip-trunking#CNAM) for more information. type: boolean DisasterRecoveryMethod: description: 'The HTTP method we should use to call the `disaster_recovery_url`. Can be: `GET` or `POST`.' enum: - HEAD - GET - POST - PATCH - PUT - DELETE type: string DisasterRecoveryUrl: description: The URL we should call using the `disaster_recovery_method` if an error occurs while sending SIP traffic towards the configured Origination URL. We retrieve TwiML from the URL and execute the instructions like any other normal TwiML call. See [Disaster Recovery](https://www.twilio.com/docs/sip-trunking#disaster-recovery) for more information. format: uri type: string DomainName: description: The unique address you reserve on Twilio to which you route your SIP traffic. Domain names can contain letters, digits, and `-` and must end with `pstn.twilio.com`. See [Termination Settings](https://www.twilio.com/docs/sip-trunking#termination) for more information. type: string FriendlyName: description: A descriptive string that you create to describe the resource. It can be up to 64 characters long. type: string Secure: description: Whether Secure Trunking is enabled for the trunk. If enabled, all calls going through the trunk will be secure using SRTP for media and TLS for signaling. If disabled, then RTP will be used for media. See [Secure Trunking](https://www.twilio.com/docs/sip-trunking#securetrunking) for more information. type: boolean TransferCallerId: description: 'Caller Id for transfer target. Can be: `from-transferee` (default) or `from-transferor`.' enum: - from-transferee - from-transferor type: string TransferMode: description: 'The call transfer settings for the trunk. Can be: `enable-all`, `sip-only` and `disable-all`. See [Transfer](https://www.twilio.com/docs/sip-trunking/call-transfer) for more information.' enum: - disable-all - enable-all - sip-only type: string title: CreateTrunkRequest type: object responses: '201': content: application/json: schema: $ref: '#/components/schemas/trunking.v1.trunk' description: Created security: - accountSid_authToken: [] x-maturity: - GA servers: - url: https://trunking.twilio.com x-twilio: defaultOutputProperties: - sid - friendly_name - domain_name pathType: list /v1/Trunks/{Sid}: delete: description: '' operationId: DeleteTrunk parameters: - description: The unique string that we created to identify the Trunk resource to delete. in: path name: Sid required: true schema: maxLength: 34 minLength: 34 pattern: ^TK[0-9a-fA-F]{32}$ type: string responses: '204': description: The resource was deleted successfully. security: - accountSid_authToken: [] x-maturity: - GA description: Represents a SIP trunk get: description: '' operationId: FetchTrunk parameters: - description: The unique string that we created to identify the Trunk resource to fetch. in: path name: Sid required: true schema: maxLength: 34 minLength: 34 pattern: ^TK[0-9a-fA-F]{32}$ type: string responses: '200': content: application/json: schema: $ref: '#/components/schemas/trunking.v1.trunk' description: OK security: - accountSid_authToken: [] x-maturity: - GA post: description: '' operationId: UpdateTrunk parameters: - description: The unique string that we created to identify the OriginationUrl resource to update. in: path name: Sid required: true schema: maxLength: 34 minLength: 34 pattern: ^TK[0-9a-fA-F]{32}$ type: string requestBody: content: application/x-www-form-urlencoded: schema: properties: CnamLookupEnabled: description: Whether Caller ID Name (CNAM) lookup should be enabled for the trunk. If enabled, all inbound calls to the SIP Trunk from the United States and Canada automatically perform a CNAM Lookup and display Caller ID data on your phone. See [CNAM Lookups](https://www.twilio.com/docs/sip-trunking#CNAM) for more information. type: boolean DisasterRecoveryMethod: description: 'The HTTP method we should use to call the `disaster_recovery_url`. Can be: `GET` or `POST`.' enum: - HEAD - GET - POST - PATCH - PUT - DELETE type: string DisasterRecoveryUrl: description: The URL we should call using the `disaster_recovery_method` if an error occurs while sending SIP traffic towards the configured Origination URL. We retrieve TwiML from the URL and execute the instructions like any other normal TwiML call. See [Disaster Recovery](https://www.twilio.com/docs/sip-trunking#disaster-recovery) for more information. format: uri type: string DomainName: description: The unique address you reserve on Twilio to which you route your SIP traffic. Domain names can contain letters, digits, and `-` and must end with `pstn.twilio.com`. See [Termination Settings](https://www.twilio.com/docs/sip-trunking#termination) for more information. type: string FriendlyName: description: A descriptive string that you create to describe the resource. It can be up to 64 characters long. type: string Secure: description: Whether Secure Trunking is enabled for the trunk. If enabled, all calls going through the trunk will be secure using SRTP for media and TLS for signaling. If disabled, then RTP will be used for media. See [Secure Trunking](https://www.twilio.com/docs/sip-trunking#securetrunking) for more information. type: boolean TransferCallerId: description: 'Caller Id for transfer target. Can be: `from-transferee` (default) or `from-transferor`.' enum: - from-transferee - from-transferor type: string TransferMode: description: 'The call transfer settings for the trunk. Can be: `enable-all`, `sip-only` and `disable-all`. See [Transfer](https://www.twilio.com/docs/sip-trunking/call-transfer) for more information.' enum: - disable-all - enable-all - sip-only type: string title: UpdateTrunkRequest type: object responses: '200': content: application/json: schema: $ref: '#/components/schemas/trunking.v1.trunk' description: OK security: - accountSid_authToken: [] x-maturity: - GA servers: - url: https://trunking.twilio.com x-twilio: defaultOutputProperties: - sid - friendly_name - domain_name pathType: instance /v1/Trunks/{TrunkSid}/CredentialLists: description: List of credentials for accessing a trunk get: description: '' operationId: ListCredentialList parameters: - description: The SID of the Trunk from which to read the credential lists. in: path name: TrunkSid required: true schema: maxLength: 34 minLength: 34 pattern: ^TK[0-9a-fA-F]{32}$ type: string - description: How many resources to return in each list page. The default is 50, and the maximum is 1000. in: query name: PageSize schema: maximum: 1000 minimum: 1 type: integer responses: '200': content: application/json: schema: properties: credential_lists: items: $ref: '#/components/schemas/trunking.v1.trunk.credential_list' type: array meta: properties: first_page_url: format: uri type: string key: type: string next_page_url: format: uri type: string page: type: integer page_size: type: integer previous_page_url: format: uri type: string url: format: uri type: string type: object title: ListCredentialListResponse type: object description: OK security: - accountSid_authToken: [] x-maturity: - GA post: description: '' operationId: CreateCredentialList parameters: - description: The SID of the Trunk to associate the credential list with. in: path name: TrunkSid required: true schema: maxLength: 34 minLength: 34 pattern: ^TK[0-9a-fA-F]{32}$ type: string requestBody: content: application/x-www-form-urlencoded: schema: properties: CredentialListSid: description: The SID of the [Credential List](https://www.twilio.com/docs/voice/sip/api/sip-credentiallist-resource) that you want to associate with the trunk. Once associated, we will authenticate access to the trunk against this list. maxLength: 34 minLength: 34 pattern: ^CL[0-9a-fA-F]{32}$ type: string required: - CredentialListSid title: CreateCredentialListRequest type: object responses: '201': content: application/json: schema: $ref: '#/components/schemas/trunking.v1.trunk.credential_list' description: Created security: - accountSid_authToken: [] x-maturity: - GA servers: - url: https://trunking.twilio.com x-twilio: defaultOutputProperties: - sid - friendly_name - date_created pathType: list /v1/Trunks/{TrunkSid}/CredentialLists/{Sid}: delete: description: '' operationId: DeleteCredentialList parameters: - description: The SID of the Trunk from which to delete the credential list. in: path name: TrunkSid required: true schema: maxLength: 34 minLength: 34 pattern: ^TK[0-9a-fA-F]{32}$ type: string - description: The unique string that we created to identify the CredentialList resource to delete. in: path name: Sid required: true schema: maxLength: 34 minLength: 34 pattern: ^CL[0-9a-fA-F]{32}$ type: string responses: '204': description: The resource was deleted successfully. security: - accountSid_authToken: [] x-maturity: - GA description: List of credentials for accessing a trunk get: description: '' operationId: FetchCredentialList parameters: - description: The SID of the Trunk from which to fetch the credential list. in: path name: TrunkSid required: true schema: maxLength: 34 minLength: 34 pattern: ^TK[0-9a-fA-F]{32}$ type: string - description: The unique string that we created to identify the CredentialList resource to fetch. in: path name: Sid required: true schema: maxLength: 34 minLength: 34 pattern: ^CL[0-9a-fA-F]{32}$ type: string responses: '200': content: application/json: schema: $ref: '#/components/schemas/trunking.v1.trunk.credential_list' description: OK security: - accountSid_authToken: [] x-maturity: - GA servers: - url: https://trunking.twilio.com x-twilio: defaultOutputProperties: - sid - friendly_name - date_created pathType: instance /v1/Trunks/{TrunkSid}/IpAccessControlLists: description: List of IP addresses for accessing a trunk get: description: List all IP Access Control Lists for a Trunk operationId: ListIpAccessControlList parameters: - description: The SID of the Trunk from which to read the IP Access Control Lists. in: path name: TrunkSid required: true schema: maxLength: 34 minLength: 34 pattern: ^TK[0-9a-fA-F]{32}$ type: string - description: How many resources to return in each list page. The default is 50, and the maximum is 1000. in: query name: PageSize schema: maximum: 1000 minimum: 1 type: integer responses: '200': content: application/json: schema: properties: ip_access_control_lists: items: $ref: '#/components/schemas/trunking.v1.trunk.ip_access_control_list' type: array meta: properties: first_page_url: format: uri type: string key: type: string next_page_url: format: uri type: string page: type: integer page_size: type: integer previous_page_url: format: uri type: string url: format: uri type: string type: object title: ListIpAccessControlListResponse type: object description: OK security: - accountSid_authToken: [] x-maturity: - GA post: description: Associate an IP Access Control List with a Trunk operationId: CreateIpAccessControlList parameters: - description: The SID of the Trunk to associate the IP Access Control List with. in: path name: TrunkSid required: true schema: maxLength: 34 minLength: 34 pattern: ^TK[0-9a-fA-F]{32}$ type: string requestBody: content: application/x-www-form-urlencoded: schema: properties: IpAccessControlListSid: description: The SID of the [IP Access Control List](https://www.twilio.com/docs/voice/sip/api/sip-ipaccesscontrollist-resource) that you want to associate with the trunk. maxLength: 34 minLength: 34 pattern: ^AL[0-9a-fA-F]{32}$ type: string required: - IpAccessControlListSid title: CreateIpAccessControlListRequest type: object responses: '201': content: application/json: schema: $ref: '#/components/schemas/trunking.v1.trunk.ip_access_control_list' description: Created security: - accountSid_authToken: [] x-maturity: - GA servers: - url: https://trunking.twilio.com x-twilio: defaultOutputProperties: - sid - friendly_name - date_created pathType: list /v1/Trunks/{TrunkSid}/IpAccessControlLists/{Sid}: delete: description: Remove an associated IP Access Control List from a Trunk operationId: DeleteIpAccessControlList parameters: - description: The SID of the Trunk from which to delete the IP Access Control List. in: path name: TrunkSid required: true schema: maxLength: 34 minLength: 34 pattern: ^TK[0-9a-fA-F]{32}$ type: string - description: The unique string that we created to identify the IpAccessControlList resource to delete. in: path name: Sid required: true schema: maxLength: 34 minLength: 34 pattern: ^AL[0-9a-fA-F]{32}$ type: string responses: '204': description: The resource was deleted successfully. security: - accountSid_authToken: [] x-maturity: - GA description: List of IP addresses for accessing a trunk get: description: '' operationId: FetchIpAccessControlList parameters: - description: The SID of the Trunk from which to fetch the IP Access Control List. in: path name: TrunkSid required: true schema: maxLength: 34 minLength: 34 pattern: ^TK[0-9a-fA-F]{32}$ type: string - description: The unique string that we created to identify the IpAccessControlList resource to fetch. in: path name: Sid required: true schema: maxLength: 34 minLength: 34 pattern: ^AL[0-9a-fA-F]{32}$ type: string responses: '200': content: application/json: schema: $ref: '#/components/schemas/trunking.v1.trunk.ip_access_control_list' description: OK security: - accountSid_authToken: [] x-maturity: - GA servers: - url: https://trunking.twilio.com x-twilio: defaultOutputProperties: - sid - friendly_name - date_created pathType: instance /v1/Trunks/{TrunkSid}/OriginationUrls: description: Network element entry points into your communications infrastructure get: description: '' operationId: ListOriginationUrl parameters: - description: The SID of the Trunk from which to read the OriginationUrl. in: path name: TrunkSid required: true schema: maxLength: 34 minLength: 34 pattern: ^TK[0-9a-fA-F]{32}$ type: string - description: How many resources to return in each list page. The default is 50, and the maximum is 1000. in: query name: PageSize schema: maximum: 1000 minimum: 1 type: integer responses: '200': content: application/json: schema: properties: meta: properties: first_page_url: format: uri type: string key: type: string next_page_url: format: uri type: string page: type: integer page_size: type: integer previous_page_url: format: uri type: string url: format: uri type: string type: object origination_urls: items: $ref: '#/components/schemas/trunking.v1.trunk.origination_url' type: array title: ListOriginationUrlResponse type: object description: OK security: - accountSid_authToken: [] x-maturity: - GA post: description: '' operationId: CreateOriginationUrl parameters: - description: The SID of the Trunk to associate the resource with. in: path name: TrunkSid required: true schema: maxLength: 34 minLength: 34 pattern: ^TK[0-9a-fA-F]{32}$ type: string requestBody: content: application/x-www-form-urlencoded: schema: properties: Enabled: description: Whether the URL is enabled. The default is `true`. type: boolean FriendlyName: description: A descriptive string that you create to describe the resource. It can be up to 64 characters long. type: string Priority: description: The 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. type: integer SipUrl: description: The SIP address you want Twilio to route your Origination calls to. This must be a `sip:` schema. format: uri type: string Weight: description: The 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. type: integer required: - Weight - Priority - Enabled - FriendlyName - SipUrl title: CreateOriginationUrlRequest type: object responses: '201': content: application/json: schema: $ref: '#/components/schemas/trunking.v1.trunk.origination_url' description: Created security: - accountSid_authToken: [] x-maturity: - GA servers: - url: https://trunking.twilio.com x-twilio: defaultOutputProperties: - sid - friendly_name - sip_url - priority - weight pathType: list /v1/Trunks/{TrunkSid}/OriginationUrls/{Sid}: delete: description: '' operationId: DeleteOriginationUrl parameters: - description: The SID of the Trunk from which to delete the OriginationUrl. in: path name: TrunkSid required: true schema: maxLength: 34 minLength: 34 pattern: ^TK[0-9a-fA-F]{32}$ type: string - description: The unique string that we created to identify the OriginationUrl resource to delete. in: path name: Sid required: true schema: maxLength: 34 minLength: 34 pattern: ^OU[0-9a-fA-F]{32}$ type: string responses: '204': description: The resource was deleted successfully. security: - accountSid_authToken: [] x-maturity: - GA description: Network element entry points into your communications infrastructure get: description: '' operationId: FetchOriginationUrl parameters: - description: The SID of the Trunk from which to fetch the OriginationUrl. in: path name: TrunkSid required: true schema: maxLength: 34 minLength: 34 pattern: ^TK[0-9a-fA-F]{32}$ type: string - description: The unique string that we created to identify the OriginationUrl resource to fetch. in: path name: Sid required: true schema: maxLength: 34 minLength: 34 pattern: ^OU[0-9a-fA-F]{32}$ type: string responses: '200': content: application/json: schema: $ref: '#/components/schemas/trunking.v1.trunk.origination_url' description: OK security: - accountSid_authToken: [] x-maturity: - GA post: description: '' operationId: UpdateOriginationUrl parameters: - description: The SID of the Trunk from which to update the OriginationUrl. in: path name: TrunkSid required: true schema: maxLength: 34 minLength: 34 pattern: ^TK[0-9a-fA-F]{32}$ type: string - description: The unique string that we created to identify the OriginationUrl resource to update. in: path name: Sid required: true schema: maxLength: 34 minLength: 34 pattern: ^OU[0-9a-fA-F]{32}$ type: string requestBody: content: application/x-www-form-urlencoded: schema: properties: Enabled: description: Whether the URL is enabled. The default is `true`. type: boolean FriendlyName: description: A descriptive string that you create to describe the resource. It can be up to 64 characters long. type: string Priority: description: The 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. type: integer SipUrl: description: The SIP address you want Twilio to route your Origination calls to. This must be a `sip:` schema. `sips` is NOT supported. format: uri type: string Weight: description: The 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. type: integer title: UpdateOriginationUrlRequest type: object responses: '200': content: application/json: schema: $ref: '#/components/schemas/trunking.v1.trunk.origination_url' description: OK security: - accountSid_authToken: [] x-maturity: - GA servers: - url: https://trunking.twilio.com x-twilio: defaultOutputProperties: - sid - friendly_name - sip_url - priority - weight pathType: instance /v1/Trunks/{TrunkSid}/PhoneNumbers: description: Phone numbers associated with trunks get: description: '' operationId: ListPhoneNumber parameters: - description: The SID of the Trunk from which to read the PhoneNumber resources. in: path name: TrunkSid required: true schema: maxLength: 34 minLength: 34 pattern: ^TK[0-9a-fA-F]{32}$ type: string - description: How many resources to return in each list page. The default is 50, and the maximum is 1000. in: query name: PageSize schema: maximum: 1000 minimum: 1 type: integer responses: '200': content: application/json: schema: properties: meta: properties: first_page_url: format: uri type: string key: type: string next_page_url: format: uri type: string page: type: integer page_size: type: integer previous_page_url: format: uri type: string url: format: uri type: string type: object phone_numbers: items: $ref: '#/components/schemas/trunking.v1.trunk.phone_number' type: array title: ListPhoneNumberResponse type: object description: OK security: - accountSid_authToken: [] x-maturity: - GA post: description: '' operationId: CreatePhoneNumber parameters: - description: The SID of the Trunk to associate the phone number with. in: path name: TrunkSid required: true schema: maxLength: 34 minLength: 34 pattern: ^TK[0-9a-fA-F]{32}$ type: string requestBody: content: application/x-www-form-urlencoded: schema: properties: PhoneNumberSid: description: The SID of the [Incoming Phone Number](https://www.twilio.com/docs/phone-numbers/api/incomingphonenumber-resource) that you want to associate with the trunk. maxLength: 34 minLength: 34 pattern: ^PN[0-9a-fA-F]{32}$ type: string required: - PhoneNumberSid title: CreatePhoneNumberRequest type: object responses: '201': content: application/json: schema: $ref: '#/components/schemas/trunking.v1.trunk.phone_number' description: Created security: - accountSid_authToken: [] x-maturity: - GA servers: - url: https://trunking.twilio.com x-twilio: defaultOutputProperties: - sid - friendly_name - phone_number pathType: list /v1/Trunks/{TrunkSid}/PhoneNumbers/{Sid}: delete: description: '' operationId: DeletePhoneNumber parameters: - description: The SID of the Trunk from which to delete the PhoneNumber resource. in: path name: TrunkSid required: true schema: maxLength: 34 minLength: 34 pattern: ^TK[0-9a-fA-F]{32}$ type: string - description: The unique string that we created to identify the PhoneNumber resource to delete. in: path name: Sid required: true schema: maxLength: 34 minLength: 34 pattern: ^PN[0-9a-fA-F]{32}$ type: string responses: '204': description: The resource was deleted successfully. security: - accountSid_authToken: [] x-maturity: - GA description: Phone numbers associated with trunks get: description: '' operationId: FetchPhoneNumber parameters: - description: The SID of the Trunk from which to fetch the PhoneNumber resource. in: path name: TrunkSid required: true schema: maxLength: 34 minLength: 34 pattern: ^TK[0-9a-fA-F]{32}$ type: string - description: The unique string that we created to identify the PhoneNumber resource to fetch. in: path name: Sid required: true schema: maxLength: 34 minLength: 34 pattern: ^PN[0-9a-fA-F]{32}$ type: string responses: '200': content: application/json: schema: $ref: '#/components/schemas/trunking.v1.trunk.phone_number' description: OK security: - accountSid_authToken: [] x-maturity: - GA servers: - url: https://trunking.twilio.com x-twilio: defaultOutputProperties: - sid - friendly_name - phone_number pathType: instance /v1/Trunks/{TrunkSid}/Recording: description: Recording settings for a trunk get: description: '' operationId: FetchRecording parameters: - description: The SID of the Trunk from which to fetch the recording settings. in: path name: TrunkSid required: true schema: maxLength: 34 minLength: 34 pattern: ^TK[0-9a-fA-F]{32}$ type: string responses: '200': content: application/json: schema: $ref: '#/components/schemas/trunking.v1.trunk.recording' description: OK security: - accountSid_authToken: [] x-maturity: - GA post: description: '' operationId: UpdateRecording parameters: - description: The SID of the Trunk that will have its recording settings updated. in: path name: TrunkSid required: true schema: maxLength: 34 minLength: 34 pattern: ^TK[0-9a-fA-F]{32}$ type: string requestBody: content: application/x-www-form-urlencoded: schema: properties: Mode: description: The recording mode for the trunk. Can be do-not-record (default), record-from-ringing, record-from-answer, record-from-ringing-dual, or record-from-answer-dual. enum: - do-not-record - record-from-ringing - record-from-answer - record-from-ringing-dual - record-from-answer-dual type: string Trim: description: The recording trim setting for the trunk. Can be do-not-trim (default) or trim-silence. enum: - trim-silence - do-not-trim type: string title: UpdateRecordingRequest type: object responses: '202': content: application/json: schema: $ref: '#/components/schemas/trunking.v1.trunk.recording' description: Accepted security: - accountSid_authToken: [] x-maturity: - GA servers: - url: https://trunking.twilio.com x-twilio: defaultOutputProperties: - mode - trim pathType: instance servers: - url: https://trunking.twilio.com x-maturity: - description: This product is Generally Available. name: GA