Twilio Trunks API

The Trunks API from Twilio — 12 operation(s) for trunks.

Documentation

Specifications

Other Resources

OpenAPI Specification

twilio-trunks-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Twilio - Accounts A2p Trunks API
  description: This is the public Twilio REST API.
  termsOfService: https://www.twilio.com/legal/tos
  contact:
    name: Twilio Support
    url: https://support.twilio.com
    email: support@twilio.com
  license:
    name: Apache 2.0
    url: https://www.apache.org/licenses/LICENSE-2.0.html
  version: 1.52.0
servers:
- url: https://accounts.twilio.com
tags:
- name: Trunks
paths:
  /v2/Trunks/{SipTrunkDomain}:
    servers:
    - url: https://routes.twilio.com
    description: 'TODO: Resource-level docs'
    x-twilio:
      defaultOutputProperties:
      - sid
      - friendly_name
      - date_created
      pathType: instance
    post:
      description: Assign an Inbound Processing Region to a SIP Trunk
      tags:
      - Trunks
      parameters:
      - name: SipTrunkDomain
        in: path
        description: The absolute URL of the SIP Trunk
        schema:
          type: string
        required: true
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/routes.v2.trunks'
          description: OK
      security:
      - accountSid_authToken: []
      operationId: UpdateTrunks
      x-maturity:
      - GA
      requestBody:
        content:
          application/x-www-form-urlencoded:
            schema:
              $ref: '#/components/schemas/UpdateTrunksRequest'
    get:
      description: Fetch the Inbound Processing Region assigned to a SIP Trunk.
      tags:
      - Trunks
      parameters:
      - name: SipTrunkDomain
        in: path
        description: The absolute URL of the SIP Trunk
        schema:
          type: string
        required: true
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/routes.v2.trunks'
          description: OK
      security:
      - accountSid_authToken: []
      operationId: FetchTrunks
      x-maturity:
      - GA
  /v1/Trunks/{TrunkSid}/CredentialLists/{Sid}:
    servers:
    - url: https://trunking.twilio.com
    description: List of credentials for accessing a trunk
    x-twilio:
      defaultOutputProperties:
      - sid
      - friendly_name
      - date_created
      pathType: instance
      parent: /Trunks/{Sid}
      mountName: credentials_lists
      className: credential_list
    get:
      description: ''
      tags:
      - Trunks
      parameters:
      - name: TrunkSid
        in: path
        description: The SID of the Trunk from which to fetch the credential list.
        schema:
          type: string
          minLength: 34
          maxLength: 34
          pattern: ^TK[0-9a-fA-F]{32}$
        required: true
      - name: Sid
        in: path
        description: The unique string that we created to identify the CredentialList resource to fetch.
        schema:
          type: string
          minLength: 34
          maxLength: 34
          pattern: ^CL[0-9a-fA-F]{32}$
        required: true
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/trunking.v1.trunk.credential_list'
          description: OK
      security:
      - accountSid_authToken: []
      operationId: FetchCredentialList
      x-maturity:
      - GA
    delete:
      description: ''
      tags:
      - Trunks
      parameters:
      - name: TrunkSid
        in: path
        description: The SID of the Trunk from which to delete the credential list.
        schema:
          type: string
          minLength: 34
          maxLength: 34
          pattern: ^TK[0-9a-fA-F]{32}$
        required: true
      - name: Sid
        in: path
        description: The unique string that we created to identify the CredentialList resource to delete.
        schema:
          type: string
          minLength: 34
          maxLength: 34
          pattern: ^CL[0-9a-fA-F]{32}$
        required: true
      responses:
        '204':
          description: The resource was deleted successfully.
      security:
      - accountSid_authToken: []
      operationId: DeleteCredentialList
      x-maturity:
      - GA
  /v1/Trunks/{TrunkSid}/CredentialLists:
    servers:
    - url: https://trunking.twilio.com
    description: List of credentials for accessing a trunk
    x-twilio:
      defaultOutputProperties:
      - sid
      - friendly_name
      - date_created
      pathType: list
      parent: /Trunks/{Sid}
      mountName: credentials_lists
      className: credential_list
    post:
      description: ''
      tags:
      - Trunks
      parameters:
      - name: TrunkSid
        in: path
        description: The SID of the Trunk to associate the credential list with.
        schema:
          type: string
          minLength: 34
          maxLength: 34
          pattern: ^TK[0-9a-fA-F]{32}$
        required: true
      responses:
        '201':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/trunking.v1.trunk.credential_list'
          description: Created
      security:
      - accountSid_authToken: []
      operationId: CreateCredentialList
      x-maturity:
      - GA
      requestBody:
        content:
          application/x-www-form-urlencoded:
            schema:
              $ref: '#/components/schemas/CreateCredentialListRequest'
    get:
      description: ''
      tags:
      - Trunks
      parameters:
      - name: TrunkSid
        in: path
        description: The SID of the Trunk from which to read the credential lists.
        schema:
          type: string
          minLength: 34
          maxLength: 34
          pattern: ^TK[0-9a-fA-F]{32}$
        required: true
      - name: PageSize
        in: query
        description: How many resources to return in each list page. The default is 50, and the maximum is 1000.
        schema:
          type: integer
          minimum: 1
          maximum: 1000
      - name: Page
        in: query
        description: The page index. This value is simply for client state.
        schema:
          type: integer
          minimum: 0
      - name: PageToken
        in: query
        description: The page token. This is provided by the API.
        schema:
          type: string
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ListCredentialListResponse'
          description: OK
      security:
      - accountSid_authToken: []
      operationId: ListCredentialList
      x-maturity:
      - GA
  /v1/Trunks/{TrunkSid}/IpAccessControlLists/{Sid}:
    servers:
    - url: https://trunking.twilio.com
    description: List of IP addresses for accessing a trunk
    x-twilio:
      defaultOutputProperties:
      - sid
      - friendly_name
      - date_created
      pathType: instance
      parent: /Trunks/{Sid}
    get:
      description: ''
      tags:
      - Trunks
      parameters:
      - name: TrunkSid
        in: path
        description: The SID of the Trunk from which to fetch the IP Access Control List.
        schema:
          type: string
          minLength: 34
          maxLength: 34
          pattern: ^TK[0-9a-fA-F]{32}$
        required: true
      - name: Sid
        in: path
        description: The unique string that we created to identify the IpAccessControlList resource to fetch.
        schema:
          type: string
          minLength: 34
          maxLength: 34
          pattern: ^AL[0-9a-fA-F]{32}$
        required: true
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/trunking.v1.trunk.ip_access_control_list'
          description: OK
      security:
      - accountSid_authToken: []
      operationId: FetchIpAccessControlList
      x-maturity:
      - GA
    delete:
      description: Remove an associated IP Access Control List from a Trunk
      tags:
      - Trunks
      parameters:
      - name: TrunkSid
        in: path
        description: The SID of the Trunk from which to delete the IP Access Control List.
        schema:
          type: string
          minLength: 34
          maxLength: 34
          pattern: ^TK[0-9a-fA-F]{32}$
        required: true
      - name: Sid
        in: path
        description: The unique string that we created to identify the IpAccessControlList resource to delete.
        schema:
          type: string
          minLength: 34
          maxLength: 34
          pattern: ^AL[0-9a-fA-F]{32}$
        required: true
      responses:
        '204':
          description: The resource was deleted successfully.
      security:
      - accountSid_authToken: []
      operationId: DeleteIpAccessControlList
      x-maturity:
      - GA
  /v1/Trunks/{TrunkSid}/IpAccessControlLists:
    servers:
    - url: https://trunking.twilio.com
    description: List of IP addresses for accessing a trunk
    x-twilio:
      defaultOutputProperties:
      - sid
      - friendly_name
      - date_created
      pathType: list
      parent: /Trunks/{Sid}
    post:
      description: Associate an IP Access Control List with a Trunk
      tags:
      - Trunks
      parameters:
      - name: TrunkSid
        in: path
        description: The SID of the Trunk to associate the IP Access Control List with.
        schema:
          type: string
          minLength: 34
          maxLength: 34
          pattern: ^TK[0-9a-fA-F]{32}$
        required: true
      responses:
        '201':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/trunking.v1.trunk.ip_access_control_list'
          description: Created
      security:
      - accountSid_authToken: []
      operationId: CreateIpAccessControlList
      x-maturity:
      - GA
      requestBody:
        content:
          application/x-www-form-urlencoded:
            schema:
              $ref: '#/components/schemas/CreateIpAccessControlListRequest'
    get:
      description: List all IP Access Control Lists for a Trunk
      tags:
      - Trunks
      parameters:
      - name: TrunkSid
        in: path
        description: The SID of the Trunk from which to read the IP Access Control Lists.
        schema:
          type: string
          minLength: 34
          maxLength: 34
          pattern: ^TK[0-9a-fA-F]{32}$
        required: true
      - name: PageSize
        in: query
        description: How many resources to return in each list page. The default is 50, and the maximum is 1000.
        schema:
          type: integer
          minimum: 1
          maximum: 1000
      - name: Page
        in: query
        description: The page index. This value is simply for client state.
        schema:
          type: integer
          minimum: 0
      - name: PageToken
        in: query
        description: The page token. This is provided by the API.
        schema:
          type: string
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ListIpAccessControlListResponse'
          description: OK
      security:
      - accountSid_authToken: []
      operationId: ListIpAccessControlList
      x-maturity:
      - GA
  /v1/Trunks/{TrunkSid}/OriginationUrls/{Sid}:
    servers:
    - url: https://trunking.twilio.com
    description: Network element entry points into your communications infrastructure
    x-twilio:
      defaultOutputProperties:
      - sid
      - friendly_name
      - sip_url
      - priority
      - weight
      pathType: instance
      parent: /Trunks/{Sid}
    get:
      description: ''
      tags:
      - Trunks
      parameters:
      - name: TrunkSid
        in: path
        description: The SID of the Trunk from which to fetch the OriginationUrl.
        schema:
          type: string
          minLength: 34
          maxLength: 34
          pattern: ^TK[0-9a-fA-F]{32}$
        required: true
      - name: Sid
        in: path
        description: The unique string that we created to identify the OriginationUrl resource to fetch.
        schema:
          type: string
          minLength: 34
          maxLength: 34
          pattern: ^OU[0-9a-fA-F]{32}$
        required: true
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/trunking.v1.trunk.origination_url'
          description: OK
      security:
      - accountSid_authToken: []
      operationId: FetchOriginationUrl
      x-maturity:
      - GA
    delete:
      description: ''
      tags:
      - Trunks
      parameters:
      - name: TrunkSid
        in: path
        description: The SID of the Trunk from which to delete the OriginationUrl.
        schema:
          type: string
          minLength: 34
          maxLength: 34
          pattern: ^TK[0-9a-fA-F]{32}$
        required: true
      - name: Sid
        in: path
        description: The unique string that we created to identify the OriginationUrl resource to delete.
        schema:
          type: string
          minLength: 34
          maxLength: 34
          pattern: ^OU[0-9a-fA-F]{32}$
        required: true
      responses:
        '204':
          description: The resource was deleted successfully.
      security:
      - accountSid_authToken: []
      operationId: DeleteOriginationUrl
      x-maturity:
      - GA
    post:
      description: ''
      tags:
      - Trunks
      parameters:
      - name: TrunkSid
        in: path
        description: The SID of the Trunk from which to update the OriginationUrl.
        schema:
          type: string
          minLength: 34
          maxLength: 34
          pattern: ^TK[0-9a-fA-F]{32}$
        required: true
      - name: Sid
        in: path
        description: The unique string that we created to identify the OriginationUrl resource to update.
        schema:
          type: string
          minLength: 34
          maxLength: 34
          pattern: ^OU[0-9a-fA-F]{32}$
        required: true
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/trunking.v1.trunk.origination_url'
          description: OK
      security:
      - accountSid_authToken: []
      operationId: UpdateOriginationUrl
      x-maturity:
      - GA
      requestBody:
        content:
          application/x-www-form-urlencoded:
            schema:
              $ref: '#/components/schemas/UpdateOriginationUrlRequest'
  /v1/Trunks/{TrunkSid}/OriginationUrls:
    servers:
    - url: https://trunking.twilio.com
    description: Network element entry points into your communications infrastructure
    x-twilio:
      defaultOutputProperties:
      - sid
      - friendly_name
      - sip_url
      - priority
      - weight
      pathType: list
      parent: /Trunks/{Sid}
    post:
      description: ''
      tags:
      - Trunks
      parameters:
      - name: TrunkSid
        in: path
        description: The SID of the Trunk to associate the resource with.
        schema:
          type: string
          minLength: 34
          maxLength: 34
          pattern: ^TK[0-9a-fA-F]{32}$
        required: true
      responses:
        '201':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/trunking.v1.trunk.origination_url'
          description: Created
      security:
      - accountSid_authToken: []
      operationId: CreateOriginationUrl
      x-maturity:
      - GA
      requestBody:
        content:
          application/x-www-form-urlencoded:
            schema:
              $ref: '#/components/schemas/CreateOriginationUrlRequest'
    get:
      description: ''
      tags:
      - Trunks
      parameters:
      - name: TrunkSid
        in: path
        description: The SID of the Trunk from which to read the OriginationUrl.
        schema:
          type: string
          minLength: 34
          maxLength: 34
          pattern: ^TK[0-9a-fA-F]{32}$
        required: true
      - name: PageSize
        in: query
        description: How many resources to return in each list page. The default is 50, and the maximum is 1000.
        schema:
          type: integer
          minimum: 1
          maximum: 1000
      - name: Page
        in: query
        description: The page index. This value is simply for client state.
        schema:
          type: integer
          minimum: 0
      - name: PageToken
        in: query
        description: The page token. This is provided by the API.
        schema:
          type: string
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ListOriginationUrlResponse'
          description: OK
      security:
      - accountSid_authToken: []
      operationId: ListOriginationUrl
      x-maturity:
      - GA
  /v1/Trunks/{TrunkSid}/PhoneNumbers/{Sid}:
    servers:
    - url: https://trunking.twilio.com
    description: Phone numbers associated with trunks
    x-twilio:
      defaultOutputProperties:
      - sid
      - friendly_name
      - phone_number
      pathType: instance
      parent: /Trunks/{Sid}
    get:
      description: ''
      tags:
      - Trunks
      parameters:
      - name: TrunkSid
        in: path
        description: The SID of the Trunk from which to fetch the PhoneNumber resource.
        schema:
          type: string
          minLength: 34
          maxLength: 34
          pattern: ^TK[0-9a-fA-F]{32}$
        required: true
      - name: Sid
        in: path
        description: The unique string that we created to identify the PhoneNumber resource to fetch.
        schema:
          type: string
          minLength: 34
          maxLength: 34
          pattern: ^PN[0-9a-fA-F]{32}$
        required: true
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/trunking.v1.trunk.phone_number'
          description: OK
      security:
      - accountSid_authToken: []
      operationId: FetchPhoneNumber
      x-maturity:
      - GA
    delete:
      description: ''
      tags:
      - Trunks
      parameters:
      - name: TrunkSid
        in: path
        description: The SID of the Trunk from which to delete the PhoneNumber resource.
        schema:
          type: string
          minLength: 34
          maxLength: 34
          pattern: ^TK[0-9a-fA-F]{32}$
        required: true
      - name: Sid
        in: path
        description: The unique string that we created to identify the PhoneNumber resource to delete.
        schema:
          type: string
          minLength: 34
          maxLength: 34
          pattern: ^PN[0-9a-fA-F]{32}$
        required: true
      responses:
        '204':
          description: The resource was deleted successfully.
      security:
      - accountSid_authToken: []
      operationId: DeletePhoneNumber
      x-maturity:
      - GA
  /v1/Trunks/{TrunkSid}/PhoneNumbers:
    servers:
    - url: https://trunking.twilio.com
    description: Phone numbers associated with trunks
    x-twilio:
      defaultOutputProperties:
      - sid
      - friendly_name
      - phone_number
      pathType: list
      parent: /Trunks/{Sid}
    post:
      description: ''
      tags:
      - Trunks
      parameters:
      - name: TrunkSid
        in: path
        description: The SID of the Trunk to associate the phone number with.
        schema:
          type: string
          minLength: 34
          maxLength: 34
          pattern: ^TK[0-9a-fA-F]{32}$
        required: true
      responses:
        '201':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/trunking.v1.trunk.phone_number'
          description: Created
      security:
      - accountSid_authToken: []
      operationId: CreatePhoneNumber
      x-maturity:
      - GA
      requestBody:
        content:
          application/x-www-form-urlencoded:
            schema:
              $ref: '#/components/schemas/CreatePhoneNumberRequest'
    get:
      description: ''
      tags:
      - Trunks
      parameters:
      - name: TrunkSid
        in: path
        description: The SID of the Trunk from which to read the PhoneNumber resources.
        schema:
          type: string
          minLength: 34
          maxLength: 34
          pattern: ^TK[0-9a-fA-F]{32}$
        required: true
      - name: PageSize
        in: query
        description: How many resources to return in each list page. The default is 50, and the maximum is 1000.
        schema:
          type: integer
          minimum: 1
          maximum: 1000
      - name: Page
        in: query
        description: The page index. This value is simply for client state.
        schema:
          type: integer
          minimum: 0
      - name: PageToken
        in: query
        description: The page token. This is provided by the API.
        schema:
          type: string
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ListPhoneNumberResponse'
          description: OK
      security:
      - accountSid_authToken: []
      operationId: ListPhoneNumber
      x-maturity:
      - GA
  /v1/Trunks/{TrunkSid}/Recording:
    servers:
    - url: https://trunking.twilio.com
    description: Recording settings for a trunk
    x-twilio:
      defaultOutputProperties:
      - mode
      - trim
      pathType: instance
      parent: /Trunks/{Sid}
      mountName: recordings
    get:
      description: ''
      tags:
      - Trunks
      parameters:
      - name: TrunkSid
        in: path
        description: The SID of the Trunk from which to fetch the recording settings.
        schema:
          type: string
          minLength: 34
          maxLength: 34
          pattern: ^TK[0-9a-fA-F]{32}$
        required: true
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/trunking.v1.trunk.recording'
          description: OK
      security:
      - accountSid_authToken: []
      operationId: FetchRecording
      x-maturity:
      - GA
    post:
      description: ''
      tags:
      - Trunks
      parameters:
      - name: TrunkSid
        in: path
        description: The SID of the Trunk that will have its recording settings updated.
        schema:
          type: string
          minLength: 34
          maxLength: 34
          pattern: ^TK[0-9a-fA-F]{32}$
        required: true
      responses:
        '202':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/trunking.v1.trunk.recording'
          description: Accepted
      security:
      - accountSid_authToken: []
      operationId: UpdateRecording
      x-maturity:
      - GA
      requestBody:
        content:
          application/x-www-form-urlencoded:
            schema:
              $ref: '#/components/schemas/UpdateRecordingRequest'
  /v1/Trunks/{Sid}:
    servers:
    - url: https://trunking.twilio.com
    description: Represents a SIP trunk
    x-twilio:
      defaultOutputProperties:
      - sid
      - friendly_name
      - domain_name
      pathType: instance
      dependentProperties:
        origination_urls:
          mapping:
            trunk_sid: sid
          resource_url: /v1/Trunks/{trunk_sid}/OriginationUrls
        credentials_lists:
          mapping:
            trunk_sid: sid
          resource_url: /v1/Trunks/{trunk_sid}/CredentialLists
        ip_access_control_lists:
          mapping:
            trunk_sid: sid
          resource_url: /v1/Trunks/{trunk_sid}/IpAccessControlLists
        phone_numbers:
          mapping:
            trunk_sid: sid
          resource_url: /v1/Trunks/{trunk_sid}/PhoneNumbers
        recordings:
          mapping:
            trunk_sid: sid
          resource_url: /v1None
    get:
      description: ''
      tags:
      - Trunks
      parameters:
      - name: Sid
        in: path
        description: The unique string that we created to identify the Trunk resource to fetch.
        schema:
          type: string
          minLength: 34
          maxLength: 34
          pattern: ^TK[0-9a-fA-F]{32}$
        required: true
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/trunking.v1.trunk'
          description: OK
      security:
      - accountSid_authToken: []
      operationId: FetchTrunk
      x-maturity:
      - GA
    delete:
      description: ''
      tags:
      - Trunks
      parameters:
      - name: Sid
        in: path
        description: The unique string that we created to identify the Trunk resource to delete.
        schema:
          type: string
          minLength: 34
          maxLength: 34
          pattern: ^TK[0-9a-fA-F]{32}$
        required: true
      responses:
        '204':
          description: The resource was deleted successfully.
      security:
      - accountSid_authToken: []
      operationId: DeleteTrunk
      x-maturity:
      - GA
    post:
      description: ''
      tags:
      - Trunks
      parameters:
      - name: Sid
        in: path
        description: The unique string that we created to identify the OriginationUrl resource to update.
        schema:
          type: string
          minLength: 34
          maxLength: 34
          pattern: ^TK[0-9a-fA-F]{32}$
        required: true
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/trunking.v1.trunk'
          description: OK
      security:
      - accountSid_authToken: []
      operationId: UpdateTrunk
      x-maturity:
      - GA
      requestBody:
        content:
          application/x-www-form-urlencoded:
            schema:
              $ref: '#/components/schemas/UpdateTrunkRequest'
  /v1/Trunks:
    servers:
    - url: https://trunking.twilio.com
    description: Represents a SIP trunk
    x-twilio:
      defaultOutputProperties:
      - sid
      - friendly_name
      - domain_name
      pathType: list
      dependentProperties:
        origination_urls:
          mapping:
            trunk_sid: sid
          resource_url: /v1/Trunks/{trunk_sid}/OriginationUrls
        credentials_lists:
          mapping:
            trunk_sid: sid
          resource_url: /v1/Trunks/{trunk_sid}/CredentialLists
        ip_access_control_lists:
          mapping:
            trunk_sid: sid
          resource_url: /v1/Trunks/{trunk_sid}/IpAccessControlLists
        phone_numbers:
          mapping:
            trunk_sid: sid
          resource_url: /v1/Trunks/{trunk_sid}/PhoneNumbers
        recordings:
          mapping:
            trunk_sid: sid
          resource_url: /v1None
    post:
      description: ''
      tags:
      - Trunks
      responses:
        '201':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/trunking.v1.trunk'
          description: Created
      security:
      - accountSid_authToken: []
      operationId: CreateTrunk
      x-maturity:
      - GA
      requestBody:
        content:
          application/x-www-form-urlencoded:
            schema:
              $ref: '#/components/schemas/CreateTrunkRequest'
    get:
      description: ''
      tags:
      - Trunks
      parameters:
      - name: PageSize
        in: query
        description: How many resources to return in each list page. The default is 50, and the maximum is 1000.
        schema:
          type: integer
          minimum: 1
          maximum: 1000
      - name: Page
        in: query
        description: The page index. This value is simply for client state.
        schema:
          type: integer
          minimum: 0
      - name: PageToken
        in: query
        description: The page token. This is provided by the API.
        schema:
          type: string
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ListTrunkResponse'
          description: OK
      security:
      - accountSid_authToken: []
      operationId: ListTrunk
      x-maturity:
      - GA
