Change a campaign on the US 10DLC market
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.
campaignId*stringThe campaign: its id in the market's compliance.campaigns.
uuidIdempotency-Key?stringUnique 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.
^[a-zA-Z0-9_-]+$length <= 255x-profile-id?stringProfile 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.
uuidapplication/json- body
The fields to change, at the top level. Partial: a field left out keeps its value.
sandbox?booleandescription?stringWhat 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.
40 <= lengthmessage_flow?stringConsent 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.
40 <= lengthuse_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.
items <= 5opt_in_message?stringOpt-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.
20 <= lengthopt_out_message?stringOpt-out confirmation. TCR optoutMessage. Its presence is what sets subscriberOptout. Required when compliance.campaign.inherit != true.
20 <= lengthhelp_message?stringHelp reply. TCR helpMessage. Its presence is what sets subscriberHelp. Required when compliance.campaign.inherit != true.
20 <= lengthopt_in_keywords?stringOpt-in keywords. TCR optinKeywords, comma separated, e.g. START,YES. Required when compliance.campaign.inherit != true.
csv_keywordsopt_out_keywords?stringOpt-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.
csv_keywordshelp_keywords?stringHelp keywords. TCR helpKeywords, comma separated, e.g. HELP,INFO. Required when compliance.campaign.inherit != true.
csv_keywordsprivacy_policy_link?stringPrivacy policy URL. TCR privacyPolicyLink. Required when compliance.campaign.inherit != true.
urlterms_and_conditions_link?stringTerms and conditions URL. TCR termsAndConditionsLink. Required when compliance.campaign.inherit != true.
urlvolume?stringExpected 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.
The campaign was changed
application/json- response
Standard API response envelope for all v3 endpoints
success?booleanIndicates whether the request was successful
data?|nullThe response data (null if error)
error?|nullError details (null if successful)
meta?Metadata about the request and response
curl -X PATCH 'https://api.sent.dm/v3/channels/sms/US/TEN_DLC/campaigns/3f2a6c1e-8b4d-4e2a-9c7f-1d5b0a9e4c21' \ -H 'Idempotency-Key: req_abc123_retry1' \ -H 'Content-Type: application/json' \ -d '{ "help_message": "Example Clinic: for help call +1 212 555 0100. Reply STOP to opt out."}'{ "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" }}Add a campaign to the US 10DLC market POST
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`.
List your numbers in a market GET
Every number you hold in one market (country and sender type): `ACTIVE` once it can send, `PROVISIONING` while it is still to be assigned (it then has no `sender_value` yet), `INACTIVE` once it could send and no longer can. US `TEN_DLC` numbers name their `campaign_id`, and `?campaign_id=` keeps one campaign's. A market you do not hold is `404`. Add numbers with `POST` on the same path.