naftiko: 1.0.0-alpha2 info: label: Telnyx API — Managed Accounts description: 'Telnyx API — Managed Accounts. 8 operations. Lead operation: Lists accounts managed by the current user.. Self-contained Naftiko capability covering one Telnyx business surface.' tags: - Telnyx - Managed Accounts created: '2026-05-19' modified: '2026-05-19' binds: - namespace: env keys: TELNYX_API_KEY: TELNYX_API_KEY capability: consumes: - type: http namespace: telnyx-managed-accounts baseUri: https://api.telnyx.com/v2 description: Telnyx API — Managed Accounts business capability. Self-contained, no shared references. resources: - name: managed_accounts path: /managed_accounts operations: - name: listmanagedaccounts method: GET description: Lists accounts managed by the current user. outputRawFormat: json outputParameters: - name: result type: object value: $. - name: createmanagedaccount method: POST description: Create a new managed account. outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: body in: body type: object description: Request body (JSON). required: true - name: managed_accounts-allocatable_global_outbound_channels path: /managed_accounts/allocatable_global_outbound_channels operations: - name: listallocatableglobaloutboundchannels method: GET description: Display information about allocatable global outbound channels for the current user. outputRawFormat: json outputParameters: - name: result type: object value: $. - name: managed_accounts-id path: /managed_accounts/{id} operations: - name: retrievemanagedaccount method: GET description: Retrieve a managed account outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: id in: path type: string description: Managed Account User ID required: true - name: updatemanagedaccount method: PATCH description: Update a managed account outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: id in: path type: string description: Managed Account User ID required: true - name: body in: body type: object description: Request body (JSON). required: true - name: managed_accounts-id-actions-disable path: /managed_accounts/{id}/actions/disable operations: - name: disablemanagedaccount method: POST description: Disables a managed account outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: id in: path type: string description: Managed Account User ID required: true - name: managed_accounts-id-actions-enable path: /managed_accounts/{id}/actions/enable operations: - name: enablemanagedaccount method: POST description: Enables a managed account outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: id in: path type: string description: Managed Account User ID required: true - name: body in: body type: object description: Request body (JSON). required: false - name: managed_accounts-id-update_global_channel_limit path: /managed_accounts/{id}/update_global_channel_limit operations: - name: updatemanagedaccountglobalchannellimit method: PATCH description: Update the amount of allocatable global outbound channels allocated to a specific managed account. outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: id in: path type: string description: Managed Account User ID 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-managed-accounts-rest port: 8080 description: REST adapter for Telnyx API — Managed Accounts. One Spectral-compliant resource per consumed operation, prefixed with /v1. resources: - path: /v1/managed-accounts name: managed-accounts description: REST surface for managed_accounts. operations: - method: GET name: listmanagedaccounts description: Lists accounts managed by the current user. call: telnyx-managed-accounts.listmanagedaccounts outputParameters: - type: object mapping: $. - method: POST name: createmanagedaccount description: Create a new managed account. call: telnyx-managed-accounts.createmanagedaccount with: body: rest.body outputParameters: - type: object mapping: $. - path: /v1/managed-accounts/allocatable-global-outbound-channels name: managed-accounts-allocatable-global-outbound-channels description: REST surface for managed_accounts-allocatable_global_outbound_channels. operations: - method: GET name: listallocatableglobaloutboundchannels description: Display information about allocatable global outbound channels for the current user. call: telnyx-managed-accounts.listallocatableglobaloutboundchannels outputParameters: - type: object mapping: $. - path: /v1/managed-accounts/{id} name: managed-accounts-id description: REST surface for managed_accounts-id. operations: - method: GET name: retrievemanagedaccount description: Retrieve a managed account call: telnyx-managed-accounts.retrievemanagedaccount with: id: rest.id outputParameters: - type: object mapping: $. - method: PATCH name: updatemanagedaccount description: Update a managed account call: telnyx-managed-accounts.updatemanagedaccount with: id: rest.id body: rest.body outputParameters: - type: object mapping: $. - path: /v1/managed-accounts/{id}/actions/disable name: managed-accounts-id-actions-disable description: REST surface for managed_accounts-id-actions-disable. operations: - method: POST name: disablemanagedaccount description: Disables a managed account call: telnyx-managed-accounts.disablemanagedaccount with: id: rest.id outputParameters: - type: object mapping: $. - path: /v1/managed-accounts/{id}/actions/enable name: managed-accounts-id-actions-enable description: REST surface for managed_accounts-id-actions-enable. operations: - method: POST name: enablemanagedaccount description: Enables a managed account call: telnyx-managed-accounts.enablemanagedaccount with: id: rest.id body: rest.body outputParameters: - type: object mapping: $. - path: /v1/managed-accounts/{id}/update-global-channel-limit name: managed-accounts-id-update-global-channel-limit description: REST surface for managed_accounts-id-update_global_channel_limit. operations: - method: PATCH name: updatemanagedaccountglobalchannellimit description: Update the amount of allocatable global outbound channels allocated to a specific managed account. call: telnyx-managed-accounts.updatemanagedaccountglobalchannellimit with: id: rest.id body: rest.body outputParameters: - type: object mapping: $. - type: mcp namespace: telnyx-managed-accounts-mcp port: 9090 transport: http description: MCP adapter for Telnyx API — Managed Accounts. One tool per consumed operation, routed inline through this capability's consumes block. tools: - name: lists-accounts-managed-current-user description: Lists accounts managed by the current user. hints: readOnly: true destructive: false idempotent: true call: telnyx-managed-accounts.listmanagedaccounts outputParameters: - type: object mapping: $. - name: create-new-managed-account description: Create a new managed account. hints: readOnly: false destructive: false idempotent: false call: telnyx-managed-accounts.createmanagedaccount with: body: tools.body outputParameters: - type: object mapping: $. - name: display-information-about-allocatable-global description: Display information about allocatable global outbound channels for the current user. hints: readOnly: true destructive: false idempotent: true call: telnyx-managed-accounts.listallocatableglobaloutboundchannels outputParameters: - type: object mapping: $. - name: retrieve-managed-account description: Retrieve a managed account hints: readOnly: true destructive: false idempotent: true call: telnyx-managed-accounts.retrievemanagedaccount with: id: tools.id outputParameters: - type: object mapping: $. - name: update-managed-account description: Update a managed account hints: readOnly: false destructive: false idempotent: true call: telnyx-managed-accounts.updatemanagedaccount with: id: tools.id body: tools.body outputParameters: - type: object mapping: $. - name: disables-managed-account description: Disables a managed account hints: readOnly: false destructive: false idempotent: false call: telnyx-managed-accounts.disablemanagedaccount with: id: tools.id outputParameters: - type: object mapping: $. - name: enables-managed-account description: Enables a managed account hints: readOnly: false destructive: false idempotent: false call: telnyx-managed-accounts.enablemanagedaccount with: id: tools.id body: tools.body outputParameters: - type: object mapping: $. - name: update-amount-allocatable-global-outbound description: Update the amount of allocatable global outbound channels allocated to a specific managed account. hints: readOnly: false destructive: false idempotent: true call: telnyx-managed-accounts.updatemanagedaccountglobalchannellimit with: id: tools.id body: tools.body outputParameters: - type: object mapping: $.