Telnyx · Capability

Telnyx API — Porting Orders

Telnyx API — Porting Orders. 53 operations. Lead operation: List all porting events. Self-contained Naftiko capability covering one Telnyx business surface.

Run with Naftiko TelnyxPorting Orders

What You Can Do

GET
Listportingevents — List all porting events
/v1/porting/events
GET
Showportingevent — Show a porting event
/v1/porting/events/{id}
POST
Republishportingevent — Republish a porting event
/v1/porting/events/{id}/republish
GET
Listloaconfigurations — List LOA configurations
/v1/porting/loa-configurations
POST
Createloaconfiguration — Create a LOA configuration
/v1/porting/loa-configurations
POST
Previewloaconfigurationparams — Preview the LOA configuration parameters
/v1/porting/loa-configurations/preview
DELETE
Deleteloaconfiguration — Delete a LOA configuration
/v1/porting/loa-configurations/{id}
GET
Getloaconfiguration — Retrieve a LOA configuration
/v1/porting/loa-configurations/{id}
PATCH
Updateloaconfiguration — Update a LOA configuration
/v1/porting/loa-configurations/{id}
GET
Previewloaconfiguration — Preview a LOA configuration
/v1/porting/loa-configurations/{id}/preview
GET
Listportingreports — List porting related reports
/v1/porting/reports
POST
Createportingreport — Create a porting related report
/v1/porting/reports
GET
Getportingreport — Retrieve a report
/v1/porting/reports/{id}
GET
Listportingukcarriers — List available carriers in the UK
/v1/porting/uk-carriers
GET
Listportingorders — List all porting orders
/v1/porting-orders
POST
Createportingorder — Create a porting order
/v1/porting-orders
GET
Listexceptiontypes — List all exception types
/v1/porting-orders/exception-types
GET
Listphonenumberconfigurations — List all phone number configurations
/v1/porting-orders/phone-number-configurations
POST
Createphonenumberconfigurations — Create a list of phone number configurations
/v1/porting-orders/phone-number-configurations
DELETE
Deleteportingorder — Delete a porting order
/v1/porting-orders/{id}
GET
Getportingorder — Retrieve a porting order
/v1/porting-orders/{id}
PATCH
Updateportingorder — Edit a porting order
/v1/porting-orders/{id}
POST
Activateportingorder — Activate every number in a porting order asynchronously.
/v1/porting-orders/{id}/actions/activate
POST
Cancelportingorder — Cancel a porting order
/v1/porting-orders/{id}/actions/cancel
POST
Confirmportingorder — Submit a porting order.
/v1/porting-orders/{id}/actions/confirm
POST
Shareportingorder — Share a porting order
/v1/porting-orders/{id}/actions/share
GET
Listportingorderactivationjobs — List all porting activation jobs
/v1/porting-orders/{id}/activation-jobs
GET
Getportingordersactivationjob — Retrieve a porting activation job
/v1/porting-orders/{id}/activation-jobs/{activationjobid}
PATCH
Updateportingordersactivationjob — Update a porting activation job
/v1/porting-orders/{id}/activation-jobs/{activationjobid}
GET
Listadditionaldocuments — List additional documents
/v1/porting-orders/{id}/additional-documents
POST
Createadditionaldocuments — Create a list of additional documents
/v1/porting-orders/{id}/additional-documents
DELETE
Deleteadditionaldocument — Delete an additional document
/v1/porting-orders/{id}/additional-documents/{additional-document-id}
GET
Listallowedfocwindows — List allowed FOC dates
/v1/porting-orders/{id}/allowed-foc-windows
GET
Listportingordercomments — List all comments of a porting order
/v1/porting-orders/{id}/comments
POST
Createportingordercomment — Create a comment for a porting order
/v1/porting-orders/{id}/comments
GET
Getportingorderloatemplate — Download a porting order loa template
/v1/porting-orders/{id}/loa-template
GET
Listportingorderrequirements — List porting order requirements
/v1/porting-orders/{id}/requirements
GET
Getportingordersubrequest — Retrieve the associated V1 sub_request_id and port_request_id
/v1/porting-orders/{id}/sub-request
GET
Listverificationcodes — List verification codes
/v1/porting-orders/{id}/verification-codes
POST
Sendportingverificationcodes — Send the verification codes
/v1/porting-orders/{id}/verification-codes/send
POST
Verifyportingverificationcodes — Verify the verification code for a list of phone numbers
/v1/porting-orders/{id}/verification-codes/verify
GET
Listportingactionrequirements — List action requirements for a porting order
/v1/porting-orders/{porting-order-id}/action-requirements
POST
Initiateportingactionrequirement — Initiate an action requirement
/v1/porting-orders/{porting-order-id}/action-requirements/{id}/initiate
GET
Listportingassociatedphonenumbers — List all associated phone numbers
/v1/porting-orders/{porting-order-id}/associated-phone-numbers
POST
Createportingassociatedphonenumber — Create an associated phone number
/v1/porting-orders/{porting-order-id}/associated-phone-numbers
DELETE
Deleteportingassociatedphonenumber — Delete an associated phone number
/v1/porting-orders/{porting-order-id}/associated-phone-numbers/{id}
GET
Listportingphonenumberblocks — List all phone number blocks
/v1/porting-orders/{porting-order-id}/phone-number-blocks
POST
Createportingphonenumberblock — Create a phone number block
/v1/porting-orders/{porting-order-id}/phone-number-blocks
DELETE
Deleteportingphonenumberblock — Delete a phone number block
/v1/porting-orders/{porting-order-id}/phone-number-blocks/{id}
GET
Listportingphonenumberextensions — List all phone number extensions
/v1/porting-orders/{porting-order-id}/phone-number-extensions
POST
Createportingphonenumberextension — Create a phone number extension
/v1/porting-orders/{porting-order-id}/phone-number-extensions
DELETE
Deleteportingphonenumberextension — Delete a phone number extension
/v1/porting-orders/{porting-order-id}/phone-number-extensions/{id}
GET
Listportingphonenumbers — List all porting phone numbers
/v1/porting-phone-numbers

