Loading...
Loading...
10DLC brand and campaign registration for US A2P messaging compliance. Assign phone numbers to campaigns.
npx skill4agent add team-telnyx/skills telnyx-10dlc-curl# curl is pre-installed on macOS, Linux, and Windows 10+export TELNYX_API_KEY="YOUR_API_KEY_HERE"$TELNYX_API_KEYcurl \
-X POST \
-H "Authorization: Bearer $TELNYX_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"entityType": "PRIVATE_PROFIT",
"displayName": "ABC Mobile",
"country": "US",
"email": "support@example.com",
"vertical": "TECHNOLOGY"
}' \
"https://api.telnyx.com/v2/10dlc/brand"401403404422429page[number]page[size]meta.total_pages## Additional OperationsPOST /10dlc/brand| Parameter | Type | Required | Description |
|---|---|---|---|
| object | Yes | Entity type behind the brand. |
| string | Yes | Display name, marketing name, or DBA name of the brand. |
| string | Yes | ISO2 2 characters country code. |
| string | Yes | Valid email address of brand support contact. |
| object | Yes | Vertical or industry segment of the brand. |
| string | No | (Required for Non-profit/private/public) Legal company name. |
| string | No | First name of business contact. |
| string | No | Last name of business contact. |
| ... | +16 optional params in references/api-details.md |
curl \
-X POST \
-H "Authorization: Bearer $TELNYX_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"entityType": "PRIVATE_PROFIT",
"displayName": "ABC Mobile",
"country": "US",
"email": "support@example.com",
"vertical": "TECHNOLOGY"
}' \
"https://api.telnyx.com/v2/10dlc/brand".data.brandId.data.identityStatus.data.status.data.displayName.data.state.data.altBusinessIdPOST /10dlc/campaignBuilder| Parameter | Type | Required | Description |
|---|---|---|---|
| string (UUID) | Yes | Alphanumeric identifier of the brand associated with this ca... |
| string | Yes | Summary description of this campaign. |
| string | Yes | Campaign usecase. |
| boolean | No | Age gated message content in campaign. |
| boolean | No | Campaign subscription auto-renewal option. |
| boolean | No | Direct lending or loan arrangement |
| ... | +29 optional params in references/api-details.md |
curl \
-X POST \
-H "Authorization: Bearer $TELNYX_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"brandId": "BXXX001",
"description": "Two-factor authentication messages",
"usecase": "2FA",
"sample_messages": [
"Your verification code is {{code}}"
]
}' \
"https://api.telnyx.com/v2/10dlc/campaignBuilder".data.campaignId.data.brandId.data.campaignStatus.data.submissionStatus.data.failureReasons.data.statusPOST /10dlc/phoneNumberAssignmentByProfile| Parameter | Type | Required | Description |
|---|---|---|---|
| string (UUID) | Yes | The ID of the messaging profile that you want to link to the... |
| string (UUID) | Yes | The ID of the campaign you want to link to the specified mes... |
| string (UUID) | No | The TCR ID of the shared campaign you want to link to the sp... |
curl \
-X POST \
-H "Authorization: Bearer $TELNYX_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"messagingProfileId": "4001767e-ce0f-4cae-9d5f-0d5e636e7809",
"campaignId": "CXXX001"
}' \
"https://api.telnyx.com/v2/10dlc/phoneNumberAssignmentByProfile".data.messagingProfileId.data.campaignId.data.taskId.data.tcrCampaignIdtelnyx-signature-ed25519telnyx-timestamp# Telnyx signs webhooks with Ed25519 (asymmetric — NOT HMAC/Standard Webhooks).
# Headers sent with each webhook:
# telnyx-signature-ed25519: base64-encoded Ed25519 signature
# telnyx-timestamp: Unix timestamp (reject if >5 minutes old for replay protection)
#
# Get your public key from: Telnyx Portal > Account Settings > Keys & Credentials
# Use the Telnyx SDK in your language for verification (client.webhooks.unwrap).
# Your endpoint MUST return 2xx within 2 seconds or Telnyx will retry (up to 3 attempts).
# Configure a failover URL in Telnyx Portal for additional reliability.| Field | Type | Description |
|---|---|---|
| string | Brand ID associated with the campaign. |
| string | The ID of the campaign. |
| string | Unix timestamp when campaign was created. |
| string | Alphanumeric identifier of the CSP associated with this campaign. |
| boolean | Indicates whether the campaign is registered with T-Mobile. |
| enum: TELNYX_EVENT, REGISTRATION, MNO_REVIEW, TELNYX_REVIEW, NUMBER_POOL_PROVISIONED, NUMBER_POOL_DEPROVISIONED, TCR_EVENT, VERIFIED | |
| string | Description of the event. |
| enum: ACCEPTED, REJECTED, DORMANT, success, failed | The status of the campaign. |
GET /10dlc/brand/{brandId}| Parameter | Type | Required | Description |
|---|---|---|---|
| string (UUID) | Yes |
curl -H "Authorization: Bearer $TELNYX_API_KEY" "https://api.telnyx.com/v2/10dlc/brand/BXXX001".data.status.data.state.data.altBusinessId.data.altBusinessIdType.data.assignedCampaignsCount.data.brandIdGET /10dlc/campaignBuilder/brand/{brandId}/usecase/{usecase}| Parameter | Type | Required | Description |
|---|---|---|---|
| string | Yes | |
| string (UUID) | Yes |
curl -H "Authorization: Bearer $TELNYX_API_KEY" "https://api.telnyx.com/v2/10dlc/campaignBuilder/brand/BXXX001/usecase/{usecase}".data.annualFee.data.maxSubUsecases.data.minSubUsecases.data.mnoMetadata.data.monthlyFee.data.quarterlyFeePOST /10dlc/phone_number_campaigns| Parameter | Type | Required | Description |
|---|---|---|---|
| string (E.164) | Yes | The phone number you want to link to a specified campaign. |
| string (UUID) | Yes | The ID of the campaign you want to link to the specified pho... |
curl \
-X POST \
-H "Authorization: Bearer $TELNYX_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"phoneNumber": "+18005550199",
"campaignId": "4b300178-131c-d902-d54e-72d90ba1620j"
}' \
"https://api.telnyx.com/v2/10dlc/phone_number_campaigns".data.assignmentStatus.data.brandId.data.campaignId.data.createdAt.data.failureReasons.data.phoneNumberGET /10dlc/campaign/{campaignId}| Parameter | Type | Required | Description |
|---|---|---|---|
| string (UUID) | Yes |
curl -H "Authorization: Bearer $TELNYX_API_KEY" "https://api.telnyx.com/v2/10dlc/campaign/CXXX001".data.status.data.ageGated.data.autoRenewal.data.billedDate.data.brandDisplayName.data.brandIdGET /10dlc/brand| Parameter | Type | Required | Description |
|---|---|---|---|
| enum (assignedCampaignsCount, -assignedCampaignsCount, brandId, -brandId, createdAt, ...) | No | Specifies the sort order for results. |
| integer | No | |
| integer | No | number of records per page. |
| ... | +6 optional params in references/api-details.md |
curl -H "Authorization: Bearer $TELNYX_API_KEY" "https://api.telnyx.com/v2/10dlc/brand?sort=-identityStatus&brandId=826ef77a-348c-445b-81a5-a9b13c68fbfe&tcrBrandId=BBAND1".data.page.data.records.data.totalRecordsGET /10dlc/brand/feedback/{brandId}| Parameter | Type | Required | Description |
|---|---|---|---|
| string (UUID) | Yes |
curl -H "Authorization: Bearer $TELNYX_API_KEY" "https://api.telnyx.com/v2/10dlc/brand/feedback/BXXX001".data.brandId.data.category| Operation | SDK method | Endpoint | Use when | Required params |
|---|---|---|---|---|
| Get Brand SMS OTP Status | HTTP only | | Fetch the current state before updating, deleting, or making control-flow decisions. | |
| Update Brand | HTTP only | | Inspect the current state of an existing brand registration. | |
| Delete Brand | HTTP only | | Inspect the current state of an existing brand registration. | |
| Resend brand 2FA email | HTTP only | | Create or provision an additional resource when the core tasks do not cover this flow. | |
| List External Vettings | HTTP only | | Fetch the current state before updating, deleting, or making control-flow decisions. | |
| Order Brand External Vetting | HTTP only | | Create or provision an additional resource when the core tasks do not cover this flow. | |
| Import External Vetting Record | HTTP only | | Modify an existing resource without recreating it. | |
| Revet Brand | HTTP only | | Modify an existing resource without recreating it. | |
| Get Brand SMS OTP Status by Brand ID | HTTP only | | Fetch the current state before updating, deleting, or making control-flow decisions. | |
| Trigger Brand SMS OTP | HTTP only | | Create or provision an additional resource when the core tasks do not cover this flow. | |
| Verify Brand SMS OTP | HTTP only | | Modify an existing resource without recreating it. | |
| List Campaigns | HTTP only | | Inspect available resources or choose an existing resource before mutating it. | None |
| Accept Shared Campaign | HTTP only | | Create or provision an additional resource when the core tasks do not cover this flow. | |
| Get Campaign Cost | HTTP only | | Inspect available resources or choose an existing resource before mutating it. | None |
| Update campaign | HTTP only | | Inspect the current state of an existing campaign registration. | |
| Deactivate campaign | HTTP only | | Inspect the current state of an existing campaign registration. | |
| Submit campaign appeal for manual review | HTTP only | | Create or provision an additional resource when the core tasks do not cover this flow. | |
| Get Campaign Mno Metadata | HTTP only | | Fetch the current state before updating, deleting, or making control-flow decisions. | |
| Get campaign operation status | HTTP only | | Fetch the current state before updating, deleting, or making control-flow decisions. | |
| Get OSR campaign attributes | HTTP only | | Fetch the current state before updating, deleting, or making control-flow decisions. | |
| Get Sharing Status | HTTP only | | Fetch the current state before updating, deleting, or making control-flow decisions. | |
| List shared partner campaigns | HTTP only | | Inspect available resources or choose an existing resource before mutating it. | None |
| Get Sharing Status | HTTP only | | Fetch the current state before updating, deleting, or making control-flow decisions. | |
| List Shared Campaigns | HTTP only | | Inspect available resources or choose an existing resource before mutating it. | None |
| Get Single Shared Campaign | HTTP only | | Fetch the current state before updating, deleting, or making control-flow decisions. | |
| Update Single Shared Campaign | HTTP only | | Modify an existing resource without recreating it. | |
| Get Assignment Task Status | HTTP only | | Fetch the current state before updating, deleting, or making control-flow decisions. | |
| Get Phone Number Status | HTTP only | | Fetch the current state before updating, deleting, or making control-flow decisions. | |
| List phone number campaigns | HTTP only | | Inspect available resources or choose an existing resource before mutating it. | None |
| Get Single Phone Number Campaign | HTTP only | | Fetch the current state before updating, deleting, or making control-flow decisions. | |
| Create New Phone Number Campaign | HTTP only | | Modify an existing resource without recreating it. | |
| Delete Phone Number Campaign | HTTP only | | Remove, detach, or clean up an existing resource. | |