mcpbeat Sign in

Telnyx Numbers Java Agent Skill

>- Search, order, and manage phone numbers by location, features, and coverage.

10k tokens
context cost
the whole folder, loaded on every use
2
files
instructions only
0
copies elsewhere
how many repositories repackaged it
201
stars on the repo
on the repository, not the skill itself

Install

one command, takes just this skill from the repository
npx skills add https://github.com/team-telnyx/ai --skill telnyx-numbers-java

The instruction itself

21 sections, as written by the author

<!-- Auto-generated from Telnyx OpenAPI specs. Do not edit. -->

Telnyx Numbers - Java

Installation

<!-- Maven -->
<dependency>
    <groupId>com.telnyx.sdk</groupId>
    <artifactId>telnyx</artifactId>
    <version>6.82.0</version>
</dependency>

// Gradle
implementation("com.telnyx.sdk:telnyx:6.82.0")

Setup

import com.telnyx.sdk.client.TelnyxClient;
import com.telnyx.sdk.client.okhttp.TelnyxOkHttpClient;

TelnyxClient client = TelnyxOkHttpClient.fromEnv();

All examples below assume client is already initialized as shown above.

Error Handling

All API calls can fail with network errors, rate limits (429), validation errors (422),

or authentication errors (401). Always handle errors in production code:

import com.telnyx.sdk.models.availablephonenumbers.AvailablePhoneNumberListParams;
import com.telnyx.sdk.models.availablephonenumbers.AvailablePhoneNumberListResponse;
AvailablePhoneNumberListResponse availablePhoneNumbers = client.availablePhoneNumbers().list();

Common error codes: 401 invalid API key, 403 insufficient permissions,

404 resource not found, 422 validation error (check field formats),

429 rate limited (retry with exponential backoff).

Important Notes

  • Phone numbers must be in E.164 format (e.g., +13125550001). Include the + prefix and country code. No spaces, dashes, or parentheses.
  • Pagination: List methods return a page. Use .autoPager() for automatic iteration: for (var item : page.autoPager()) { ... }. For manual control, use .hasNextPage() and .nextPage().

Reference Use Rules

Do not invent Telnyx parameters, enums, response fields, or webhook fields.

  • If the parameter, enum, or response field you need is not shown inline in this skill, read references/api-details.md before writing code.
  • Before using any operation in ## Additional Operations, read the optional-parameters section and the response-schemas section.

Core Tasks

Search available phone numbers

Number search is the entrypoint for provisioning. Agents need the search method, key query filters, and the fields returned for candidate numbers.

client.availablePhoneNumbers().list() — GET /available_phone_numbers

| Parameter | Type | Required | Description |

|-----------|------|----------|-------------|

| filter | object | No | Consolidated filter parameter (deepObject style). |

import com.telnyx.sdk.models.availablephonenumbers.AvailablePhoneNumberListParams;
import com.telnyx.sdk.models.availablephonenumbers.AvailablePhoneNumberListResponse;

AvailablePhoneNumberListResponse availablePhoneNumbers = client.availablePhoneNumbers().list();

Response wrapper:

  • items: availablePhoneNumbers.data
  • pagination: availablePhoneNumbers.meta

Primary item fields:

  • phoneNumber
  • recordType
  • quickship
  • reservable
  • bestEffort
  • costInformation

Create a number order

Number ordering is the production provisioning step after number selection.

client.numberOrders().create() — POST /number_orders

| Parameter | Type | Required | Description |

|-----------|------|----------|-------------|

| phoneNumbers | array[object] | Yes | |

| connectionId | string (UUID) | No | Identifies the connection associated with this phone number. |

| messagingProfileId | string (UUID) | No | Identifies the messaging profile associated with the phone n... |

| billingGroupId | string (UUID) | No | Identifies the billing group associated with the phone numbe... |

| ... | | | +1 optional params in references/api-details.md |

import com.telnyx.sdk.models.numberorders.NumberOrderCreateParams;
import com.telnyx.sdk.models.numberorders.NumberOrderCreateResponse;

NumberOrderCreateParams params = NumberOrderCreateParams.builder()

    .addPhoneNumber(

        NumberOrderCreateParams.PhoneNumber.builder()

            .phoneNumber("+18005550101")

            .build()

        )

    .build();

NumberOrderCreateResponse numberOrder = client.numberOrders().create(params);

Primary response fields:

  • numberOrder.data.id
  • numberOrder.data.status
  • numberOrder.data.phoneNumbersCount
  • numberOrder.data.requirementsMet
  • numberOrder.data.messagingProfileId
  • numberOrder.data.connectionId