MCP Tools

list-all-porting-events

List all porting events

read-only idempotent
show-porting-event

Show a porting event

read-only idempotent
republish-porting-event

Republish a porting event

list-loa-configurations

List LOA configurations

read-only idempotent
create-loa-configuration

Create a LOA configuration

preview-loa-configuration-parameters

Preview the LOA configuration parameters

delete-loa-configuration

Delete a LOA configuration

idempotent
retrieve-loa-configuration

Retrieve a LOA configuration

read-only idempotent
update-loa-configuration

Update a LOA configuration

idempotent
preview-loa-configuration

Preview a LOA configuration

read-only idempotent
list-porting-related-reports

List porting related reports

read-only idempotent
create-porting-related-report

Create a porting related report

retrieve-report

Retrieve a report

read-only idempotent
list-available-carriers-uk

List available carriers in the UK

read-only idempotent
list-all-porting-orders

List all porting orders

read-only idempotent
create-porting-order

Create a porting order

list-all-exception-types

List all exception types

read-only idempotent
list-all-phone-number-configurations

List all phone number configurations

read-only idempotent
create-list-phone-number-configurations

Create a list of phone number configurations

read-only
delete-porting-order

Delete a porting order

idempotent
retrieve-porting-order

Retrieve a porting order

read-only idempotent
edit-porting-order

Edit a porting order

idempotent
activate-every-number-porting-order

Activate every number in a porting order asynchronously.

cancel-porting-order

Cancel a porting order

submit-porting-order

Submit a porting order.

share-porting-order

Share a porting order

list-all-porting-activation-jobs

List all porting activation jobs

read-only idempotent
retrieve-porting-activation-job

Retrieve a porting activation job

read-only idempotent
update-porting-activation-job

