naftiko: 1.0.0-alpha2 info: label: Telnyx API — Reputation Phone Numbers description: 'Telnyx API — Reputation Phone Numbers. 7 operations. Lead operation: List reputation phone numbers. Self-contained Naftiko capability covering one Telnyx business surface.' tags: - Telnyx - Reputation Phone Numbers created: '2026-05-19' modified: '2026-05-19' binds: - namespace: env keys: TELNYX_API_KEY: TELNYX_API_KEY capability: consumes: - type: http namespace: telnyx-reputation-phone-numbers baseUri: https://api.telnyx.com/v2 description: Telnyx API — Reputation Phone Numbers business capability. Self-contained, no shared references. resources: - name: enterprises-enterprise_id-reputation-numbers path: /enterprises/{enterprise_id}/reputation/numbers operations: - name: listreputationnumbers method: GET description: List reputation phone numbers outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: page[number] in: query type: integer description: Page number (1-indexed) - name: page[size] in: query type: integer description: Number of items per page - name: phone_number in: query type: string description: Filter by specific phone number (E.164 format) - name: associatereputationnumbers method: POST description: Associate phone numbers for reputation outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: body in: body type: object description: Request body (JSON). required: true - name: enterprises-enterprise_id-reputation-numbers-phone_number path: /enterprises/{enterprise_id}/reputation/numbers/{phone_number} operations: - name: disassociatereputationnumber method: DELETE description: Disassociate a phone number outputRawFormat: json outputParameters: - name: result type: object value: $. - name: getphonenumberreputation method: GET description: Get reputation data for a phone number outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: fresh in: query type: boolean description: When true, fetches fresh reputation data (incurs API cost). When false, returns cached data. - name: reputation-numbers path: /reputation/numbers operations: - name: listreputationnumberssimplified method: GET description: List reputation phone numbers (simplified) outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: page[number] in: query type: integer description: Page number (1-indexed) - name: page[size] in: query type: integer description: Number of items per page - name: phone_number in: query type: string description: Filter by specific phone number (E.164 format) - name: reputation-numbers-phone_number path: /reputation/numbers/{phone_number} operations: - name: disassociatereputationnumbersimplified method: DELETE description: Disassociate a phone number (simplified) outputRawFormat: json outputParameters: - name: result type: object value: $. - name: getphonenumberreputationsimplified method: GET description: Get reputation data for a phone number (simplified) outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: fresh in: query type: boolean description: When true, fetches fresh reputation data (incurs API cost). When false, returns cached data. authentication: type: bearer token: '{{env.TELNYX_API_KEY}}' exposes: - type: rest namespace: telnyx-reputation-phone-numbers-rest port: 8080 description: REST adapter for Telnyx API — Reputation Phone Numbers. One Spectral-compliant resource per consumed operation, prefixed with /v1. resources: - path: /v1/enterprises/{enterprise-id}/reputation/numbers name: enterprises-enterprise-id-reputation-numbers description: REST surface for enterprises-enterprise_id-reputation-numbers. operations: - method: GET name: listreputationnumbers description: List reputation phone numbers call: telnyx-reputation-phone-numbers.listreputationnumbers with: page[number]: rest.page[number] page[size]: rest.page[size] phone_number: rest.phone_number outputParameters: - type: object mapping: $. - method: POST name: associatereputationnumbers description: Associate phone numbers for reputation call: telnyx-reputation-phone-numbers.associatereputationnumbers with: body: rest.body outputParameters: - type: object mapping: $. - path: /v1/enterprises/{enterprise-id}/reputation/numbers/{phone-number} name: enterprises-enterprise-id-reputation-numbers-phone-number description: REST surface for enterprises-enterprise_id-reputation-numbers-phone_number. operations: - method: DELETE name: disassociatereputationnumber description: Disassociate a phone number call: telnyx-reputation-phone-numbers.disassociatereputationnumber outputParameters: - type: object mapping: $. - method: GET name: getphonenumberreputation description: Get reputation data for a phone number call: telnyx-reputation-phone-numbers.getphonenumberreputation with: fresh: rest.fresh outputParameters: - type: object mapping: $. - path: /v1/reputation/numbers name: reputation-numbers description: REST surface for reputation-numbers. operations: - method: GET name: listreputationnumberssimplified description: List reputation phone numbers (simplified) call: telnyx-reputation-phone-numbers.listreputationnumberssimplified with: page[number]: rest.page[number] page[size]: rest.page[size] phone_number: rest.phone_number outputParameters: - type: object mapping: $. - path: /v1/reputation/numbers/{phone-number} name: reputation-numbers-phone-number description: REST surface for reputation-numbers-phone_number. operations: - method: DELETE name: disassociatereputationnumbersimplified description: Disassociate a phone number (simplified) call: telnyx-reputation-phone-numbers.disassociatereputationnumbersimplified outputParameters: - type: object mapping: $. - method: GET name: getphonenumberreputationsimplified description: Get reputation data for a phone number (simplified) call: telnyx-reputation-phone-numbers.getphonenumberreputationsimplified with: fresh: rest.fresh outputParameters: - type: object mapping: $. - type: mcp namespace: telnyx-reputation-phone-numbers-mcp port: 9090 transport: http description: MCP adapter for Telnyx API — Reputation Phone Numbers. One tool per consumed operation, routed inline through this capability's consumes block. tools: - name: list-reputation-phone-numbers description: List reputation phone numbers hints: readOnly: true destructive: false idempotent: true call: telnyx-reputation-phone-numbers.listreputationnumbers with: page[number]: tools.page[number] page[size]: tools.page[size] phone_number: tools.phone_number outputParameters: - type: object mapping: $. - name: associate-phone-numbers-reputation description: Associate phone numbers for reputation hints: readOnly: false destructive: false idempotent: false call: telnyx-reputation-phone-numbers.associatereputationnumbers with: body: tools.body outputParameters: - type: object mapping: $. - name: disassociate-phone-number description: Disassociate a phone number hints: readOnly: false destructive: true idempotent: true call: telnyx-reputation-phone-numbers.disassociatereputationnumber outputParameters: - type: object mapping: $. - name: get-reputation-data-phone-number description: Get reputation data for a phone number hints: readOnly: true destructive: false idempotent: true call: telnyx-reputation-phone-numbers.getphonenumberreputation with: fresh: tools.fresh outputParameters: - type: object mapping: $. - name: list-reputation-phone-numbers-simplified description: List reputation phone numbers (simplified) hints: readOnly: true destructive: false idempotent: true call: telnyx-reputation-phone-numbers.listreputationnumberssimplified with: page[number]: tools.page[number] page[size]: tools.page[size] phone_number: tools.phone_number outputParameters: - type: object mapping: $. - name: disassociate-phone-number-simplified description: Disassociate a phone number (simplified) hints: readOnly: false destructive: true idempotent: true call: telnyx-reputation-phone-numbers.disassociatereputationnumbersimplified outputParameters: - type: object mapping: $. - name: get-reputation-data-phone-number-2 description: Get reputation data for a phone number (simplified) hints: readOnly: true destructive: false idempotent: true call: telnyx-reputation-phone-numbers.getphonenumberreputationsimplified with: fresh: tools.fresh outputParameters: - type: object mapping: $.