telnyx-10dlc-curl
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
Chinese<!-- Auto-generated from Telnyx OpenAPI specs. Do not edit. -->
<!-- Auto-generated from Telnyx OpenAPI specs. Do not edit. -->
Telnyx 10DLC - curl
Telnyx 10DLC - curl
Installation
安装
text
undefinedtext
undefinedcurl is pre-installed on macOS, Linux, and Windows 10+
curl is pre-installed on macOS, Linux, and Windows 10+
undefinedundefinedSetup
配置
bash
export TELNYX_API_KEY="YOUR_API_KEY_HERE"All examples below use for authentication.
$TELNYX_API_KEYbash
export TELNYX_API_KEY="YOUR_API_KEY_HERE"下方所有示例均使用进行身份验证。
$TELNYX_API_KEYError 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:
bash
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"Common error codes: invalid API key, insufficient permissions,
resource not found, validation error (check field formats),
rate limited (retry with exponential backoff).
401403404422429所有API调用都可能因网络错误、速率限制(429)、校验错误(422)或身份验证错误(401)而失败。在生产代码中请始终做好错误处理:
bash
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"常见错误码: API密钥无效, 权限不足, 资源未找到, 校验错误(请检查字段格式), 触发速率限制(请使用指数退避策略重试)。
401403404422429Important Notes
重要说明
- Pagination: List endpoints return paginated results. Use and
page[number]query parameters to navigate pages. Checkpage[size]in the response.meta.total_pages
- 分页: 列表接口返回分页结果。使用和
page[number]查询参数来翻页,可查看响应中的page[size]获取总页数。meta.total_pages
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.
- 10DLC操作需按顺序执行:先创建品牌,再提交活动,最后关联消息配置文件等消息基础设施。
- 仅完成注册调用是不够的,只有分配步骤成功完成后,短信服务才能使用该活动。
- 请将注册状态字段作为控制流程的依据,在返回的状态字段确认活动可发送之前,不要假定活动已就绪。
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 , read the optional-parameters section and the response-schemas section.
## Additional Operations - Before reading or matching webhook fields beyond the inline examples, read the webhook payload reference.
请勿自行定义Telnyx参数、枚举值、响应字段或webhook字段。
- 如果你需要的参数、枚举值或响应字段未在本技能中直接展示,请在编写代码前阅读references/api-details.md。
- 在使用中的任何接口前,请阅读可选参数章节和响应模式章节。
## 额外操作 - 在读取或匹配内联示例之外的webhook字段前,请阅读webhook payload参考。
Core Tasks
核心任务
Create a brand
创建品牌
Brand registration is the entrypoint for any US A2P 10DLC campaign flow.
POST /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 |
bash
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"Primary response fields:
.data.brandId.data.identityStatus.data.status.data.displayName.data.state.data.altBusinessId
品牌注册是所有美国A2P 10DLC活动流程的入口。
POST /10dlc/brand| 参数 | 类型 | 必填 | 描述 |
|---|---|---|---|
| object | 是 | 品牌所属的实体类型。 |
| string | 是 | 品牌的展示名称、营销名称或经营名称。 |
| string | 是 | ISO2两位国家代码。 |
| string | 是 | 品牌支持联系人的有效邮箱地址。 |
| object | 是 | 品牌所属的垂直领域或行业细分。 |
| string | 否 | (非营利/私营/公立实体必填)合法公司名称。 |
| string | 否 | 业务联系人的名。 |
| string | 否 | 业务联系人的姓。 |
| ... | 另有16个可选参数,详见references/api-details.md |
bash
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.altBusinessId
Submit a campaign
提交活动
Campaign submission is the compliance-critical step that determines whether traffic can be provisioned.
POST /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 |
bash
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"Primary response fields:
.data.campaignId.data.brandId.data.campaignStatus.data.submissionStatus.data.failureReasons.data.status
活动提交是决定流量是否可以开通的核心合规步骤。
POST /10dlc/campaignBuilder| 参数 | 类型 | 必填 | 描述 |
|---|---|---|---|
| string (UUID) | 是 | 与该活动关联的品牌的字母数字标识符。 |
| string | 是 | 该活动的概要描述。 |
| string | 是 | 活动用例。 |
| boolean | 否 | 活动中的消息内容是否有年龄限制。 |
| boolean | 否 | 活动订阅自动续费选项。 |
| boolean | 否 | 是否为直接放贷或贷款安排相关内容 |
| ... | 另有29个可选参数,详见references/api-details.md |
bash
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.status
Assign a messaging profile to a campaign
为活动分配消息配置文件
Messaging profile assignment is the practical handoff from registration to send-ready messaging infrastructure.
POST /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... |
bash
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"Primary response fields:
.data.messagingProfileId.data.campaignId.data.taskId.data.tcrCampaignId
消息配置文件分配是从注册到消息发送就绪的实际交接步骤。
POST /10dlc/phoneNumberAssignmentByProfile| 参数 | 类型 | 必填 | 描述 |
|---|---|---|---|
| string (UUID) | 是 | 你想要关联到指定活动的消息配置文件ID。 |
| string (UUID) | 是 | 你想要关联到指定消息配置文件的活动ID。 |
| string (UUID) | 否 | 你想要关联到指定消息配置文件的共享活动的TCR ID。 |
bash
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.tcrCampaignId
Webhook Verification
Webhook验证
Telnyx signs webhooks with Ed25519. Each request includes
and headers. Always verify signatures in production:
telnyx-signature-ed25519telnyx-timestampbash
undefinedTelnyx使用Ed25519对webhook进行签名。每个请求都包含和请求头。在生产环境中请始终验证签名:
telnyx-signature-ed25519telnyx-timestampbash
undefinedTelnyx signs webhooks with Ed25519 (asymmetric — NOT HMAC/Standard Webhooks).
Telnyx signs webhooks with Ed25519 (asymmetric — NOT HMAC/Standard Webhooks).
Headers sent with each webhook:
Headers sent with each webhook:
telnyx-signature-ed25519: base64-encoded Ed25519 signature
telnyx-signature-ed25519: base64-encoded Ed25519 signature
telnyx-timestamp: Unix timestamp (reject if >5 minutes old for replay protection)
telnyx-timestamp: Unix timestamp (reject if >5 minutes old for replay protection)
Get your public key from: Telnyx Portal > Account Settings > Keys & Credentials
Get your public key from: Telnyx Portal > Account Settings > Keys & Credentials
Use the Telnyx SDK in your language for verification (client.webhooks.unwrap).
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).
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.
Configure a failover URL in Telnyx Portal for additional reliability.
undefinedundefinedWebhooks
Webhooks
These webhook payload fields are inline because they are part of the primary integration path.
以下webhook payload字段为核心集成路径的一部分,因此直接展示在此处。
Campaign Status Update
活动状态更新
| 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. |
If you need webhook fields that are not listed inline here, read the webhook payload reference before writing the handler.
| 字段 | 类型 | 描述 |
|---|---|---|
| string | 与活动关联的品牌ID。 |
| string | 活动ID。 |
| string | 活动创建的Unix时间戳。 |
| string | 与该活动关联的CSP的字母数字标识符。 |
| boolean | 指示该活动是否已在T-Mobile注册。 |
| enum: TELNYX_EVENT, REGISTRATION, MNO_REVIEW, TELNYX_REVIEW, NUMBER_POOL_PROVISIONED, NUMBER_POOL_DEPROVISIONED, TCR_EVENT, VERIFIED | |
| string | 事件描述。 |
| enum: ACCEPTED, REJECTED, DORMANT, success, failed | 活动状态。 |
如果你需要此处未列出的webhook字段,请在编写处理程序前阅读webhook payload参考。
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.
GET /10dlc/brand/{brandId}| Parameter | Type | Required | Description |
|---|---|---|---|
| string (UUID) | Yes |
bash
curl -H "Authorization: Bearer $TELNYX_API_KEY" "https://api.telnyx.com/v2/10dlc/brand/BXXX001"Primary response fields:
.data.status.data.state.data.altBusinessId.data.altBusinessIdType.data.assignedCampaignsCount.data.brandId
查看现有品牌注册的当前状态。
GET /10dlc/brand/{brandId}| 参数 | 类型 | 必填 | 描述 |
|---|---|---|---|
| string (UUID) | 是 |
bash
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.brandId
Qualify By Usecase
按用例校验
Fetch the current state before updating, deleting, or making control-flow decisions.
GET /10dlc/campaignBuilder/brand/{brandId}/usecase/{usecase}| Parameter | Type | Required | Description |
|---|---|---|---|
| string | Yes | |
| string (UUID) | Yes |
bash
curl -H "Authorization: Bearer $TELNYX_API_KEY" "https://api.telnyx.com/v2/10dlc/campaignBuilder/brand/BXXX001/usecase/{usecase}"Primary response fields:
.data.annualFee.data.maxSubUsecases.data.minSubUsecases.data.mnoMetadata.data.monthlyFee.data.quarterlyFee
在进行更新、删除或做出控制流程决策前获取当前状态。
GET /10dlc/campaignBuilder/brand/{brandId}/usecase/{usecase}| 参数 | 类型 | 必填 | 描述 |
|---|---|---|---|
| string | 是 | |
| string (UUID) | 是 |
bash
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.quarterlyFee
Create New Phone Number Campaign
创建新的电话号码活动
Create or provision an additional resource when the core tasks do not cover this flow.
POST /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... |
bash
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"Primary response fields:
.data.assignmentStatus.data.brandId.data.campaignId.data.createdAt.data.failureReasons.data.phoneNumber
当核心任务未覆盖该流程时,创建或开通额外资源。
POST /10dlc/phone_number_campaigns| 参数 | 类型 | 必填 | 描述 |
|---|---|---|---|
| string (E.164) | 是 | 你想要关联到指定活动的电话号码。 |
| string (UUID) | 是 | 你想要关联到指定电话号码的活动ID。 |
bash
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.phoneNumber
Get campaign
查询活动信息
Inspect the current state of an existing campaign registration.
GET /10dlc/campaign/{campaignId}| Parameter | Type | Required | Description |
|---|---|---|---|
| string (UUID) | Yes |
bash
curl -H "Authorization: Bearer $TELNYX_API_KEY" "https://api.telnyx.com/v2/10dlc/campaign/CXXX001"Primary response fields:
.data.status.data.ageGated.data.autoRenewal.data.billedDate.data.brandDisplayName.data.brandId
查看现有活动注册的当前状态。
GET /10dlc/campaign/{campaignId}| 参数 | 类型 | 必填 | 描述 |
|---|---|---|---|
| string (UUID) | 是 |
bash
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.brandId
List Brands
列出品牌
Inspect available resources or choose an existing resource before mutating it.
GET /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 |
bash
curl -H "Authorization: Bearer $TELNYX_API_KEY" "https://api.telnyx.com/v2/10dlc/brand?sort=-identityStatus&brandId=826ef77a-348c-445b-81a5-a9b13c68fbfe&tcrBrandId=BBAND1"Primary response fields:
.data.page.data.records.data.totalRecords
在修改资源前查看可用资源或选择现有资源。
GET /10dlc/brand| 参数 | 类型 | 必填 | 描述 |
|---|---|---|---|
| enum (assignedCampaignsCount, -assignedCampaignsCount, brandId, -brandId, createdAt, ...) | 否 | 指定结果的排序顺序。 |
| integer | 否 | |
| integer | 否 | 每页的记录数量。 |
| ... | 另有6个可选参数,详见references/api-details.md |
bash
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.totalRecords
Get Brand Feedback By Id
根据ID获取品牌反馈
Fetch the current state before updating, deleting, or making control-flow decisions.
GET /10dlc/brand/feedback/{brandId}| Parameter | Type | Required | Description |
|---|---|---|---|
| string (UUID) | Yes |
bash
curl -H "Authorization: Bearer $TELNYX_API_KEY" "https://api.telnyx.com/v2/10dlc/brand/feedback/BXXX001"Primary response fields:
.data.brandId.data.category
在进行更新、删除或做出控制流程决策前获取当前状态。
GET /10dlc/brand/feedback/{brandId}| 参数 | 类型 | 必填 | 描述 |
|---|---|---|---|
| string (UUID) | 是 |
bash
curl -H "Authorization: Bearer $TELNYX_API_KEY" "https://api.telnyx.com/v2/10dlc/brand/feedback/BXXX001"主要响应字段:
.data.brandId.data.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 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 |
|---|---|---|---|---|
| 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. | |
For exhaustive optional parameters, full response schemas, and complete webhook payloads, see references/api-details.md.
请优先使用上述核心任务。下方列出的操作提供了准确的SDK方法和必填参数;请参考references/api-details.md查看完整的可选参数、响应模式和低频率webhook payload。在使用下方任意操作前,请阅读可选参数章节和响应模式章节,不要臆测缺失的字段。
| 操作 | SDK方法 | 接口路径 | 使用场景 | 必填参数 |
|---|---|---|---|---|
| 获取品牌SMS OTP状态 | 仅支持HTTP | | 在进行更新、删除或做出控制流程决策前获取当前状态。 | |
| 更新品牌 | 仅支持HTTP | | 查看现有品牌注册的当前状态。 | |
| 删除品牌 | 仅支持HTTP | | 查看现有品牌注册的当前状态。 | |
| 重发品牌2FA邮件 | 仅支持HTTP | | 当核心任务未覆盖该流程时,创建或开通额外资源。 | |
| 列出外部审核记录 | 仅支持HTTP | | 在进行更新、删除或做出控制流程决策前获取当前状态。 | |
| 申请品牌外部审核 | 仅支持HTTP | | 当核心任务未覆盖该流程时,创建或开通额外资源。 | |
| 导入外部审核记录 | 仅支持HTTP | | 修改现有资源而无需重新创建。 | |
| 重新审核品牌 | 仅支持HTTP | | 修改现有资源而无需重新创建。 | |
| 根据品牌ID获取品牌SMS OTP状态 | 仅支持HTTP | | 在进行更新、删除或做出控制流程决策前获取当前状态。 | |
| 触发品牌SMS OTP | 仅支持HTTP | | 当核心任务未覆盖该流程时,创建或开通额外资源。 | |
| 验证品牌SMS OTP | 仅支持HTTP | | 修改现有资源而无需重新创建。 | |
| 列出活动 | 仅支持HTTP | | 在修改资源前查看可用资源或选择现有资源。 | 无 |
| 接受共享活动 | 仅支持HTTP | | 当核心任务未覆盖该流程时,创建或开通额外资源。 | |
| 获取活动成本 | 仅支持HTTP | | 在修改资源前查看可用资源或选择现有资源。 | 无 |
| 更新活动 | 仅支持HTTP | | 查看现有活动注册的当前状态。 | |
| 停用活动 | 仅支持HTTP | | 查看现有活动注册的当前状态。 | |
| 提交活动申诉供人工审核 | 仅支持HTTP | | 当核心任务未覆盖该流程时,创建或开通额外资源。 | |
| 获取活动MNO元数据 | 仅支持HTTP | | 在进行更新、删除或做出控制流程决策前获取当前状态。 | |
| 获取活动操作状态 | 仅支持HTTP | | 在进行更新、删除或做出控制流程决策前获取当前状态。 | |
| 获取OSR活动属性 | 仅支持HTTP | | 在进行更新、删除或做出控制流程决策前获取当前状态。 | |
| 获取共享状态 | 仅支持HTTP | | 在进行更新、删除或做出控制流程决策前获取当前状态。 | |
| 列出我共享的合作伙伴活动 | 仅支持HTTP | | 在修改资源前查看可用资源或选择现有资源。 | 无 |
| 获取共享状态 | 仅支持HTTP | | 在进行更新、删除或做出控制流程决策前获取当前状态。 | |
| 列出共享活动 | 仅支持HTTP | | 在修改资源前查看可用资源或选择现有资源。 | 无 |
| 获取单个共享活动 | 仅支持HTTP | | 在进行更新、删除或做出控制流程决策前获取当前状态。 | |
| 更新单个共享活动 | 仅支持HTTP | | 修改现有资源而无需重新创建。 | |
| 获取分配任务状态 | 仅支持HTTP | | 在进行更新、删除或做出控制流程决策前获取当前状态。 | |
| 获取电话号码状态 | 仅支持HTTP | | 在进行更新、删除或做出控制流程决策前获取当前状态。 | |
| 列出电话号码活动 | 仅支持HTTP | | 在修改资源前查看可用资源或选择现有资源。 | 无 |
| 获取单个电话号码活动 | 仅支持HTTP | | 在进行更新、删除或做出控制流程决策前获取当前状态。 | |
| 创建新的电话号码活动 | 仅支持HTTP | | 修改现有资源而无需重新创建。 | |
| 删除电话号码活动 | 仅支持HTTP | | 移除、解绑或清理现有资源。 | |
如需完整的可选参数、完整响应模式和全部webhook payload,请查看references/api-details.md。