Check number order status

Order status determines whether provisioning completed or additional requirements are still blocking fulfillment.

client.numberOrders().retrieve() — GET /number_orders/{number_order_id}

| Parameter | Type | Required | Description |

|-----------|------|----------|-------------|

| numberOrderId | string (UUID) | Yes | The number order ID. |

import com.telnyx.sdk.models.numberorders.NumberOrderRetrieveParams;
import com.telnyx.sdk.models.numberorders.NumberOrderRetrieveResponse;

NumberOrderRetrieveResponse numberOrder = client.numberOrders().retrieve("550e8400-e29b-41d4-a716-446655440000");

Primary response fields:

  • numberOrder.data.id
  • numberOrder.data.status
  • numberOrder.data.requirementsMet
  • numberOrder.data.phoneNumbersCount
  • numberOrder.data.phoneNumbers
  • numberOrder.data.connectionId

Important Supporting Operations

Use these when the core tasks above are close to your flow, but you need a common variation or follow-up step.

Create a number reservation

Create or provision an additional resource when the core tasks do not cover this flow.

client.numberReservations().create() — POST /number_reservations

| Parameter | Type | Required | Description |

|-----------|------|----------|-------------|

| phoneNumbers | array[object] | Yes | |

| status | enum (pending, success, failure) | No | The status of the entire reservation. |

| id | string (UUID) | No | |

| recordType | string | No | |

| ... | | | +3 optional params in references/api-details.md |

import com.telnyx.sdk.models.numberreservations.NumberReservationCreateParams;
import com.telnyx.sdk.models.numberreservations.NumberReservationCreateResponse;

NumberReservationCreateParams params = NumberReservationCreateParams.builder()

    .addPhoneNumber(

        NumberReservationCreateParams.PhoneNumber.builder()

            .phoneNumber("+18005550101")

            .build()

        )

    .build();

NumberReservationCreateResponse numberReservation = client.numberReservations().create(params);

Primary response fields:

  • numberReservation.data.id
  • numberReservation.data.status
  • numberReservation.data.createdAt
  • numberReservation.data.updatedAt
  • numberReservation.data.customerReference
  • numberReservation.data.errors

Retrieve a number reservation

Fetch the current state before updating, deleting, or making control-flow decisions.

client.numberReservations().retrieve() — GET /number_reservations/{number_reservation_id}

| Parameter | Type | Required | Description |

|-----------|------|----------|-------------|

| numberReservationId | string (UUID) | Yes | The number reservation ID. |

import com.telnyx.sdk.models.numberreservations.NumberReservationRetrieveParams;
import com.telnyx.sdk.models.numberreservations.NumberReservationRetrieveResponse;

NumberReservationRetrieveResponse numberReservation = client.numberReservations().retrieve("550e8400-e29b-41d4-a716-446655440000");

Primary response fields:

  • numberReservation.data.id
  • numberReservation.data.status
  • numberReservation.data.createdAt
  • numberReservation.data.updatedAt
  • numberReservation.data.customerReference
  • numberReservation.data.errors

List Advanced Orders

Inspect available resources or choose an existing resource before mutating it.

client.advancedOrders().list() — GET /advanced_orders

import com.telnyx.sdk.models.advancedorders.AdvancedOrderListParams;
import com.telnyx.sdk.models.advancedorders.AdvancedOrderListResponse;

AdvancedOrderListResponse advancedOrders = client.advancedOrders().list();

Response wrapper:

  • items: advancedOrders.data

Primary item fields:

  • id
  • status
  • areaCode
  • comments
  • countryCode
  • customerReference

Create Advanced Order

Create or provision an additional resource when the core tasks do not cover this flow.

client.advancedOrders().create() — POST /advanced_orders

| Parameter | Type | Required | Description |

|-----------|------|----------|-------------|

| phoneNumberType | enum (local, mobile, toll_free, shared_cost, national, ...) | No | |

| requirementGroupId | string (UUID) | No | The ID of the requirement group to associate with this advan... |

| countryCode | string (ISO 3166-1 alpha-2) | No | |

| ... | | | +5 optional params in references/api-details.md |

import com.telnyx.sdk.models.advancedorders.AdvancedOrder;
import com.telnyx.sdk.models.advancedorders.AdvancedOrderCreateResponse;

AdvancedOrder params = AdvancedOrder.builder().build();
AdvancedOrderCreateResponse advancedOrder = client.advancedOrders().create(params);

