Add a campaign to the US 10DLC market

Registers a new campaign on the US TEN_DLC market you already hold — the one market that registers campaigns. Use it when you want numbers for a different use case than the market's existing campaign covers. The campaign is filed under the brand the market files under — your organization's when you inherit its identity.

What to send

The new campaign's fields, at the top level of the body: use cases, consent narrative, volume, sample messages and keywords, under their keys (description, message_flow, use_cases, volume, …). It has to be complete. A rejected field is keyed by its name (description). id and inherit are ignored, so an entry of campaigns can be sent as read.

The identity is the market's and is not sent here. A market whose identity has no registration yet, or one not yet submitted for review, is 400.

What happens

The campaign is recorded and goes for review; it is not filed with The Campaign Registry by this call. It comes without numbers: send its id from compliance.campaigns to POST /v3/channels/sms/{country}/{type}/numbers to give it some. The campaign you already have, and its numbers, are not touched — including a campaign you run on from your organization.

Each call files a new campaign, which is charged when it is submitted. Send an Idempotency-Key so a retried request does not file a second one.

To change a campaign, use PATCH /v3/channels/sms/US/TEN_DLC/campaigns/{campaignId}; PATCH /v3/channels/sms/US/TEN_DLC changes the brand and documents only, and refuses a campaign or numbers (400).

Returns the market, in the shape GET /v3/channels/sms/US/TEN_DLC returns, with 202.

POST
/v3/channels/sms/US/TEN_DLC/campaigns

Header Parameters

Idempotency-Key?string

Unique key to ensure idempotent request processing. Must be 1-255 alphanumeric characters, hyphens, or underscores. Responses are cached for 24 hours per key per customer.

Match^[a-zA-Z0-9_-]+$
Lengthlength <= 255
x-profile-id?string

Profile UUID to scope the request to a child profile. Only organization API keys can use this header. The profile must belong to the calling organization.

Formatuuid

Request Body

application/json
  1. body

The campaign's fields, at the top level. Send an Idempotency-Key so a retry does not file a second.

sandbox?boolean
description*string

What this programme sends. TCR description: what recipients will get and why, in a sentence. The only one of these TCR takes verbatim as a description of the programme, which is why it is asked for rather than derived from the customer's name. Required when compliance.campaign.inherit != true.

Length40 <= length
message_flow*string

Consent narrative. TCR messageFlow: how recipients opt in, in prose. Under 40 characters is refused, and carriers reject vague descriptions — say where opt-in happens, that the box is unchecked by default, and that consent is not a condition of purchase. Required when compliance.campaign.inherit != true.

Length40 <= length
use_cases*array<>

Use cases. What the campaign sends, and an example of each. One to five entries; how they register is decided by volume, never declared. Required when compliance.campaign.inherit != true.

Itemsitems <= 5
opt_in_message*string

Opt-in confirmation. TCR optinMessage. Should state message frequency and that rates may apply. Its presence is what sets subscriberOptin. Required when compliance.campaign.inherit != true.

Length20 <= length
opt_out_message*string

Opt-out confirmation. TCR optoutMessage. Its presence is what sets subscriberOptout. Required when compliance.campaign.inherit != true.

Length20 <= length
help_message*string

Help reply. TCR helpMessage. Its presence is what sets subscriberHelp. Required when compliance.campaign.inherit != true.

Length20 <= length
opt_in_keywords*string

Opt-in keywords. TCR optinKeywords, comma separated, e.g. START,YES. Required when compliance.campaign.inherit != true.

Formatcsv_keywords
opt_out_keywords*string

Opt-out keywords. TCR optoutKeywords, comma separated. STOP, END, CANCEL, UNSUBSCRIBE and QUIT are honoured regardless of what is declared. Required when compliance.campaign.inherit != true.

Formatcsv_keywords
help_keywords*string

Help keywords. TCR helpKeywords, comma separated, e.g. HELP,INFO. Required when compliance.campaign.inherit != true.

Formatcsv_keywords
privacy_policy_link*string

Privacy policy URL. TCR privacyPolicyLink. Required when compliance.campaign.inherit != true.

Formaturl
terms_and_conditions_link*string

Terms and conditions URL. TCR termsAndConditionsLink. Required when compliance.campaign.inherit != true.

Formaturl
volume*string

