naftiko: 1.0.0-alpha2 info: label: Telnyx API — Voice Channels description: 'Telnyx API — Voice Channels. 6 operations. Lead operation: List your voice channels for non-US zones. Self-contained Naftiko capability covering one Telnyx business surface.' tags: - Telnyx - Voice Channels created: '2026-05-19' modified: '2026-05-19' binds: - namespace: env keys: TELNYX_API_KEY: TELNYX_API_KEY capability: consumes: - type: http namespace: telnyx-voice-channels baseUri: https://api.telnyx.com/v2 description: Telnyx API — Voice Channels business capability. Self-contained, no shared references. resources: - name: channel_zones path: /channel_zones operations: - name: getchannelzones method: GET description: List your voice channels for non-US zones outputRawFormat: json outputParameters: - name: result type: object value: $. - name: channel_zones-channel_zone_id path: /channel_zones/{channel_zone_id} operations: - name: patchchannelzone method: PUT description: Update voice channels for non-US Zones outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: body in: body type: object description: Request body (JSON). required: true - name: inbound_channels path: /inbound_channels operations: - name: listinboundchannels method: GET description: List your voice channels for US Zone outputRawFormat: json outputParameters: - name: result type: object value: $. - name: updateoutboundchannels method: PATCH description: Update voice channels for US Zone outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: body in: body type: object description: Request body (JSON). required: true - name: list path: /list operations: - name: getallnumberschannelzones method: GET description: List All Numbers using Channel Billing outputRawFormat: json outputParameters: - name: result type: object value: $. - name: list-channel_zone_id path: /list/{channel_zone_id} operations: - name: getnumberschannelzones method: GET description: List Numbers using Channel Billing for a specific Zone outputRawFormat: json outputParameters: - name: result type: object value: $. authentication: type: bearer token: '{{env.TELNYX_API_KEY}}' exposes: - type: rest namespace: telnyx-voice-channels-rest port: 8080 description: REST adapter for Telnyx API — Voice Channels. One Spectral-compliant resource per consumed operation, prefixed with /v1. resources: - path: /v1/channel-zones name: channel-zones description: REST surface for channel_zones. operations: - method: GET name: getchannelzones description: List your voice channels for non-US zones call: telnyx-voice-channels.getchannelzones outputParameters: - type: object mapping: $. - path: /v1/channel-zones/{channel-zone-id} name: channel-zones-channel-zone-id description: REST surface for channel_zones-channel_zone_id. operations: - method: PUT name: patchchannelzone description: Update voice channels for non-US Zones call: telnyx-voice-channels.patchchannelzone with: body: rest.body outputParameters: - type: object mapping: $. - path: /v1/inbound-channels name: inbound-channels description: REST surface for inbound_channels. operations: - method: GET name: listinboundchannels description: List your voice channels for US Zone call: telnyx-voice-channels.listinboundchannels outputParameters: - type: object mapping: $. - method: PATCH name: updateoutboundchannels description: Update voice channels for US Zone call: telnyx-voice-channels.updateoutboundchannels with: body: rest.body outputParameters: - type: object mapping: $. - path: /v1/list name: list description: REST surface for list. operations: - method: GET name: getallnumberschannelzones description: List All Numbers using Channel Billing call: telnyx-voice-channels.getallnumberschannelzones outputParameters: - type: object mapping: $. - path: /v1/list/{channel-zone-id} name: list-channel-zone-id description: REST surface for list-channel_zone_id. operations: - method: GET name: getnumberschannelzones description: List Numbers using Channel Billing for a specific Zone call: telnyx-voice-channels.getnumberschannelzones outputParameters: - type: object mapping: $. - type: mcp namespace: telnyx-voice-channels-mcp port: 9090 transport: http description: MCP adapter for Telnyx API — Voice Channels. One tool per consumed operation, routed inline through this capability's consumes block. tools: - name: list-your-voice-channels-non description: List your voice channels for non-US zones hints: readOnly: true destructive: false idempotent: true call: telnyx-voice-channels.getchannelzones outputParameters: - type: object mapping: $. - name: update-voice-channels-non-us description: Update voice channels for non-US Zones hints: readOnly: false destructive: false idempotent: true call: telnyx-voice-channels.patchchannelzone with: body: tools.body outputParameters: - type: object mapping: $. - name: list-your-voice-channels-us description: List your voice channels for US Zone hints: readOnly: true destructive: false idempotent: true call: telnyx-voice-channels.listinboundchannels outputParameters: - type: object mapping: $. - name: update-voice-channels-us-zone description: Update voice channels for US Zone hints: readOnly: false destructive: false idempotent: true call: telnyx-voice-channels.updateoutboundchannels with: body: tools.body outputParameters: - type: object mapping: $. - name: list-all-numbers-using-channel description: List All Numbers using Channel Billing hints: readOnly: true destructive: false idempotent: true call: telnyx-voice-channels.getallnumberschannelzones outputParameters: - type: object mapping: $. - name: list-numbers-using-channel-billing description: List Numbers using Channel Billing for a specific Zone hints: readOnly: true destructive: false idempotent: true call: telnyx-voice-channels.getnumberschannelzones outputParameters: - type: object mapping: $.