Update a porting activation job

idempotent
list-additional-documents

List additional documents

read-only idempotent
create-list-additional-documents

Create a list of additional documents

read-only
delete-additional-document

Delete an additional document

idempotent
list-allowed-foc-dates

List allowed FOC dates

read-only idempotent
list-all-comments-porting-order

List all comments of a porting order

read-only idempotent
create-comment-porting-order

Create a comment for a porting order

download-porting-order-loa-template

Download a porting order loa template

read-only idempotent
list-porting-order-requirements

List porting order requirements

read-only idempotent
retrieve-associated-v1-sub-request

Retrieve the associated V1 sub_request_id and port_request_id

read-only idempotent
list-verification-codes

List verification codes

read-only idempotent
send-verification-codes

Send the verification codes

verify-verification-code-list-phone

Verify the verification code for a list of phone numbers

read-only
list-action-requirements-porting-order

List action requirements for a porting order

read-only idempotent
initiate-action-requirement

Initiate an action requirement

list-all-associated-phone-numbers

List all associated phone numbers

read-only idempotent
create-associated-phone-number

Create an associated phone number

delete-associated-phone-number

Delete an associated phone number

idempotent
list-all-phone-number-blocks

List all phone number blocks

read-only idempotent
create-phone-number-block

Create a phone number block

delete-phone-number-block

Delete a phone number block

idempotent
list-all-phone-number-extensions

List all phone number extensions

read-only idempotent
create-phone-number-extension

Create a phone number extension

delete-phone-number-extension

Delete a phone number extension

idempotent
list-all-porting-phone-numbers

List all porting phone numbers

read-only idempotent

Capability Spec

