Add an SMS market — a country and sender type
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.
Idempotency-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.
uuid- body
Adds an SMS market — a country and a sender type — to a customer.
The same fields channels.sms takes on POST /v3/sender-profiles, because it is the same work: create is "make the profile, then add its first market", and both run one provisioning path. compliance is top-level and answers for the market this request concerns, exactly as it does there.
sandbox?booleanSandbox flag - when true, the operation is simulated without side effects Useful for testing integrations without actual execution
number_type*stringSender type. Decides the provisioning flow and what compliance is asked for.
[Required] so the published document says so. The validator has always demanded it, but requiredness reached the schema by matching a rule to a property name — which works for country, whose wire name is its camel-cased C# name, and silently does not for number_type. A client generating a request from our OpenAPI therefore sent what the document called sufficient and was answered 400.
1 <= length"LOCAL""TOLL_FREE""SHORT_CODE""ALPHANUMERIC""TEN_DLC""MOBILE""10DLC"sender_value?|The sender's identity where the caller chooses it. Required when number_type is ALPHANUMERIC; optional for carrier-assigned types, which are procured afterwards.
1 <= lengtharea_codes?array<string>|The area codes to put this sender in, in your own order of preference, e.g. ["415", "628"] for the US or ["20"] for London. Omit it and a number is claimed anywhere in the country.
Ordered, and the order is the request. The claim tries each code in turn and stops at the first that yields a number. Nothing sorts the list and a code listed twice is refused.
One to fifty entries, each the area code as digits: 415, with the trunk prefix as 020, or with the country's dialing prefix as +1415 (all are stored as the bare code). A dialing prefix from a different country than country is refused. Each code is checked against the country's numbering plan: it must start real local or mobile numbers there, so toll-free and premium ranges, service codes and another country's codes are refused with a reason.
LOCAL senders in any country, and US TEN_DLC senders. No other sender type has a geographic area code, and the list is refused with one rather than accepted and dropped.
Honoured exactly or not at all. Ask for 415 and you get a 415 number or you get none, never a neighbouring code you did not name. A miss leaves the market with no sender yet and the codes recorded on it, so it is filled when stock appears rather than filled now from somewhere else. Many countries outside North America require address or business documents before a local number can be bought, which can delay or prevent the fill.
numbers?array<>|The numbers to assign, one entry per area code, e.g. [{"area_code": "212", "quantity": 2}, {"area_code": "415"}, {"quantity": 1}]: two numbers in 212, one in 415 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.
Only with LOCAL or TEN_DLC, and not together with area_codes. Each area code is validated against country the same way area_codes is and may appear once, and at most one entry may leave area_code out. On a LOCAL market you already hold, this adds the numbers to it. US TEN_DLC numbers are assigned when the campaign is approved, not at request time. Not available when the profile inherits the organization's campaign.
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.
The market is ready
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 POST 'https://api.sent.dm/v3/channels/sms' \ -H 'Idempotency-Key: req_abc123_retry1' \ -H 'Content-Type: application/json' \ -d '{ "number_type": "TEN_DLC", "area_codes": [ "415", "628" ], "compliance": { "brand": { "inherit": false, "legal_name": "Example Retail Inc", "entity_type": "PRIVATE_PROFIT", "country": "US", "website": "https://example.com" }, "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.", "use_cases": [ { "use_case": "DELIVERY_NOTIFICATION", "sample_messages": [ "Your order #1234 has shipped and will arrive tomorrow." ] } ] } }, "sandbox": false}'{ "success": true, "data": { "country": "GB", "number_type": "ALPHANUMERIC", "numbers": [ { "sender_value": "ExmplRetail", "area_code": null, "status": "ACTIVE" } ], "status": "ACTIVE", "compliance": { "documents": [ { "key": "senderid_registration_requirements", "file_name": "sender-id-registration.pdf", "document_id": "b792e8ae-2cb4-4209-85b9-32be4c2fcdd6" } ] } }, "meta": { "request_id": "req_5B3dPn9qSu", "timestamp": "2025-06-01T12:00:00+00:00", "version": "v3" }}Get one SMS market (country and sender type) GET
Reads one market you send in — its sender, where that sender stands, and everything its compliance holds. ## What `compliance` carries A market that registers with a compliance regime reports `brand` — the identity the registration is filed against — and `campaign`, the programme filed against it. Each carries `inherit`, saying whether it is yours or your organization's. `compliance.brand.vetting` is the brand's external vetting at The Campaign Registry, read-only: `score` (0-100, the figure US carriers set 10DLC throughput by), `status` (`PENDING`, `UNSCORE`, `ACTIVE`, `FAILED` or `EXPIRED`; carriers read the score of an `ACTIVE` vet only), `vetted_at` and `expires_at`. It is `null` while no vetting record is held for the brand, and `score` is `null` for a vet that has none yet. A profile on your organization's brand reads your organization's vetting. A market that registers with nobody has neither, so **both keys are absent** rather than null: absent says this market does not ask, where null would say it asks and you supplied nothing. It reports `documents` instead. `GET /v3/compliance/requirements` says what a market demands of any new customer; this says what you gave it. ## Writing it back **`PATCH` this same path**, with the `compliance` object from this response: ```json { "compliance": { "brand": { "tax_id": "12-3456789" } } } ``` Nothing else to learn — what comes back can be sent back, an omitted key is left alone. There is no sub-resource for either half: both are singletons of the market, so both are written here. `GET /v3/compliance/requirements` says what a market demands of anybody; this says what you gave it. Send `x-profile-id` with an organization key to read one of your profiles' markets.
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.