Primary response fields:

  • advancedOrder.id
  • advancedOrder.status
  • advancedOrder.areaCode
  • advancedOrder.comments
  • advancedOrder.countryCode
  • advancedOrder.customerReference

Update Advanced Order

Modify an existing resource without recreating it.

client.advancedOrders().updateRequirementGroup() — PATCH /advanced_orders/{advanced-order-id}/requirement_group

| Parameter | Type | Required | Description |

|-----------|------|----------|-------------|

| advanced-order-id | string (UUID) | Yes | Unique identifier of the advanced order. |

| phoneNumberType | enum (local, mobile, toll_free, shared_cost, national, ...) | No | |

| requirementGroupId | string (UUID) | No | The ID of the requirement group to associate with this advan... |

| countryCode | string (ISO 3166-1 alpha-2) | No | |

| ... | | | +5 optional params in references/api-details.md |

import com.telnyx.sdk.models.advancedorders.AdvancedOrder;
import com.telnyx.sdk.models.advancedorders.AdvancedOrderUpdateRequirementGroupParams;
import com.telnyx.sdk.models.advancedorders.AdvancedOrderUpdateRequirementGroupResponse;

AdvancedOrderUpdateRequirementGroupParams params = AdvancedOrderUpdateRequirementGroupParams.builder()
    .advancedOrderId("182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e")
    .advancedOrder(AdvancedOrder.builder().build())
    .build();
AdvancedOrderUpdateRequirementGroupResponse response = client.advancedOrders().updateRequirementGroup(params);

Primary response fields:

  • response.id
  • response.status
  • response.areaCode
  • response.comments
  • response.countryCode
  • response.customerReference

Get Advanced Order

Fetch the current state before updating, deleting, or making control-flow decisions.

client.advancedOrders().retrieve() — GET /advanced_orders/{order_id}

| Parameter | Type | Required | Description |

|-----------|------|----------|-------------|

| orderId | string (UUID) | Yes | Unique identifier of the order. |

import com.telnyx.sdk.models.advancedorders.AdvancedOrderRetrieveParams;
import com.telnyx.sdk.models.advancedorders.AdvancedOrderRetrieveResponse;

AdvancedOrderRetrieveResponse advancedOrder = client.advancedOrders().retrieve("182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e");

Primary response fields:

  • advancedOrder.id
  • advancedOrder.status
  • advancedOrder.areaCode
  • advancedOrder.comments
  • advancedOrder.countryCode
  • advancedOrder.customerReference

List available phone number blocks

Inspect available resources or choose an existing resource before mutating it.

client.availablePhoneNumberBlocks().list() — GET /available_phone_number_blocks

| Parameter | Type | Required | Description |

|-----------|------|----------|-------------|

| filter | object | No | Consolidated filter parameter (deepObject style). |

import com.telnyx.sdk.models.availablephonenumberblocks.AvailablePhoneNumberBlockListParams;
import com.telnyx.sdk.models.availablephonenumberblocks.AvailablePhoneNumberBlockListResponse;

AvailablePhoneNumberBlockListResponse availablePhoneNumberBlocks = client.availablePhoneNumberBlocks().list();

Response wrapper:

  • items: availablePhoneNumberBlocks.data
  • pagination: availablePhoneNumberBlocks.meta

Primary item fields:

  • phoneNumber
  • costInformation
  • features
  • range
  • recordType
  • regionInformation

Retrieve all comments

Inspect available resources or choose an existing resource before mutating it.

client.comments().list() — GET /comments

| Parameter | Type | Required | Description |

|-----------|------|----------|-------------|

| filter | object | No | Consolidated filter parameter (deepObject style). |

import com.telnyx.sdk.models.comments.CommentListParams;
import com.telnyx.sdk.models.comments.CommentListResponse;

CommentListResponse comments = client.comments().list();

Response wrapper:

  • items: comments.data
  • pagination: comments.meta

Primary item fields:

  • id
  • body
  • createdAt
  • updatedAt
  • commentRecordId
  • commentRecordType

Additional Operations

Use the core tasks above first. The operations below are indexed here with exact SDK methods and required params; use references/api-details.md for full optional params, response schemas, and lower-frequency webhook payloads.

Before using any operation below, read the optional-parameters section and the response-schemas section so you do not guess missing fields.

| Operation | SDK method | Endpoint | Use when | Required params |

|-----------|------------|----------|----------|-----------------|

| Create a comment | client.comments().create() | POST /comments | Create or provision an additional resource when the core tasks do not cover this flow. | None |

| Retrieve a comment | client.comments().retrieve() | GET /comments/{id} | Fetch the current state before updating, deleting, or making control-flow decisions. | id |

