Amend one SMS market — its brand and documents

Supplies the market's identity and documents, and answers with the market as stored — the same shape GET on this path returns.

To changeSend
a brand value (US TEN_DLC)compliance.brand, as below
a registration sent back for correctioncompliance.brand — the identity is accepted even once filed, and the registration goes back for review
a document, in any marketa multipart file named after the document's key
a campaignPATCH /v3/channels/sms/US/TEN_DLC/campaigns/{id} — compliance.campaign here is 400
the numbersPOST /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.

{ "compliance": { "brand": { "contact_phone": "+12125550123" } } }
BodyEffect
"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": nullthe same thing, said the short way
key omittedleft 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.

PATCH
/v3/channels/{channel}/{country}/{type}

Path Parameters

channel*string

The channel: sms. Other channels are 501 until they have markets

country*string

ISO 3166-1 alpha-2 country code, e.g. us

type*string

Sender type, e.g. 10dlc (or ten_dlc), local or alphanumeric. Only 10dlc in us declares a brand.

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

  1. body

A body written as its members, as sent: a market's compliance (MarketComplianceWriteRequest) or a campaign's fields, flat (POST and PATCH on /v3/channels/sms/US/TEN_DLC/campaigns). The binder records which names the body carried, so an omitted key is told apart from one sent as null.

sandbox?boolean
compliance?

What this market registers with. Its members are declared by the market itself — call GET /v3/compliance/requirements?country=&type= for the authoritative set.

US TEN_DLC is the only market that registers with a regime, and the only one whose compliance carries brand and campaign; those are the members described here. Every other market's compliance is document keys, which come from configuration rather than from code and so cannot be listed in this document.

Response Body

The market as stored

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 PATCH 'https://api.sent.dm/v3/channels/sms/US/ten_dlc' \  -H 'Idempotency-Key: req_abc123_retry1' \  -H 'Content-Type: application/json' \  -d '{  "sandbox": false}'
Example Response
{  "success": true,  "data": {    "country": "US",    "number_type": "TEN_DLC",    "numbers": [      {        "sender_value": "+12125550100",        "area_code": "212",        "status": "ACTIVE"      }    ],    "status": "ACTIVE",    "compliance": {      "brand": {        "id": "c74a50be-314d-4e03-a584-23b21e062e6d",        "inherit": false,        "legal_name": "Example Retail Inc",        "entity_type": "PRIVATE_PROFIT",        "country": "US",        "website": "https://example.com",        "tax_id": "12-3456789",        "vetting": {          "score": 80,          "status": "ACTIVE",          "vetted_at": "2026-03-02T15:04:05+00:00",          "expires_at": "2027-03-02T15:04:05+00:00"        }      },      "campaign": {        "inherit": false,        "description": "Order and delivery updates for customers who opted in at checkout.",        "message_flow": "Customers opt in at checkout by checking a consent box."      },      "campaigns": [        {          "id": "3f2a6c1e-8b4d-4e2a-9c7f-1d5b0a9e4c21",          "inherit": false,          "description": "Order and delivery updates for customers who opted in at checkout.",          "message_flow": "Customers opt in at checkout by checking a consent box."        }      ],      "documents": []    }  },  "meta": {    "request_id": "req_9F7hTr3uVy",    "timestamp": "2025-06-01T12:00:00+00:00",    "version": "v3"  }}

Add an SMS market — a country and sender type POST