components:
  schemas:
    ListCredentialListResponse:
      type: object
      properties:
        credential_lists:
          type: array
          items:
            $ref: '#/components/schemas/trunking.v1.trunk.credential_list'
        meta:
          type: object
          properties:
            first_page_url:
              type: string
              format: uri
            next_page_url:
              type:
              - string
              - 'null'
              format: uri
            page:
              type: integer
            page_size:
              type: integer
            previous_page_url:
              type:
              - string
              - 'null'
              format: uri
            url:
              type: string
              format: uri
            key:
              type: string
    UpdateRecordingRequest:
      type: object
      properties:
        Mode:
          type: string
          $ref: '#/components/schemas/recording_enum_recording_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.
        Trim:
          type: string
          $ref: '#/components/schemas/recording_enum_recording_trim'
          description: The recording trim setting for the trunk. Can be do-not-trim (default) or trim-silence.
    ListOriginationUrlResponse:
      type: object
      properties:
        origination_urls:
          type: array
          items:
            $ref: '#/components/schemas/trunking.v1.trunk.origination_url'
        meta:
          type: object
          properties:
            first_page_url:
              type: string
              format: uri
            next_page_url:
              type:
              - string
              - 'null'
              format: uri
            page:
              type: integer
            page_size:
              type: integer
            previous_page_url:
              type:
              - string
              - 'null'
              format: uri
            url:
              type: string
              format: uri
            key:
              type: string
    CreateIpAccessControlListRequest:
      type: object
      required:
      - IpAccessControlListSid
      properties:
        IpAccessControlListSid:
          type: string
          minLength: 34
          maxLength: 34
          pattern: ^AL[0-9a-fA-F]{32}$
          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.
    trunking.v1.trunk.phone_number:
      type: object
      properties:
        account_sid:
          type:
          - string
          - 'null'
          minLength: 34
          maxLength: 34
          pattern: ^AC[0-9a-fA-F]{32}$
          description: The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the PhoneNumber resource.
        address_requirements:
          type:
          - string
          - 'null'
          $ref: '#/components/schemas/phone_number_enum_address_requirement'
          description: 'Whether the phone number requires an [Address](https://www.twilio.com/docs/usage/api/address) registered with Twilio and, if so, what type. Can be: `none`, `any`, `local`, or `foreign`.'
        api_version:
          type:
          - string
          - 'null'
          description: The API version used to start a new TwiML session.
        beta:
          type:
          - boolean
          - 'null'
          description: 'Whether the phone number is new to the Twilio platform. Can be: `true` or `false`.'
        capabilities:
          type:
          - object
          - 'null'
          format: string-map
          description: 'The set of Boolean properties that indicate whether a phone number can receive calls or messages.  Capabilities are  `Voice`, `SMS`, and `MMS` and each capability can be: `true` or `f

# --- truncated at 32 KB (63 KB total) ---
# Full source: https://raw.githubusercontent.com/api-evangelist/twilio/refs/heads/main/openapi/twilio-trunks-api-openapi.yml