| Mark a comment as read | client.comments().markAsRead() | PATCH /comments/{id}/read | Modify an existing resource without recreating it. | id |

| Get country coverage | client.countryCoverage().retrieve() | GET /country_coverage | Inspect available resources or choose an existing resource before mutating it. | None |

| Get coverage for a specific country | client.countryCoverage().retrieveCountry() | GET /country_coverage/countries/{country_code} | Fetch the current state before updating, deleting, or making control-flow decisions. | countryCode |

| List customer service records | client.customerServiceRecords().list() | GET /customer_service_records | Inspect available resources or choose an existing resource before mutating it. | None |

| Create a customer service record | client.customerServiceRecords().create() | POST /customer_service_records | Create or provision an additional resource when the core tasks do not cover this flow. | None |

| Verify CSR phone number coverage | client.customerServiceRecords().verifyPhoneNumberCoverage() | POST /customer_service_records/phone_number_coverages | Create or provision an additional resource when the core tasks do not cover this flow. | None |

| Get a customer service record | client.customerServiceRecords().retrieve() | GET /customer_service_records/{customer_service_record_id} | Fetch the current state before updating, deleting, or making control-flow decisions. | customerServiceRecordId |

| List inexplicit number orders | client.inexplicitNumberOrders().list() | GET /inexplicit_number_orders | Inspect available resources or choose an existing resource before mutating it. | None |

| Create an inexplicit number order | client.inexplicitNumberOrders().create() | POST /inexplicit_number_orders | Create or provision an additional resource when the core tasks do not cover this flow. | orderingGroups |

| Retrieve an inexplicit number order | client.inexplicitNumberOrders().retrieve() | GET /inexplicit_number_orders/{id} | Fetch the current state before updating, deleting, or making control-flow decisions. | id |

| Create an inventory coverage request | client.inventoryCoverage().list() | GET /inventory_coverage | Inspect available resources or choose an existing resource before mutating it. | None |

| List mobile network operators | client.mobileNetworkOperators().list() | GET /mobile_network_operators | Inspect available resources or choose an existing resource before mutating it. | None |

| List network coverage locations | client.networkCoverage().list() | GET /network_coverage | Inspect available resources or choose an existing resource before mutating it. | None |

| List number block orders | client.numberBlockOrders().list() | GET /number_block_orders | Inspect available resources or choose an existing resource before mutating it. | None |

| Create a number block order | client.numberBlockOrders().create() | POST /number_block_orders | Create or provision an additional resource when the core tasks do not cover this flow. | startingNumber, range |

| Retrieve a number block order | client.numberBlockOrders().retrieve() | GET /number_block_orders/{number_block_order_id} | Fetch the current state before updating, deleting, or making control-flow decisions. | numberBlockOrderId |

| Retrieve a list of phone numbers associated to orders | client.numberOrderPhoneNumbers().list() | GET /number_order_phone_numbers | Inspect available resources or choose an existing resource before mutating it. | None |

| Retrieve a single phone number within a number order. | client.numberOrderPhoneNumbers().retrieve() | GET /number_order_phone_numbers/{number_order_phone_number_id} | Fetch the current state before updating, deleting, or making control-flow decisions. | numberOrderPhoneNumberId |

| Update requirements for a single phone number within a number order. | client.numberOrderPhoneNumbers().updateRequirements() | PATCH /number_order_phone_numbers/{number_order_phone_number_id} | Modify an existing resource without recreating it. | numberOrderPhoneNumberId |

| List number orders | client.numberOrders().list() | GET /number_orders | Create or inspect provisioning orders for number purchases. | None |

| Update a number order | client.numberOrders().update() | PATCH /number_orders/{number_order_id} | Modify an existing resource without recreating it. | numberOrderId |

| List number reservations | client.numberReservations().list() | GET /number_reservations | Inspect available resources or choose an existing resource before mutating it. | None |

| Extend a number reservation | client.numberReservations().actions().extend() | POST /number_reservations/{number_reservation_id}/actions/extend | Trigger a follow-up action in an existing workflow rather than creating a new top-level resource. | numberReservationId |

| Retrieve the features for a list of numbers | client.numbersFeatures().create() | POST /numbers_features | Create or provision an additional resource when the core tasks do not cover this flow. | phoneNumbers |

| Lists the phone number blocks jobs | client.phoneNumberBlocks().jobs().list() | GET /phone_number_blocks/jobs | Inspect available resources or choose an existing resource before mutating it. | None |

