Telnyx · Capability

Telnyx API — Phone Number Blocks Background Jobs

Telnyx API — Phone Number Blocks Background Jobs. 3 operations. Lead operation: Lists the phone number blocks jobs. Self-contained Naftiko capability covering one Telnyx business surface.

Run with Naftiko TelnyxPhone Number Blocks Background Jobs

What You Can Do

GET
Listphonenumberblocksjobs — Lists the phone number blocks jobs
/v1/phone-number-blocks/jobs
POST
Createphonenumberblockdeletionjob — Deletes all numbers associated with a phone number block
/v1/phone-number-blocks/jobs/delete-phone-number-block
GET
Getphonenumberblocksjob — Retrieves a phone number blocks job
/v1/phone-number-blocks/jobs/{id}

MCP Tools

lists-phone-number-blocks-jobs

Lists the phone number blocks jobs

read-only idempotent
deletes-all-numbers-associated-phone

Deletes all numbers associated with a phone number block

retrieves-phone-number-blocks-job

Retrieves a phone number blocks job

read-only idempotent

Capability Spec

telnyx-phone-number-blocks-background-jobs.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: Telnyx API — Phone Number Blocks Background Jobs
  description: 'Telnyx API — Phone Number Blocks Background Jobs. 3 operations. Lead operation: Lists the phone number blocks
    jobs. Self-contained Naftiko capability covering one Telnyx business surface.'
  tags:
  - Telnyx
  - Phone Number Blocks Background Jobs
  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-blocks-background-jobs
    baseUri: https://api.telnyx.com/v2
    description: Telnyx API — Phone Number Blocks Background Jobs business capability. Self-contained, no shared references.
    resources:
    - name: phone_number_blocks-jobs
      path: /phone_number_blocks/jobs
      operations:
      - name: listphonenumberblocksjobs
        method: GET
        description: Lists the phone number blocks jobs
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: sort
          in: query
          type: string
          description: Specifies the sort order for results. If not given, results are sorted by created_at in descending
            order.
        - name: filter
          in: query
          type: object
          description: 'Consolidated filter parameter (deepObject style). Originally: filter[type], filter[status]'
    - name: phone_number_blocks-jobs-delete_phone_number_block
      path: /phone_number_blocks/jobs/delete_phone_number_block
      operations:
      - name: createphonenumberblockdeletionjob
        method: POST
        description: Deletes all numbers associated with a phone number block
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
    - name: phone_number_blocks-jobs-id
      path: /phone_number_blocks/jobs/{id}
      operations:
      - name: getphonenumberblocksjob
        method: GET
        description: Retrieves a phone number blocks job
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: id
          in: path
          type: string
          description: Identifies the Phone Number Blocks Job.
          required: true
    authentication:
      type: bearer
      token: '{{env.TELNYX_API_KEY}}'
  exposes:
  - type: rest
    namespace: telnyx-phone-number-blocks-background-jobs-rest
    port: 8080
    description: REST adapter for Telnyx API — Phone Number Blocks Background Jobs. One Spectral-compliant resource per consumed
      operation, prefixed with /v1.
    resources:
    - path: /v1/phone-number-blocks/jobs
      name: phone-number-blocks-jobs
      description: REST surface for phone_number_blocks-jobs.
      operations:
      - method: GET
        name: listphonenumberblocksjobs
        description: Lists the phone number blocks jobs
        call: telnyx-phone-number-blocks-background-jobs.listphonenumberblocksjobs
        with:
          sort: rest.sort
          filter: rest.filter
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/phone-number-blocks/jobs/delete-phone-number-block
      name: phone-number-blocks-jobs-delete-phone-number-block
      description: REST surface for phone_number_blocks-jobs-delete_phone_number_block.
      operations:
      - method: POST
        name: createphonenumberblockdeletionjob
        description: Deletes all numbers associated with a phone number block
        call: telnyx-phone-number-blocks-background-jobs.createphonenumberblockdeletionjob
        with:
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/phone-number-blocks/jobs/{id}
      name: phone-number-blocks-jobs-id
      description: REST surface for phone_number_blocks-jobs-id.
      operations:
      - method: GET
        name: getphonenumberblocksjob
        description: Retrieves a phone number blocks job
        call: telnyx-phone-number-blocks-background-jobs.getphonenumberblocksjob
        with:
          id: rest.id
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: telnyx-phone-number-blocks-background-jobs-mcp
    port: 9090
    transport: http
    description: MCP adapter for Telnyx API — Phone Number Blocks Background Jobs. One tool per consumed operation, routed
      inline through this capability's consumes block.
    tools:
    - name: lists-phone-number-blocks-jobs
      description: Lists the phone number blocks jobs
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: telnyx-phone-number-blocks-background-jobs.listphonenumberblocksjobs
      with:
        sort: tools.sort
        filter: tools.filter
      outputParameters:
      - type: object
        mapping: $.
    - name: deletes-all-numbers-associated-phone
      description: Deletes all numbers associated with a phone number block
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: telnyx-phone-number-blocks-background-jobs.createphonenumberblockdeletionjob
      with:
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: retrieves-phone-number-blocks-job
      description: Retrieves a phone number blocks job
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: telnyx-phone-number-blocks-background-jobs.getphonenumberblocksjob
      with:
        id: tools.id
      outputParameters:
      - type: object
        mapping: $.