telnyx-porting-orders.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: Telnyx API — Porting Orders
  description: 'Telnyx API — Porting Orders. 53 operations. Lead operation: List all porting events. Self-contained Naftiko
    capability covering one Telnyx business surface.'
  tags:
  - Telnyx
  - Porting Orders
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    TELNYX_API_KEY: TELNYX_API_KEY
capability:
  consumes:
  - type: http
    namespace: telnyx-porting-orders
    baseUri: https://api.telnyx.com/v2
    description: Telnyx API — Porting Orders business capability. Self-contained, no shared references.
    resources:
    - name: porting-events
      path: /porting/events
      operations:
      - name: listportingevents
        method: GET
        description: List all porting events
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: filter
          in: query
          type: object
          description: 'Consolidated filter parameter (deepObject style). Originally: filter[type], filter[porting_order_id],
            filter[created_at][gte], filter[created_at][lte]'
    - name: porting-events-id
      path: /porting/events/{id}
      operations:
      - name: showportingevent
        method: GET
        description: Show a porting event
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: id
          in: path
          type: string
          description: Identifies the porting event.
          required: true
    - name: porting-events-id-republish
      path: /porting/events/{id}/republish
      operations:
      - name: republishportingevent
        method: POST
        description: Republish a porting event
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: id
          in: path
          type: string
          description: Identifies the porting event.
          required: true
    - name: porting-loa_configurations
      path: /porting/loa_configurations
      operations:
      - name: listloaconfigurations
        method: GET
        description: List LOA configurations
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
      - name: createloaconfiguration
        method: POST
        description: Create a LOA configuration
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: false
    - name: porting-loa_configurations-preview
      path: /porting/loa_configurations/preview
      operations:
      - name: previewloaconfigurationparams
        method: POST
        description: Preview the LOA configuration parameters
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: false
    - name: porting-loa_configurations-id
      path: /porting/loa_configurations/{id}
      operations:
      - name: deleteloaconfiguration
        method: DELETE
        description: Delete a LOA configuration
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: id
          in: path
          type: string
          description: Identifies a LOA configuration.
          required: true
      - name: getloaconfiguration
        method: GET
        description: Retrieve a LOA configuration
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: id
          in: path
          type: string
          description: Identifies a LOA configuration.
          required: true
      - name: updateloaconfiguration
        method: PATCH
        description: Update a LOA configuration
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: id
          in: path
          type: string
          description: Identifies a LOA configuration.
          required: true
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: false
    - name: porting-loa_configurations-id-preview
      path: /porting/loa_configurations/{id}/preview
      operations:
      - name: previewloaconfiguration
        method: GET
        description: Preview a LOA configuration
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: id
          in: path
          type: string
          description: Identifies a LOA configuration.
          required: true
    - name: porting-reports
      path: /porting/reports
      operations:
      - name: listportingreports
        method: GET
        description: List porting related reports
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: filter
          in: query
          type: object
          description: 'Consolidated filter parameter (deepObject style). Originally: filter[report_type], filter[status]'
      - name: createportingreport
        method: POST
        description: Create a porting related report
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: false
    - name: porting-reports-id
      path: /porting/reports/{id}
      operations:
      - name: getportingreport
        method: GET
        description: Retrieve a report
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: id
          in: path
          type: string
          description: Identifies a report.
          required: true
    - name: porting-uk_carriers
      path: /porting/uk_carriers
      operations:
      - name: listportingukcarriers
        method: GET
        description: List available carriers in the UK
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
    - name: porting_orders
      path: /porting_orders
      operations:
      - name: listportingorders
        method: GET
        description: List all porting orders
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: filter
          in: query
          type: object
          description: 'Consolidated filter parameter (deepObject style). Originally: filter[customer_reference], filter[customer_group_reference],
            filter[parent_support_key], filter[p'
        - name: sort
          in: query
          type: object
          description: 'Consolidated sort parameter (deepObject style). Originally: sort[value]'
      - name: createportingorder
        method: POST
        description: Create a porting order
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
    - name: porting_orders-exception_types
      path: /porting_orders/exception_types
      operations:
      - name: listexceptiontypes
        method: GET
        description: List all exception types
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
    - name: porting_orders-phone_number_configurations
      path: /porting_orders/phone_number_configurations
      operations:
      - name: listphonenumberconfigurations
        method: GET
        description: List all phone number configurations
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: filter
          in: query
          type: object
          description: 'Consolidated filter parameter (deepObject style). Originally: filter[porting_order.status][in][],
            filter[porting_phone_number][in][], filter[user_bundle_id][in]'
        - name: sort
          in: query
          type: object
          description: 'Consolidated sort parameter (deepObject style). Originally: sort[value]'
      - name: createphonenumberconfigurations
        method: POST
        description: Create a list of phone number configurations
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: false
    - name: porting_orders-id
      path: /porting_orders/{id}
      operations:
      - name: deleteportingorder
        method: DELETE
        description: Delete a porting order
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
      - name: getportingorder
        method: GET
        description: Retrieve a porting order
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
      - name: updateportingorder
        method: PATCH
        description: Edit a porting order
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
    - name: porting_orders-id-actions-activate
      path: /porting_orders/{id}/actions/activate
      operations:
      - name: activateportingorder
        method: POST
        description: Activate every number in a porting order asynchronously.
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
    - name: porting_orders-id-actions-cancel
      path: /porting_orders/{id}/actions/cancel
      operations:
      - name: cancelportingorder
        method: POST
        description: Cancel a porting order
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
    - name: porting_orders-id-actions-confirm
      path: /porting_orders/{id}/actions/confirm
      operations:
      - name: confirmportingorder
        method: POST
        description: Submit a porting order.
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
    - name: porting_orders-id-actions-share
      path: /porting_orders/{id}/actions/share
      operations:
      - name: shareportingorder
        method: POST
        description: Share a porting order
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: false
    - name: porting_orders-id-activation_jobs
      path: /porting_orders/{id}/activation_jobs
      operations:
      - name: listportingorderactivationjobs
        method: GET
        description: List all porting activation jobs
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
    - name: porting_orders-id-activation_jobs-activationJobId
      path: /porting_orders/{id}/activation_jobs/{activationJobId}
      operations:
      - name: getportingordersactivationjob
        method: GET
        description: Retrieve a porting activation job
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
      - name: updateportingordersactivationjob
        method: PATCH
        description: Update a porting activation job
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: false
    - name: porting_orders-id-additional_documents
      path: /porting_orders/{id}/additional_documents
      operations:
      - name: listadditionaldocuments
        method: GET
        description: List additional documents
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: filter
          in: query
          type: object
          description: 'Consolidated filter parameter (deepObject style). Originally: filter[document_type]'
        - name: sort
          in: query
          type: object
          description: 'Consolidated sort parameter (deepObject style). Originally: sort[value]'
      - name: createadditionaldocuments
        method: POST
        description: Create a list of additional documents
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: false
    - name: porting_orders-id-additional_documents-additional_document_id
      path: /porting_orders/{id}/additional_documents/{additional_document_id}
      operations:
      - name: deleteadditionaldocument
        method: DELETE
        description: Delete an additional document
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: additional_document_id
          in: path
          type: string
          description: Additional document identification.
          required: true
    - name: porting_orders-id-allowed_foc_windows
      path: /porting_orders/{id}/allowed_foc_windows
      operations:
      - name: listallowedfocwindows
        method: GET
        description: List allowed FOC dates
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
    - name: porting_orders-id-comments
      path: /porting_orders/{id}/comments
      operations:
      - name: listportingordercomments
        method: GET
        description: List all comments of a porting order
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
      - name: createportingordercomment
        method: POST
        description: Create a comment for a porting order
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
    - name: porting_orders-id-loa_template
      path: /porting_orders/{id}/loa_template
      operations:
      - name: getportingorderloatemplate
        method: GET
        description: Download a porting order loa template
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: loa_configuration_id
          in: query
          type: string
          description: The identifier of the LOA configuration to use for the template. If not provided, the default LOA configuration
            will be used.
    - name: porting_orders-id-requirements
      path: /porting_orders/{id}/requirements
      operations:
      - name: listportingorderrequirements
        method: GET
        description: List porting order requirements
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
    - name: porting_orders-id-sub_request
      path: /porting_orders/{id}/sub_request
      operations:
      - name: getportingordersubrequest
        method: GET
        description: Retrieve the associated V1 sub_request_id and port_request_id
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
    - name: porting_orders-id-verification_codes
      path: /porting_orders/{id}/verification_codes
      operations:
      - name: listverificationcodes
        method: GET
        description: List verification codes
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: filter
          in: query
          type: object
          description: 'Consolidated filter parameter (deepObject style). Originally: filter[verified]'
        - name: sort
          in: query
          type: object
          description: 'Consolidated sort parameter (deepObject style). Originally: sort[value]'
    - name: porting_orders-id-verification_codes-send
      path: /porting_orders/{id}/verification_codes/send
      operations:
      - name: sendportingverificationcodes
        method: POST
        description: Send the verification codes
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: false
    - name: porting_orders-id-verification_codes-verify
      path: /porting_orders/{id}/verification_codes/verify
      operations:
      - name: verifyportingverificationcodes
        method: POST
        description: Verify the verification code for a list of phone numbers
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: false
    - name: porting_orders-porting_order_id-action_requirements
      path: /porting_orders/{porting_order_id}/action_requirements
      operations:
      - name: listportingactionrequirements
        method: GET
        description: List action requirements for a porting order
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: porting_order_id
          in: path
          type: string
          description: The ID of the porting order
          required: true
        - name: filter
          in: query
          type: object
          description: 'Consolidated filter parameter (deepObject style). Originally: filter[id][in][], filter[requirement_type_id],
            filter[action_type], filter[status]'
        - name: sort
          in: query
          type: object
          description: 'Consolidated sort parameter (deepObject style). Originally: sort[value]'
    - name: porting_orders-porting_order_id-action_requirements-id-initiate
      path: /porting_orders/{porting_order_id}/action_requirements/{id}/initiate
      operations:
      - name: initiateportingactionrequirement
        method: POST
        description: Initiate an action requirement
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: porting_order_id
          in: path
          type: string
          description: The ID of the porting order
          required: true
        - name: id
          in: path
          type: string
          description: The ID of the action requirement
          required: true
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: false
    - name: porting_orders-porting_order_id-associated_phone_numbers
      path: /porting_orders/{porting_order_id}/associated_phone_numbers
      operations:
      - name: listportingassociatedphonenumbers
        method: GET
        description: List all associated phone numbers
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: porting_order_id
          in: path
          type: string
          description: Identifies the Porting Order associated with the phone numbers
          required: true
        - name: filter
          in: query
          type: object
          description: 'Consolidated filter parameter (deepObject style). Originally: filter[phone_number], filter[action]'
        - name: sort
          in: query
          type: object
          description: 'Consolidated sort parameter (deepObject style). Originally: sort[value]'
      - name: createportingassociatedphonenumber
        method: POST
        description: Create an associated phone number
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: porting_order_id
          in: path
          type: string
          description: Identifies the Porting Order associated with the phone number
          required: true
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: false
    - name: porting_orders-porting_order_id-associated_phone_numbers-id
      path: /porting_orders/{porting_order_id}/associated_phone_numbers/{id}
      operations:
      - name: deleteportingassociatedphonenumber
        method: DELETE
        description: Delete an associated phone number
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: porting_order_id
          in: path
          type: string
          description: Identifies the Porting Order associated with the phone number
          required: true
        - name: id
          in: path
          type: string
          description: Identifies the associated phone number to be deleted
          required: true
    - name: porting_orders-porting_order_id-phone_number_blocks
      path: /porting_orders/{porting_order_id}/phone_number_blocks
      operations:
      - name: listportingphonenumberblocks
        method: GET
        description: List all phone number blocks
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: porting_order_id
          in: path
          type: string
          description: Identifies the Porting Order associated with the phone number blocks
          required: true
        - name: sort
          in: query
          type: object
          description: 'Consolidated sort parameter (deepObject style). Originally: sort[value]'
      - name: createportingphonenumberblock
        method: POST
        description: Create a phone number block
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: porting_order_id
          in: path
          type: string
          description: Identifies the Porting Order associated with the phone number block
          required: true
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: false
    - name: porting_orders-porting_order_id-phone_number_blocks-id
      path: /porting_orders/{porting_order_id}/phone_number_blocks/{id}
      operations:
      - name: deleteportingphonenumberblock
        method: DELETE
        description: Delete a phone number block
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: porting_order_id
          in: path
          type: string
          description: Identifies the Porting Order associated with the phone number block
          required: true
        - name: id
          in: path
          type: string
          description: Identifies the phone number block to be deleted
          required: true
    - name: porting_orders-porting_order_id-phone_number_extensions
      path: /porting_orders/{porting_order_id}/phone_number_extensions
      operations:
      - name: listportingphonenumberextensions
        method: GET
        description: List all phone number extensions
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: porting_order_id
          in: path
          type: string
          description: Identifies the Porting Order associated with the phone number extensions
          required: true
        - name: filter
          in: query
          type: object
          description: 'Consolidated filter parameter (deepObject style). Originally: filter[porting_phone_number_id]'
        - name: sort
          in: query
          type: object
          description: 'Consolidated sort parameter (deepObject style). Originally: sort[value]'
      - name: createportingphonenumberextension
        method: POST
        description: Create a phone number extension
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: porting_order_id
          in: path
          type: string
          description: Identifies the Porting Order associated with the phone number extension
          required: true
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: false
    - name: porting_orders-porting_order_id-phone_number_extensions-id
      path: /porting_orders/{porting_order_id}/phone_number_extensions/{id}
      operations:
      - name: deleteportingphonenumberextension
        method: DELETE
        description: Delete a phone number extension
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: porting_order_id
          in: path
          type: string
          description: Identifies the Porting Order associated with the phone number extension
          required: true
        - name: id
          in: path
          type: string
          description: Identifies the phone number extension to be deleted
          required: true
    - name: porting_phone_numbers
      path: /porting_phone_numbers
      operations:
      - name: listportingphonenumbers
        method: GET
        description: List all porting phone numbers
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: filter
          in: query
          type: object
          description: 'Consolidated filter parameter (deepObject style). Originally: filter[porting_order_status]'
    authentication:
      type: bearer
      token: '{{env.TELNYX_API_KEY}}'
  exposes:
  - type: rest
    namespace: telnyx-porting-orders-rest
    port: 8080
    description: REST adapter for Telnyx API — Porting Orders. One Spectral-compliant resource per consumed operation, prefixed
      with /v1.
    resources:
    - path: /v1/porting/events
      name: porting-events
      description: REST surface for porting-events.
      operations:
      - method: GET
        name: listportingevents
        description: List all porting events
        call: telnyx-porting-orders.listportingevents
        with:
          filter: rest.filter
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/porting/events/{id}
      name: porting-events-id
      description: REST surface for porting-events-id.
      operations:
      - method: GET
        name: showportingevent
        description: Show a porting event
        call: telnyx-porting-orders.showportingevent
        with:
          id: rest.id
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/porting/events/{id}/republish
      name: porting-events-id-republish
      description: REST surface for porting-events-id-republish.
      operations:
      - method: POST
        name: republishportingevent
        description: Republish a porting event
        call: telnyx-porting-orders.republishportingevent
        with:
          id: rest.id
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/porting/loa-configurations
      name: porting-loa-configurations
      description: REST surface for porting-loa_configurations.
      operations:
      - method: GET
        name: listloaconfigurations
        description: List LOA configurations
        call: telnyx-porting-orders.listloaconfigurations
        outputParameters:
        - type: object
          mapping: $.
      - method: POST
        name: createloaconfiguration
        description: Create a LOA configuration
        call: telnyx-porting-orders.createloaconfiguration
        with:
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/porting/loa-configurations/preview
      name: porting-loa-configurations-preview
      description: REST surface for porting-loa_configurations-preview.
      operations:
      - method: POST
        name: previewloaconfigurationparams
        description: Preview the LOA configuration parameters
        call: telnyx-porting-orders.previewloaconfigurationparams
        with:
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/porting/loa-configurations/{id}
      name: porting-loa-configurations-id
      description: REST surface for porting-loa_configurations-id.
      operations:
      - method: DELETE
        name: deleteloaconfiguration
        description: Delete a LOA configuration
        call: telnyx-porting-orders.deleteloaconfiguration
        with:
          id: rest.id
        outputParameters:
        - type: object
          mapping: $.
      - method: GET
        name: getloaconfiguration
        description: Retrieve a LOA configuration
        call: telnyx-porting-orders.getloaconfiguration
        with:
          id: rest.id
        outputParameters:
        - type: object
          mapping: $.
      - method: PATCH
        name: updateloaconfiguration
        description: Update a LOA configuration
        call: telnyx-porting-orders.updateloaconfiguration
        with:
          id: rest.id
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/porting/loa-configurations/{id}/preview
      name: porting-loa-configurations-id-preview
      description: REST surface for porting-loa_configurations-id-preview.
      operations:
      - method: GET
        name: previewloaconfiguration
        description: Preview a LOA configuration
        call: telnyx-porting-orders.previewloaconfiguration
        with:
          id: rest.id
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/porting/reports
      name: porting-reports
      description: REST surface for porting-reports.
      operations:
      - method: GET
        name: listportingreports
        description: List porting related reports
        call: tel

# --- truncated at 32 KB (68 KB total) ---
# Full source: https://raw.githubusercontent.com/api-evangelist/telnyx/refs/heads/main/capabilities/telnyx-porting-orders.yaml