Gives the customer a sender in one country — the first market it sends in, and the fifth. Two addresses, one call: `POST /v3/channels/sms` with `country` and `number_type` in the body, or `POST /v3/channels/sms/{country}/{type}` with the market as the path (the path wins over the body). ## What to have in place first **Call `GET /v3/channels/sms/{country}/compliance` first.** It lists every sender type the country offers and, for each, the compliance values and documents to send, with their formats and options. You never have to track forty countries' rules yourself. **A market that registers with a compliance regime needs an identity, and this call takes one.** US `TEN_DLC` registers with The Campaign Registry and files that registration against a business identity. Send it in `compliance.brand` and it is recorded here, before the registration that attaches to it — so a customer with no identity reaches a first 10DLC market in one call. `{ "inherit": true }` runs on your organization's instead. A market with neither — none stored, none sent — is `400`, because accepting it would write a channel that could never register and leave it provisioning for ever with nothing saying why. **Everything the regime wants arrives in this request's `compliance`**, as two declared objects: `brand` — the identity the registration is filed against — and `campaign`, with the use case, the consent narrative, the volume, the sample messages and the keywords. There is nothing to set up first. Nothing is submitted here either: the rows are what a submission is later assembled from, and filing is externally rejectable so it happens on its own path. **Your own brand has to be complete here.** It must carry every field the regime asks of it, counting what you already hold — send the rest in this request. A missing one is `400` naming each field, rather than a `202` for a market that could never be filed. A brand you inherit is asked for nothing. **A campaign of your own is optional here.** Sent, it has to be complete in the same way, and the `numbers` you ask for go on it. Omitted, no campaign is written and `numbers` and `area_codes` are refused (`400`), because numbers belong to a campaign: the market reads `ACTION_NEEDED` until you add one with `POST /v3/channels/sms/US/TEN_DLC/campaigns`, then its numbers with `POST /v3/channels/sms/US/TEN_DLC/numbers`. A market that registers with nobody — an alphanumeric sender in most countries — needs neither, and may need documents instead. ## Sending it Takes the same fields `channels.sms` takes on `POST /v3/sender-profiles`, because it is the same work, and both run one provisioning path. `compliance` is top-level and answers for the market in this request, carrying `brand` and `campaign` where the market registers. **Accepts multipart as well as JSON**, with each file named after the compliance key it satisfies — a market that pre-registers its sender needs its documents at the same moment it needs the sender. Every required document must be attached to this request; a missing or invalid file is rejected before the market is added. **`area_codes` puts the sender somewhere specific**, in your order of preference, for a `LOCAL` sender in any country or a US `TEN_DLC` sender — a 10DLC number is an ordinary local long code bound to a registered campaign, so both take the same codes out of the same inventory. It is honoured exactly: you get a number in one of the codes you named or you get none, never one in a code you left out. ## Several numbers **`numbers` lists the numbers you want, one entry per area code**, e.g. `[{"area_code": "212", "quantity": 2}, {"quantity": 1}]` for two numbers in 212 and one in any area code. `quantity` defaults to 1, and an entry without `area_code` means any area code. Omit `numbers` for one number. It is for `LOCAL` and `TEN_DLC` only and cannot be combined with `area_codes`. A market holds at most 49 numbers. US `TEN_DLC` numbers belong to the market's campaign and are assigned when the campaign is approved, not at request time. Until then they read as `PROVISIONING` in the response's `numbers`, each with the area code it was asked for. A profile inheriting your organization's campaign cannot request `numbers` (`400`). **This call opens a market once. A market you already hold is `409`**, with a sender or still waiting for one, and nothing is added to it here: change its compliance with `PATCH /v3/channels/sms/{country}/{type}`, add numbers (and their area codes) with `POST /v3/channels/sms/{country}/{type}/numbers`, and on US `TEN_DLC` add a campaign with `POST /v3/channels/sms/US/TEN_DLC/campaigns`. The `409` names them. A market is a `(country, sender_type)` pair, so a **second sender type in a country you already send in is fine** — `US TOLL_FREE` alongside `US TEN_DLC` is the ordinary case. Two of the same type is not. One exception: while a market's sender type is still unassigned, adding any type to that country is `409`, because the market you have may be about to become the one you asked for. Returns **the market**, in the shape `GET` and `PATCH` on `/v3/channels/sms/{country}/{type}` use — so what this answers can be read back and written back without reshaping. Not every channel you have: adding a market cannot change an RCS agent or a WhatsApp account, and `GET /v3/channels` is the whole picture. `201` when the market is ready; `202` while a sender or a registration is still outstanding. Send `x-profile-id` with an organization key to add a market to one of your profiles.

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`.