List your numbers in a market

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.

GET
/v3/channels/{channel}/{country}/{type}/numbers

Path Parameters

channel*string

The channel: sms. Other channels are 501 until their numbers are available

country*string

ISO 3166-1 country code, e.g. US

type*string

Sender type: ten_dlc (or 10dlc), local, mobile, toll_free, short_code, alphanumeric

Query Parameters

campaign_id?|

Only the numbers of this campaign (US TEN_DLC); all of the market's when absent.

Formatuuid

Header Parameters

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

Response Body

Your numbers in the market

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 GET 'https://api.sent.dm/v3/channels/string/string/string/numbers'
Example Response
{  "success": true,  "data": {    "channel": "string",    "country": "string",    "numbers": [      {        "type": "string",        "sender_value": "string",        "area_code": "string",        "status": "string",        "campaign_id": "78614b6c-fe7c-41e2-8e25-c9b3a3c91904"      }    ]  },  "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"  }}

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.

Add numbers to a market POST

Adds numbers to a market you hold. They are **added** to what it already asks for, never replacing it — with one exception: a US `TEN_DLC` campaign opened without `numbers` asks for one number in any area code by default, and while it holds no number yet, the first numbers added replace that default. Once it holds one, they are added beside it. ## Where they go - **SMS US `TEN_DLC`**: to **one campaign of your own**, named by `campaign_id` — the `id` of an entry in the market's `compliance.campaigns` (`GET /v3/channels/sms/US/TEN_DLC`). Required: left out it is `400` naming your campaigns in service. One you inherit from your organization is `400`: its numbers are the organization's. One out of service — expired, deactivated or released — is `409`. A campaign the carriers have not approved yet gets its numbers when they do; an approved one gets them now. With everything it asks for, a campaign holds at most 49 numbers, counting one for each sender profile inheriting it. - **`LOCAL`**: to the market, claimed from inventory now; what inventory cannot cover stays pending. No `campaign_id`. A market holds at most 49 numbers. - **Any other sender type** takes no numbers: `400`. ## What to send `numbers` — the list `POST /v3/channels/sms` takes, one entry per area code — and, on US `TEN_DLC`, `campaign_id`, required. Until a number is assigned it reads as `PROVISIONING` in the market's `numbers`, with the area code it was asked for. Returns **the market**, in the shape `GET /v3/channels/sms/{country}/{type}` returns, with `202`.