| Deletes all numbers associated with a phone number block | client.phoneNumberBlocks().jobs().deletePhoneNumberBlock() | POST /phone_number_blocks/jobs/delete_phone_number_block | Create or provision an additional resource when the core tasks do not cover this flow. | phoneNumberBlockId |

| Retrieves a phone number blocks job | client.phoneNumberBlocks().jobs().retrieve() | GET /phone_number_blocks/jobs/{id} | Fetch the current state before updating, deleting, or making control-flow decisions. | id |

| List sub number orders | client.subNumberOrders().list() | GET /sub_number_orders | Inspect available resources or choose an existing resource before mutating it. | None |

| Retrieve a sub number order | client.subNumberOrders().retrieve() | GET /sub_number_orders/{sub_number_order_id} | Fetch the current state before updating, deleting, or making control-flow decisions. | subNumberOrderId |

| Update a sub number order's requirements | client.subNumberOrders().update() | PATCH /sub_number_orders/{sub_number_order_id} | Modify an existing resource without recreating it. | subNumberOrderId |

| Cancel a sub number order | client.subNumberOrders().cancel() | PATCH /sub_number_orders/{sub_number_order_id}/cancel | Modify an existing resource without recreating it. | subNumberOrderId |

| Create a sub number orders report | client.subNumberOrdersReport().create() | POST /sub_number_orders_report | Create or provision an additional resource when the core tasks do not cover this flow. | None |

| Retrieve a sub number orders report | client.subNumberOrdersReport().retrieve() | GET /sub_number_orders_report/{report_id} | Fetch the current state before updating, deleting, or making control-flow decisions. | reportId |

| Download a sub number orders report | client.subNumberOrdersReport().download() | GET /sub_number_orders_report/{report_id}/download | Fetch the current state before updating, deleting, or making control-flow decisions. | reportId |

Other Webhook Events

| Event | data.event_type | Description |

|-------|-------------------|-------------|

| numberOrderStatusUpdate | number.order.status.update | Number Order Status Update |


For exhaustive optional parameters, full response schemas, and complete webhook payloads, see references/api-details.md.

Other skills for the same job

different authors, same section of the catalogue
Protocolsio Integration
by christophacham
×4

Integration with protocols.io API for managing scientific protocols. This skill should be used when working with protocols.io to search, create, update, or publish protocols; manage protocol steps and materials; handle discussions and comments; organize workspaces; upload and manage files; or integrate protocols.io functionality into workflows. Applicable for protocol discovery, collaborative protocol development, experiment tracking, lab protocol management, and scientific documentation.

16k tokens
Tailored Resume Generator
by frostant
×4

Analyzes job descriptions and generates tailored resumes that highlight relevant experience, skills, and achievements to maximize interview chances

3k tokens
Excalidraw Diagram Generator
by github
vendor ×3

Generate Excalidraw diagrams from natural language descriptions. Use when asked to "create a diagram", "make a flowchart", "visualize a process", "draw a system architecture", "create a mind map", or "generate an Excalidraw file". Supports flowcharts, relationship diagrams, mind maps, and system architecture diagrams. Outputs .excalidraw JSON files that can be opened directly in Excalidraw.

36k tokens scripts
Expo Dev Client
by openai
vendor ×3

Build and distribute Expo development clients locally or via TestFlight

961 tokens
Executing Plans
by ZhanlinCui
×3

Use when you have a written implementation plan to execute in a separate session with review checkpoints

542 tokens
Anndata
by christophacham
×3

Data structure for annotated matrices in single-cell analysis. Use when working with .h5ad files or integrating with the scverse ecosystem. This is the data format skill—for analysis workflows use scanpy; for probabilistic models use scvi-tools; for population-scale queries use cellxgene-census.

16k tokens
Benchling Integration
by christophacham
×3

Benchling R&D platform integration. Access registry (DNA, proteins), inventory, ELN entries, workflows via API, build Benchling Apps, query Data Warehouse, for lab data management automation.

14k tokens
Biopython
by christophacham
×3

Comprehensive molecular biology toolkit. Use for sequence manipulation, file parsing (FASTA/GenBank/PDB), phylogenetics, and programmatic NCBI/PubMed access (Bio.Entrez). Best for batch processing, custom bioinformatics pipelines, BLAST automation. For quick lookups use gget; for multi-service integration use bioservices.

24k tokens

How to use it

Copy the folder

Take team-telnyx/telnyx-numbers-java from the repository into ~/.claude/skills for personal use, or into .claude/skills inside a project.

Check the name does not clash

The agent identifies a skill by the name field in its header. Two skills with the same name cannot sit side by side — one of them will be ignored.