List the campaigns of the US 10DLC market
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.
x-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.
uuidThe market's campaigns
application/json- response
Standard API response envelope for all v3 endpoints
success?booleanIndicates whether the request was successful
data?array<>|The response data (null if error)
error?|nullError details (null if successful)
meta?Metadata about the request and response
curl -X GET 'https://api.sent.dm/v3/channels/sms/US/TEN_DLC/campaigns'{ "success": true, "data": [ { "property1": null, "property2": null } ], "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" }}Amend one SMS market — its brand and documents PATCH
Supplies the market's identity and documents, and answers with the market as stored — the same shape `GET` on this path returns. | To change | Send | | --- | --- | | a `brand` value (US `TEN_DLC`) | `compliance.brand`, as below | | a registration sent back for correction | `compliance.brand` — the identity is accepted even once filed, and the registration goes back for review | | a document, in any market | a multipart file named after the document's key | | a campaign | `PATCH /v3/channels/sms/US/TEN_DLC/campaigns/{id}` — `compliance.campaign` here is `400` | | the numbers | `POST /v3/channels/{channel}/{country}/{type}/numbers` — `numbers` here is `400` | ## Partial, at every level **An omitted key is left alone. An explicit `null` clears it.** Those are different requests, so `{}` changes nothing and is refused rather than silently accepted, and correcting one field does not blank the others. ```json { "compliance": { "brand": { "contact_phone": "+12125550123" } } } ``` | Body | Effect | | --- | --- | | `"brand": { … }` | supplies or corrects the identity, and takes one of your own | | `"brand": { "inherit": true }` | runs on your organization's, giving up your own | | `"brand": null` | the same thing, said the short way | | key omitted | left exactly as it is | The brand read on this path, its `id` and `vetting` included, can be sent back unchanged: both are read-only and ignored. ## Every other market Markets that register with no regime have no brand, so `compliance` is `400` there. Their compliance is documents, sent here as multipart. ## Documents Send `multipart/form-data` with **each file named after the compliance key it satisfies** — the key `GET /v3/channels/{channel}/{country}/compliance` lists. A file that matches no document the market asks for is `400` naming the keys that would, and a file the upload rules refuse (empty, too large, an unsupported type) is `422`. `compliance` may ride in the same form as a text part holding its JSON. ## What it will refuse **A filed identity is `409`.** Once the registration has gone to The Campaign Registry they hold a copy, and a local change would diverge from it silently. The exception is a registration sent back for correction: the identity is accepted, and the registration goes back for review. Refiling it with The Campaign Registry stays with Sent. Nothing is submitted to a regime here. Send `x-profile-id` with an organization key to write one of your profiles' markets.
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`.