Expected monthly volume. Required whenever the campaign's fields are written. A whole number of messages, e.g. 1000 or 10000. Decides how the campaign registers and which fee tier applies: below the low-volume threshold it registers as LOW_VOLUME with sub-use-cases, above it as a single use case or MIXED. Omitting it registers the campaign at the higher-fee standard tier. Required when compliance.campaign.inherit != true, whenever its block is written.

Response Body

The campaign is recorded, without numbers

application/json
  1. response

Standard API response envelope for all v3 endpoints

success?boolean

Indicates whether the request was successful

data?|null

The response data (null if error)

error?|null

Error details (null if successful)

meta?

Metadata about the request and response

Example Request
curl -X POST 'https://api.sent.dm/v3/channels/sms/US/TEN_DLC/campaigns' \  -H 'Idempotency-Key: req_abc123_retry1' \  -H 'Content-Type: application/json' \  -d '{  "description": "Appointment reminders for patients who opted in when booking.",  "message_flow": "Patients opt in on the booking form by checking a consent box.",  "use_cases": [    {      "use_case": "ACCOUNT_NOTIFICATION",      "sample_messages": [        "Reminder: your appointment is tomorrow at 10:00. Reply STOP to opt out."      ]    }  ]}'
Example Response
{  "success": true,  "data": {    "country": "string",    "number_type": "string",    "numbers": [      {        "sender_value": "string",        "area_code": "string",        "status": "string",        "campaign_id": "78614b6c-fe7c-41e2-8e25-c9b3a3c91904"      }    ],    "status": "PROVISIONING",    "reason_code": "string",    "reason": "string",    "compliance": {      "brand": {        "property1": null,        "property2": null      },      "campaign": {        "property1": null,        "property2": null      },      "campaigns": [        {          "property1": null,          "property2": null        }      ],      "documents": [        {          "key": "string",          "file_name": "string",          "document_id": "b792e8ae-2cb4-4209-85b9-32be4c2fcdd6"        }      ]    }  },  "error": {    "code": "string",    "message": "string",    "details": {      "property1": [        "string"      ],      "property2": [        "string"      ]    },    "doc_url": "string"  },  "meta": {    "request_id": "string",    "timestamp": "2019-08-24T14:15:22Z",    "version": "string"  }}

List the campaigns of the US 10DLC market GET

Every campaign your US `TEN_DLC` market registers, oldest first, each with its `id`, where it stands and `inherit` (`true` for your organization's) beside its fields — the list `GET /v3/channels/sms/US/TEN_DLC` reports under `compliance.campaigns`. Add one with `POST` on this path, and change one of your own with `PATCH /v3/channels/sms/US/TEN_DLC/campaigns/{id}`. Each campaign has a `status` of its own, so a market on several says which is approved: `ACTIVE` once the carriers have elected it, `PENDING_REVIEW` until then, `ACTION_NEEDED` when it came back for correction, `DECLINED` when the carriers refused it, `INACTIVE` once it has ended. Why the market is held up is the market's own `reason`, which names the campaign concerned. `status` is read-only and ignored when the entry is sent back. A customer without a US `TEN_DLC` market is `404`.

Change a campaign on the US 10DLC market PATCH

Changes **one campaign of your own** on the US `TEN_DLC` market, named by its `id` in the market's `compliance.campaigns`. ## What to send The fields to change, at the top level of the body, under their keys (`description`, `message_flow`, `use_cases`, `help_message`, …). A field you leave out keeps its value, and a rejected one is keyed by its name. `id` and `"inherit": false` are ignored, so an entry of `campaigns` can be sent as read; `"inherit": true` is `400`, because this call changes a campaign's fields, not whose campaign you run on. The campaign only: add numbers with `POST /v3/channels/sms/US/TEN_DLC/numbers`, and change the brand or documents with `PATCH /v3/channels/sms/US/TEN_DLC`. ## When it can be changed Until it is filed with The Campaign Registry, and again when we ask you to correct it. That correction sends it back for review. A filed campaign is otherwise `409`, and so is a change between low and high volume once it is registered. A campaign you run on from your organization is `409` too: it is the organization's to change. So is one out of service: expired, deactivated or released. Returns **the market**, in the shape `GET /v3/channels/sms/US/TEN_DLC` returns.