AgentStack
Browse Sign in
Browse Why AgentStack Sell Docs
Sign in
SKILL verified MIT Self-run

Telnyx 10dlc Java

skill-team-telnyx-ai-telnyx-10dlc-java · by team-telnyx

>-

No reviews yet
0 installs
22 views
0.0% view→install

Install

$ agentstack add skill-team-telnyx-ai-telnyx-10dlc-java

✓ scanned · ✓ verified, works with Claude Code, Cursor, and more.

Security review

✓ Passed

No issues found. Passed automated security review. · v0.1.0 How review works →

  • Prompt-injection patterns
  • Secret / credential exfiltration
  • Dangerous shell & filesystem operations
  • Untrusted network calls
  • Known-malicious package signatures

What it can access

  • Network access No
  • Filesystem access No
  • Shell / process execution No
  • Environment & secrets No
  • Dynamic code execution No

From automated source analysis of v0.1.0. “Used” means the capability is present in the source — more access means more to trust, not that it’s unsafe.

View the full security report →

Verified badge

Passed review? Show it. Paste this badge into your README, it links to the public security report.

AgentStack Verified badge Links to your public security report.
[![AgentStack Verified](https://agentstack.voostack.com/badges/verified.svg)](https://agentstack.voostack.com/security/report/skill-team-telnyx-ai-telnyx-10dlc-java)

Reliability & compatibility

Security review passed
0 installs to date
no reviews yet
1mo ago

Declared compatibility

Claude CodeClaude Desktop

Compatibility is declared by the source manifest. End-to-end runtime verification is coming, see below.

Preview Execution monitoring

We're building live execution health for every listing: tool-call success rate, median latency, uptime, and last-checked timestamps, measured, not self-reported. It isn't live yet, so we don't show numbers we can't stand behind.

How agent discovery & health will work →
Are you the author of Telnyx 10dlc Java? Claim this listing to set pricing, connect Stripe payouts, and keep 70% of every sale.
Sign up to claim

About

Telnyx 10DLC - Java

Installation


    com.telnyx.sdk
    telnyx
    6.36.0

// Gradle
implementation("com.telnyx.sdk:telnyx:6.36.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.messaging10dlc.brand.BrandCreateParams;
import com.telnyx.sdk.models.messaging10dlc.brand.EntityType;
import com.telnyx.sdk.models.messaging10dlc.brand.TelnyxBrand;
import com.telnyx.sdk.models.messaging10dlc.brand.Vertical;
BrandCreateParams params = BrandCreateParams.builder()
    .country("US")
    .displayName("ABC Mobile")
    .email("support@example.com")
    .entityType(EntityType.PRIVATE_PROFIT)
    .vertical(Vertical.TECHNOLOGY)
    .build();
TelnyxBrand telnyxBrand = client.messaging10dlc().brand().create(params);

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

  • Pagination: List methods return a page. Use .autoPager() for automatic iteration: for (var item : page.autoPager()) { ... }. For manual control, use .hasNextPage() and .nextPage().

Operational Caveats

  • 10DLC is sequential: create the brand first, then submit the campaign, then attach messaging infrastructure such as the messaging profile.
  • Registration calls are not enough by themselves. Messaging cannot use the campaign until the assignment step completes successfully.
  • Treat registration status fields as part of the control flow. Do not assume the campaign is send-ready until the returned status fields confirm it.

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](references/api-details.md) before writing code.
  • Before using any operation in ## Additional Operations, read [the optional-parameters section](references/api-details.md#optional-parameters) and [the response-schemas section](references/api-details.md#response-schemas).
  • Before reading or matching webhook fields beyond the inline examples, read [the webhook payload reference](references/api-details.md#webhook-payload-fields).

Core Tasks

Create a brand

Brand registration is the entrypoint for any US A2P 10DLC campaign flow.

client.messaging10dlc().brand().create()POST /10dlc/brand

| Parameter | Type | Required | Description | |-----------|------|----------|-------------| | entityType | object | Yes | Entity type behind the brand. | | displayName | string | Yes | Display name, marketing name, or DBA name of the brand. | | country | string | Yes | ISO2 2 characters country code. | | email | string | Yes | Valid email address of brand support contact. | | vertical | object | Yes | Vertical or industry segment of the brand. | | companyName | string | No | (Required for Non-profit/private/public) Legal company name. | | firstName | string | No | First name of business contact. | | lastName | string | No | Last name of business contact. | | ... | | | +16 optional params in [references/api-details.md](references/api-details.md) |

import com.telnyx.sdk.models.messaging10dlc.brand.BrandCreateParams;
import com.telnyx.sdk.models.messaging10dlc.brand.EntityType;
import com.telnyx.sdk.models.messaging10dlc.brand.TelnyxBrand;
import com.telnyx.sdk.models.messaging10dlc.brand.Vertical;

BrandCreateParams params = BrandCreateParams.builder()
    .country("US")
    .displayName("ABC Mobile")
    .email("support@example.com")
    .entityType(EntityType.PRIVATE_PROFIT)
    .vertical(Vertical.TECHNOLOGY)
    .build();
TelnyxBrand telnyxBrand = client.messaging10dlc().brand().create(params);

Primary response fields:

  • telnyxBrand.brandId
  • telnyxBrand.identityStatus
  • telnyxBrand.status
  • telnyxBrand.displayName
  • telnyxBrand.state
  • telnyxBrand.altBusinessId

Submit a campaign

Campaign submission is the compliance-critical step that determines whether traffic can be provisioned.

client.messaging10dlc().campaignBuilder().submit()POST /10dlc/campaignBuilder

| Parameter | Type | Required | Description | |-----------|------|----------|-------------| | brandId | string (UUID) | Yes | Alphanumeric identifier of the brand associated with this ca... | | description | string | Yes | Summary description of this campaign. | | usecase | string | Yes | Campaign usecase. | | ageGated | boolean | No | Age gated message content in campaign. | | autoRenewal | boolean | No | Campaign subscription auto-renewal option. | | directLending | boolean | No | Direct lending or loan arrangement | | ... | | | +29 optional params in [references/api-details.md](references/api-details.md) |

import com.telnyx.sdk.models.messaging10dlc.campaign.TelnyxCampaignCsp;
import com.telnyx.sdk.models.messaging10dlc.campaignbuilder.CampaignBuilderSubmitParams;

CampaignBuilderSubmitParams params = CampaignBuilderSubmitParams.builder()
    .brandId("BXXXXXX")
    .description("Two-factor authentication messages")
    .usecase("2FA")
    .sampleMessages(java.util.List.of("Your verification code is {{code}}"))
    .build();
TelnyxCampaignCsp telnyxCampaignCsp = client.messaging10dlc().campaignBuilder().submit(params);

Primary response fields:

  • telnyxCampaignCsp.campaignId
  • telnyxCampaignCsp.brandId
  • telnyxCampaignCsp.campaignStatus
  • telnyxCampaignCsp.submissionStatus
  • telnyxCampaignCsp.failureReasons
  • telnyxCampaignCsp.status

Assign a messaging profile to a campaign

Messaging profile assignment is the practical handoff from registration to send-ready messaging infrastructure.

client.messaging10dlc().phoneNumberAssignmentByProfile().assign()POST /10dlc/phoneNumberAssignmentByProfile

| Parameter | Type | Required | Description | |-----------|------|----------|-------------| | messagingProfileId | string (UUID) | Yes | The ID of the messaging profile that you want to link to the... | | campaignId | string (UUID) | Yes | The ID of the campaign you want to link to the specified mes... | | tcrCampaignId | string (UUID) | No | The TCR ID of the shared campaign you want to link to the sp... |

import com.telnyx.sdk.models.messaging10dlc.phonenumberassignmentbyprofile.PhoneNumberAssignmentByProfileAssignParams;
import com.telnyx.sdk.models.messaging10dlc.phonenumberassignmentbyprofile.PhoneNumberAssignmentByProfileAssignResponse;

PhoneNumberAssignmentByProfileAssignParams params = PhoneNumberAssignmentByProfileAssignParams.builder()
    .messagingProfileId("4001767e-ce0f-4cae-9d5f-0d5e636e7809")
    .campaignId("CXXX001")
    .build();
PhoneNumberAssignmentByProfileAssignResponse response = client.messaging10dlc().phoneNumberAssignmentByProfile().assign(params);

Primary response fields:

  • response.messagingProfileId
  • response.campaignId
  • response.taskId
  • response.tcrCampaignId

Webhook Verification

Telnyx signs webhooks with Ed25519. Each request includes telnyx-signature-ed25519 and telnyx-timestamp headers. Always verify signatures in production:

import com.telnyx.sdk.core.UnwrapWebhookParams;
import com.telnyx.sdk.core.http.Headers;

// In your webhook handler (e.g., Spring — use raw body):
@PostMapping("/webhooks")
public ResponseEntity handleWebhook(
    @RequestBody String payload,
    HttpServletRequest request) {
  try {
    Headers headers = Headers.builder()
        .put("telnyx-signature-ed25519", request.getHeader("telnyx-signature-ed25519"))
        .put("telnyx-timestamp", request.getHeader("telnyx-timestamp"))
        .build();
    var event = client.webhooks().unwrap(
        UnwrapWebhookParams.builder()
            .body(payload)
            .headers(headers)
            .build());
    // Signature valid — process the event
    System.out.println("Received webhook event");
    return ResponseEntity.ok("OK");
  } catch (Exception e) {
    System.err.println("Webhook verification failed: " + e.getMessage());
    return ResponseEntity.badRequest().body("Invalid signature");
  }
}

Webhooks

These webhook payload fields are inline because they are part of the primary integration path.

Campaign Status Update

| Field | Type | Description | |-------|------|-------------| | brandId | string | Brand ID associated with the campaign. | | campaignId | string | The ID of the campaign. | | createDate | string | Unix timestamp when campaign was created. | | cspId | string | Alphanumeric identifier of the CSP associated with this campaign. | | isTMobileRegistered | boolean | Indicates whether the campaign is registered with T-Mobile. | | type | enum: TELNYXEVENT, REGISTRATION, MNOREVIEW, TELNYXREVIEW, NUMBERPOOLPROVISIONED, NUMBERPOOLDEPROVISIONED, TCREVENT, VERIFIED | | | description | string | Description of the event. | | status | enum: ACCEPTED, REJECTED, DORMANT, success, failed | The status of the campaign. |

If you need webhook fields that are not listed inline here, read [the webhook payload reference](references/api-details.md#webhook-payload-fields) before writing the handler.


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.

Get Brand

Inspect the current state of an existing brand registration.

client.messaging10dlc().brand().retrieve()GET /10dlc/brand/{brandId}

| Parameter | Type | Required | Description | |-----------|------|----------|-------------| | brandId | string (UUID) | Yes | |

import com.telnyx.sdk.models.messaging10dlc.brand.BrandRetrieveParams;
import com.telnyx.sdk.models.messaging10dlc.brand.BrandRetrieveResponse;

BrandRetrieveResponse brand = client.messaging10dlc().brand().retrieve("BXXX001");

Primary response fields:

  • brand.status
  • brand.state
  • brand.altBusinessId
  • brand.altBusinessIdType
  • brand.assignedCampaignsCount
  • brand.brandId

Qualify By Usecase

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

client.messaging10dlc().campaignBuilder().brand().qualifyByUsecase()GET /10dlc/campaignBuilder/brand/{brandId}/usecase/{usecase}

| Parameter | Type | Required | Description | |-----------|------|----------|-------------| | usecase | string | Yes | | | brandId | string (UUID) | Yes | |

import com.telnyx.sdk.models.messaging10dlc.campaignbuilder.brand.BrandQualifyByUsecaseParams;
import com.telnyx.sdk.models.messaging10dlc.campaignbuilder.brand.BrandQualifyByUsecaseResponse;

BrandQualifyByUsecaseParams params = BrandQualifyByUsecaseParams.builder()
    .brandId("BXXX001")
    .usecase("CUSTOMER_CARE")
    .build();
BrandQualifyByUsecaseResponse response = client.messaging10dlc().campaignBuilder().brand().qualifyByUsecase(params);

Primary response fields:

  • response.annualFee
  • response.maxSubUsecases
  • response.minSubUsecases
  • response.mnoMetadata
  • response.monthlyFee
  • response.quarterlyFee

Create New Phone Number Campaign

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

client.messaging10dlc().phoneNumberCampaigns().create()POST /10dlc/phone_number_campaigns

| Parameter | Type | Required | Description | |-----------|------|----------|-------------| | phoneNumber | string (E.164) | Yes | The phone number you want to link to a specified campaign. | | campaignId | string (UUID) | Yes | The ID of the campaign you want to link to the specified pho... |

import com.telnyx.sdk.models.messaging10dlc.phonenumbercampaigns.PhoneNumberCampaign;
import com.telnyx.sdk.models.messaging10dlc.phonenumbercampaigns.PhoneNumberCampaignCreate;
import com.telnyx.sdk.models.messaging10dlc.phonenumbercampaigns.PhoneNumberCampaignCreateParams;

PhoneNumberCampaignCreate params = PhoneNumberCampaignCreate.builder()
    .campaignId("4b300178-131c-d902-d54e-72d90ba1620j")
    .phoneNumber("+18005550199")
    .build();
PhoneNumberCampaign phoneNumberCampaign = client.messaging10dlc().phoneNumberCampaigns().create(params);

Primary response fields:

  • phoneNumberCampaign.assignmentStatus
  • phoneNumberCampaign.brandId
  • phoneNumberCampaign.campaignId
  • phoneNumberCampaign.createdAt
  • phoneNumberCampaign.failureReasons
  • phoneNumberCampaign.phoneNumber

Get campaign

Inspect the current state of an existing campaign registration.

client.messaging10dlc().campaign().retrieve()GET /10dlc/campaign/{campaignId}

| Parameter | Type | Required | Description | |-----------|------|----------|-------------| | campaignId | string (UUID) | Yes | |

import com.telnyx.sdk.models.messaging10dlc.campaign.CampaignRetrieveParams;
import com.telnyx.sdk.models.messaging10dlc.campaign.TelnyxCampaignCsp;

TelnyxCampaignCsp telnyxCampaignCsp = client.messaging10dlc().campaign().retrieve("CXXX001");

Primary response fields:

  • telnyxCampaignCsp.status
  • telnyxCampaignCsp.ageGated
  • telnyxCampaignCsp.autoRenewal
  • telnyxCampaignCsp.billedDate
  • telnyxCampaignCsp.brandDisplayName
  • telnyxCampaignCsp.brandId

List Brands

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

client.messaging10dlc().brand().list()GET /10dlc/brand

| Parameter | Type | Required | Description | |-----------|------|----------|-------------| | sort | enum (assignedCampaignsCount, -assignedCampaignsCount, brandId, -brandId, createdAt, ...) | No | Specifies the sort order for results. | | page | integer | No | | | recordsPerPage | integer | No | number of records per page. | | ... | | | +6 optional params in [references/api-details.md](references/api-details.md) |

import com.telnyx.sdk.models.messaging10dlc.brand.BrandListPage;
import com.telnyx.sdk.models.messaging10dlc.brand.BrandListParams;

BrandListPage page = client.messaging10dlc().brand().list();

Primary response fields:

  • page.page
  • page.records
  • page.totalRecords

Get Brand Feedback By Id

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

client.messaging10dlc().brand().getFeedback()GET /10dlc/brand/feedback/{brandId}

| Parameter | Type | Required | Description | |-----------|------|----------|-------------| | brandId | string (UUID) | Yes | |

import com.telnyx.sdk.models.messaging10dlc.brand.BrandGetFeedbackParams;
import com.telnyx.sdk.models.messaging10dlc.brand.BrandGetFeedbackResponse;

BrandGetFeedbackResponse response = client.messaging10dlc().brand().getFeedback("BXXX001");

Primary response fields:

  • response.brandId
  • response.category

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](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](references/api-details.md#optional-parameters) and [the response-schemas section](references/api-details.md#response-schemas) so you do not guess missing fields.

| Operation | SDK method | Endpoint | Use when | Required params | |-----------|------------|----------|----------|-----------------| | Get Brand SMS OTP Status | client.messaging10dlc().brand().getSmsOtpByReference() | GET /10dlc/brand/smsOtp/{referenceId} | Fetch the current state before u

Source & license

This open-source skill is cataloged on AgentStack and links to its original source — we do not rehost the code.

Install and usage instructions live in the source repository linked above.

Reviews

No reviews yet, be the first.

Versions

  • v0.1.0 Imported from the upstream source.