Telnyx · Capability

Telnyx API — Networks

Telnyx API — Networks. 9 operations. Lead operation: List all Networks. Self-contained Naftiko capability covering one Telnyx business surface.

Run with Naftiko TelnyxNetworks

What You Can Do

GET
Listnetworks — List all Networks
/v1/networks
POST
Createnetwork — Create a Network
/v1/networks
DELETE
Deletenetwork — Delete a Network
/v1/networks/{id}
GET
Getnetwork — Retrieve a Network
/v1/networks/{id}
PATCH
Updatenetwork — Update a Network
/v1/networks/{id}
DELETE
Deletedefaultgateway — Delete Default Gateway.
/v1/networks/{id}/default-gateway
GET
Getdefaultgateway — Get Default Gateway status.
/v1/networks/{id}/default-gateway
POST
Createdefaultgateway — Create Default Gateway.
/v1/networks/{id}/default-gateway
GET
Listnetworkinterfaces — List all Interfaces for a Network.
/v1/networks/{id}/network-interfaces

MCP Tools

list-all-networks

List all Networks

read-only idempotent
create-network

Create a Network

delete-network

Delete a Network

idempotent
retrieve-network

Retrieve a Network

read-only idempotent
update-network

Update a Network

idempotent
delete-default-gateway

Delete Default Gateway.

idempotent
get-default-gateway-status

Get Default Gateway status.

read-only idempotent
create-default-gateway

Create Default Gateway.

list-all-interfaces-network

List all Interfaces for a Network.

read-only idempotent

Capability Spec

telnyx-networks.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: Telnyx API — Networks
  description: 'Telnyx API — Networks. 9 operations. Lead operation: List all Networks. Self-contained Naftiko capability
    covering one Telnyx business surface.'
  tags:
  - Telnyx
  - Networks
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    TELNYX_API_KEY: TELNYX_API_KEY
capability:
  consumes:
  - type: http
    namespace: telnyx-networks
    baseUri: https://api.telnyx.com/v2
    description: Telnyx API — Networks business capability. Self-contained, no shared references.
    resources:
    - name: networks
      path: /networks
      operations:
      - name: listnetworks
        method: GET
        description: List all Networks
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: filter
          in: query
          type: object
          description: 'Consolidated filter parameter (deepObject style). Originally: filter[name]'
      - name: createnetwork
        method: POST
        description: Create a Network
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
    - name: networks-id
      path: /networks/{id}
      operations:
      - name: deletenetwork
        method: DELETE
        description: Delete a Network
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
      - name: getnetwork
        method: GET
        description: Retrieve a Network
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
      - name: updatenetwork
        method: PATCH
        description: Update a Network
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
    - name: networks-id-default_gateway
      path: /networks/{id}/default_gateway
      operations:
      - name: deletedefaultgateway
        method: DELETE
        description: Delete Default Gateway.
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
      - name: getdefaultgateway
        method: GET
        description: Get Default Gateway status.
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
      - name: createdefaultgateway
        method: POST
        description: Create Default Gateway.
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
    - name: networks-id-network_interfaces
      path: /networks/{id}/network_interfaces
      operations:
      - name: listnetworkinterfaces
        method: GET
        description: List all Interfaces for a Network.
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: filter
          in: query
          type: object
          description: 'Consolidated filter parameter (deepObject style). Originally: filter[name], filter[type], filter[status]'
    authentication:
      type: bearer
      token: '{{env.TELNYX_API_KEY}}'
  exposes:
  - type: rest
    namespace: telnyx-networks-rest
    port: 8080
    description: REST adapter for Telnyx API — Networks. One Spectral-compliant resource per consumed operation, prefixed
      with /v1.
    resources:
    - path: /v1/networks
      name: networks
      description: REST surface for networks.
      operations:
      - method: GET
        name: listnetworks
        description: List all Networks
        call: telnyx-networks.listnetworks
        with:
          filter: rest.filter
        outputParameters:
        - type: object
          mapping: $.
      - method: POST
        name: createnetwork
        description: Create a Network
        call: telnyx-networks.createnetwork
        with:
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/networks/{id}
      name: networks-id
      description: REST surface for networks-id.
      operations:
      - method: DELETE
        name: deletenetwork
        description: Delete a Network
        call: telnyx-networks.deletenetwork
        outputParameters:
        - type: object
          mapping: $.
      - method: GET
        name: getnetwork
        description: Retrieve a Network
        call: telnyx-networks.getnetwork
        outputParameters:
        - type: object
          mapping: $.
      - method: PATCH
        name: updatenetwork
        description: Update a Network
        call: telnyx-networks.updatenetwork
        with:
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/networks/{id}/default-gateway
      name: networks-id-default-gateway
      description: REST surface for networks-id-default_gateway.
      operations:
      - method: DELETE
        name: deletedefaultgateway
        description: Delete Default Gateway.
        call: telnyx-networks.deletedefaultgateway
        outputParameters:
        - type: object
          mapping: $.
      - method: GET
        name: getdefaultgateway
        description: Get Default Gateway status.
        call: telnyx-networks.getdefaultgateway
        outputParameters:
        - type: object
          mapping: $.
      - method: POST
        name: createdefaultgateway
        description: Create Default Gateway.
        call: telnyx-networks.createdefaultgateway
        with:
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/networks/{id}/network-interfaces
      name: networks-id-network-interfaces
      description: REST surface for networks-id-network_interfaces.
      operations:
      - method: GET
        name: listnetworkinterfaces
        description: List all Interfaces for a Network.
        call: telnyx-networks.listnetworkinterfaces
        with:
          filter: rest.filter
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: telnyx-networks-mcp
    port: 9090
    transport: http
    description: MCP adapter for Telnyx API — Networks. One tool per consumed operation, routed inline through this capability's
      consumes block.
    tools:
    - name: list-all-networks
      description: List all Networks
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: telnyx-networks.listnetworks
      with:
        filter: tools.filter
      outputParameters:
      - type: object
        mapping: $.
    - name: create-network
      description: Create a Network
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: telnyx-networks.createnetwork
      with:
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: delete-network
      description: Delete a Network
      hints:
        readOnly: false
        destructive: true
        idempotent: true
      call: telnyx-networks.deletenetwork
      outputParameters:
      - type: object
        mapping: $.
    - name: retrieve-network
      description: Retrieve a Network
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: telnyx-networks.getnetwork
      outputParameters:
      - type: object
        mapping: $.
    - name: update-network
      description: Update a Network
      hints:
        readOnly: false
        destructive: false
        idempotent: true
      call: telnyx-networks.updatenetwork
      with:
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: delete-default-gateway
      description: Delete Default Gateway.
      hints:
        readOnly: false
        destructive: true
        idempotent: true
      call: telnyx-networks.deletedefaultgateway
      outputParameters:
      - type: object
        mapping: $.
    - name: get-default-gateway-status
      description: Get Default Gateway status.
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: telnyx-networks.getdefaultgateway
      outputParameters:
      - type: object
        mapping: $.
    - name: create-default-gateway
      description: Create Default Gateway.
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: telnyx-networks.createdefaultgateway
      with:
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: list-all-interfaces-network
      description: List all Interfaces for a Network.
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: telnyx-networks.listnetworkinterfaces
      with:
        filter: tools.filter
      outputParameters:
      - type: object
        mapping: $.