naftiko: 1.0.0-alpha2 info: label: Telnyx API — Bulk Phone Number Campaigns description: 'Telnyx API — Bulk Phone Number Campaigns. 3 operations. Lead operation: Assign Messaging Profile To Campaign. Self-contained Naftiko capability covering one Telnyx business surface.' tags: - Telnyx - Bulk 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-bulk-phone-number-campaigns baseUri: https://api.telnyx.com/v2 description: Telnyx API — Bulk Phone Number Campaigns business capability. Self-contained, no shared references. resources: - name: 10dlc-phoneNumberAssignmentByProfile path: /10dlc/phoneNumberAssignmentByProfile operations: - name: postassignmessagingprofiletocampaign method: POST description: Assign Messaging Profile To Campaign outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: body in: body type: object description: Request body (JSON). required: true - name: 10dlc-phoneNumberAssignmentByProfile-taskId path: /10dlc/phoneNumberAssignmentByProfile/{taskId} operations: - name: getassignmenttaskstatus method: GET description: Get Assignment Task Status outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: taskId in: path type: string required: true - name: 10dlc-phoneNumberAssignmentByProfile-taskId-phoneNumbers path: /10dlc/phoneNumberAssignmentByProfile/{taskId}/phoneNumbers operations: - name: getphonenumberstatus method: GET description: Get Phone Number Status outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: taskId in: path type: string required: true - name: recordsPerPage in: query type: integer - name: page in: query type: integer authentication: type: bearer token: '{{env.TELNYX_API_KEY}}' exposes: - type: rest namespace: telnyx-bulk-phone-number-campaigns-rest port: 8080 description: REST adapter for Telnyx API — Bulk Phone Number Campaigns. One Spectral-compliant resource per consumed operation, prefixed with /v1. resources: - path: /v1/10dlc/phonenumberassignmentbyprofile name: 10dlc-phonenumberassignmentbyprofile description: REST surface for 10dlc-phoneNumberAssignmentByProfile. operations: - method: POST name: postassignmessagingprofiletocampaign description: Assign Messaging Profile To Campaign call: telnyx-bulk-phone-number-campaigns.postassignmessagingprofiletocampaign with: body: rest.body outputParameters: - type: object mapping: $. - path: /v1/10dlc/phonenumberassignmentbyprofile/{taskid} name: 10dlc-phonenumberassignmentbyprofile-taskid description: REST surface for 10dlc-phoneNumberAssignmentByProfile-taskId. operations: - method: GET name: getassignmenttaskstatus description: Get Assignment Task Status call: telnyx-bulk-phone-number-campaigns.getassignmenttaskstatus with: taskId: rest.taskId outputParameters: - type: object mapping: $. - path: /v1/10dlc/phonenumberassignmentbyprofile/{taskid}/phonenumbers name: 10dlc-phonenumberassignmentbyprofile-taskid-phonenumbers description: REST surface for 10dlc-phoneNumberAssignmentByProfile-taskId-phoneNumbers. operations: - method: GET name: getphonenumberstatus description: Get Phone Number Status call: telnyx-bulk-phone-number-campaigns.getphonenumberstatus with: taskId: rest.taskId recordsPerPage: rest.recordsPerPage page: rest.page outputParameters: - type: object mapping: $. - type: mcp namespace: telnyx-bulk-phone-number-campaigns-mcp port: 9090 transport: http description: MCP adapter for Telnyx API — Bulk Phone Number Campaigns. One tool per consumed operation, routed inline through this capability's consumes block. tools: - name: assign-messaging-profile-campaign description: Assign Messaging Profile To Campaign hints: readOnly: false destructive: false idempotent: false call: telnyx-bulk-phone-number-campaigns.postassignmessagingprofiletocampaign with: body: tools.body outputParameters: - type: object mapping: $. - name: get-assignment-task-status description: Get Assignment Task Status hints: readOnly: true destructive: false idempotent: true call: telnyx-bulk-phone-number-campaigns.getassignmenttaskstatus with: taskId: tools.taskId outputParameters: - type: object mapping: $. - name: get-phone-number-status description: Get Phone Number Status hints: readOnly: true destructive: false idempotent: true call: telnyx-bulk-phone-number-campaigns.getphonenumberstatus with: taskId: tools.taskId recordsPerPage: tools.recordsPerPage page: tools.page outputParameters: - type: object mapping: $.