naftiko: 1.0.0-alpha2 info: label: Telnyx API — Phone Number Campaigns description: 'Telnyx API — Phone Number Campaigns. 5 operations. Lead operation: List phone number campaigns. Self-contained Naftiko capability covering one Telnyx business surface.' tags: - Telnyx - Phone Number Campaigns created: '2026-05-19' modified: '2026-05-19' binds: - namespace: env keys: TELNYX_API_KEY: TELNYX_API_KEY capability: consumes: - type: http namespace: telnyx-phone-number-campaigns baseUri: https://api.telnyx.com/v2 description: Telnyx API — Phone Number Campaigns business capability. Self-contained, no shared references. resources: - name: 10dlc-phone_number_campaigns path: /10dlc/phone_number_campaigns operations: - name: getallphonenumbercampaigns method: GET description: List phone number campaigns outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: recordsPerPage in: query type: integer - name: page in: query type: integer - name: sort in: query type: string description: Specifies the sort order for results. If not given, results are sorted by createdAt in descending order. - name: createphonenumbercampaign method: POST description: Create New Phone Number Campaign outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: body in: body type: object description: Request body (JSON). required: true - name: 10dlc-phone_number_campaigns-phoneNumber path: /10dlc/phone_number_campaigns/{phoneNumber} operations: - name: deletephonenumbercampaign method: DELETE description: Delete Phone Number Campaign outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: phoneNumber in: path type: string required: true - name: getsinglephonenumbercampaign method: GET description: Get Single Phone Number Campaign outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: phoneNumber in: path type: string required: true - name: putphonenumbercampaign method: PUT description: Create New Phone Number Campaign outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: phoneNumber in: path type: string required: true - name: body in: body type: object description: Request body (JSON). required: true authentication: type: bearer token: '{{env.TELNYX_API_KEY}}' exposes: - type: rest namespace: telnyx-phone-number-campaigns-rest port: 8080 description: REST adapter for Telnyx API — Phone Number Campaigns. One Spectral-compliant resource per consumed operation, prefixed with /v1. resources: - path: /v1/10dlc/phone-number-campaigns name: 10dlc-phone-number-campaigns description: REST surface for 10dlc-phone_number_campaigns. operations: - method: GET name: getallphonenumbercampaigns description: List phone number campaigns call: telnyx-phone-number-campaigns.getallphonenumbercampaigns with: recordsPerPage: rest.recordsPerPage page: rest.page sort: rest.sort outputParameters: - type: object mapping: $. - method: POST name: createphonenumbercampaign description: Create New Phone Number Campaign call: telnyx-phone-number-campaigns.createphonenumbercampaign with: body: rest.body outputParameters: - type: object mapping: $. - path: /v1/10dlc/phone-number-campaigns/{phonenumber} name: 10dlc-phone-number-campaigns-phonenumber description: REST surface for 10dlc-phone_number_campaigns-phoneNumber. operations: - method: DELETE name: deletephonenumbercampaign description: Delete Phone Number Campaign call: telnyx-phone-number-campaigns.deletephonenumbercampaign with: phoneNumber: rest.phoneNumber outputParameters: - type: object mapping: $. - method: GET name: getsinglephonenumbercampaign description: Get Single Phone Number Campaign call: telnyx-phone-number-campaigns.getsinglephonenumbercampaign with: phoneNumber: rest.phoneNumber outputParameters: - type: object mapping: $. - method: PUT name: putphonenumbercampaign description: Create New Phone Number Campaign call: telnyx-phone-number-campaigns.putphonenumbercampaign with: phoneNumber: rest.phoneNumber body: rest.body outputParameters: - type: object mapping: $. - type: mcp namespace: telnyx-phone-number-campaigns-mcp port: 9090 transport: http description: MCP adapter for Telnyx API — Phone Number Campaigns. One tool per consumed operation, routed inline through this capability's consumes block. tools: - name: list-phone-number-campaigns description: List phone number campaigns hints: readOnly: true destructive: false idempotent: true call: telnyx-phone-number-campaigns.getallphonenumbercampaigns with: recordsPerPage: tools.recordsPerPage page: tools.page sort: tools.sort outputParameters: - type: object mapping: $. - name: create-new-phone-number-campaign description: Create New Phone Number Campaign hints: readOnly: false destructive: false idempotent: false call: telnyx-phone-number-campaigns.createphonenumbercampaign with: body: tools.body outputParameters: - type: object mapping: $. - name: delete-phone-number-campaign description: Delete Phone Number Campaign hints: readOnly: false destructive: true idempotent: true call: telnyx-phone-number-campaigns.deletephonenumbercampaign with: phoneNumber: tools.phoneNumber outputParameters: - type: object mapping: $. - name: get-single-phone-number-campaign description: Get Single Phone Number Campaign hints: readOnly: true destructive: false idempotent: true call: telnyx-phone-number-campaigns.getsinglephonenumbercampaign with: phoneNumber: tools.phoneNumber outputParameters: - type: object mapping: $. - name: create-new-phone-number-campaign-2 description: Create New Phone Number Campaign hints: readOnly: false destructive: false idempotent: true call: telnyx-phone-number-campaigns.putphonenumbercampaign with: phoneNumber: tools.phoneNumber body: tools.body outputParameters: - type: object mapping: $.