Add a WhatsApp account

Connects a WhatsApp Business Account shared with us through a Multi-Partner Solution to the calling sender profile. Send x-profile-id for the profile the account belongs to.

Two fields, because everything else is derived. waba_id says which of your organization's shared accounts this is — you hold one per client, and nothing else can say which. phone_number_id names the account's number, which is what assigns it to the profile as the number it sends from.

The solution the account arrived through, the client business portfolio that owns it, the access token and its expiry are all resolved from your organization. They are not accepted here: the first two are Meta's answer about provenance, and the token is minted per client business and rotates roughly every sixty days, so a value you sent would be stale before it was useful.

phone_number_id is optional. Omit it to connect the account now and settle the number later — the channel reads as ACTION_NEEDED with reason_code CHANNEL_007, and the profile's WhatsApp messages fail until a number is named. They do not fall back to your organization's account. Call this endpoint again with phone_number_id to name one.

The same resolution runs behind channels.whatsapp on POST /v3/sender-profiles, so connecting at create and connecting afterwards fill the same fields.

Returns the account, not every channel you have — adding one cannot change a market or an RCS agent, and GET /v3/channels is the whole picture. Giving an account up is not self-service: ask support, because deregistering a number lands in your own Meta business.

POST
/v3/channels/whatsapp

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

application/json
  1. body

Connects a WhatsApp Business Account shared through a Multi-Partner Solution.

The same two fields channels.whatsapp takes on POST /v3/sender-profiles, so a block lifts verbatim between them and both resolve the rest the same way — the solution the account arrived through, the client business portfolio that owns it, the access token and its expiry all come from the organization rather than from the request.

Only these two cannot be inferred: the organization holds one account per client, so nothing but the caller says which is meant, and the account's number is assigned to the profile only when the caller names it.

sandbox?boolean

Sandbox flag - when true, the operation is simulated without side effects Useful for testing integrations without actual execution

waba_id*string

WhatsApp Business Account id — one of the accounts shared into your organization. Required: the organization holds one per client, and nothing but the caller says which is meant here.

phone_number_id?|

The Meta phone-number id of the number on WabaId, which assigns it to this profile as the number it sends from. It is not checked against the account here, so name the account's number; it is refused if another profile already uses it.

Optional: omit it to connect the account and settle the number later. Nothing picks one on your behalf.

Response Body

The account is connected to the profile

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 POST 'https://api.sent.dm/v3/channels/whatsapp' \  -H 'Idempotency-Key: req_abc123_retry1' \  -H 'Content-Type: application/json' \  -d '{  "waba_id": "102290129340398",  "phone_number_id": "106540352242922",  "sandbox": false}'
Example Response
{  "success": true,  "data": {    "waba_id": "102290129340398",    "phone_number_id": "106540352242922",    "solution_id": "473829105612345",    "owner_business_id": "918273645098765",    "status": "ACTIVE"  },  "meta": {    "request_id": "req_8E6gSq2tUx",    "timestamp": "2025-06-01T12:00:00+00:00",    "version": "v3"  }}

Replace a market's numbers PATCH

Replaces the numbers a market you hold asks for — their area codes and counts — with the list you send. To add to them instead, use `POST` on this path. ## Whose numbers - **SMS US `TEN_DLC`**: **one campaign of your own**, named by `campaign_id` — the `id` of an entry in the market's `compliance.campaigns`. Required. So a campaign sent back for correction can change its area codes without being recreated. One you inherit from your organization is `400`; one out of service is `409`. With everything it asks for, a campaign holds at most 49 numbers, counting one for each sender profile inheriting it. - **`LOCAL`**: the market's own, claimed from inventory now; what inventory cannot cover stays pending. No `campaign_id`. - **Any other sender type** takes no numbers: `400`. ## What to send `numbers` — the list `POST /v3/channels/sms` takes, one entry per area code, an entry without `area_code` meaning any — and, on US `TEN_DLC`, `campaign_id`. **Numbers already assigned are kept.** Nothing is released here, so a list that no longer covers a number already held is `400`, naming how many it leaves out. Lowering a count nothing has filled yet is fine. 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.

Add an RCS agent POST

Asks for an RCS agent and records the order form the carriers vet it against. Always `202`: an agent is approved by the carriers, not by this call, and nothing here can make that happen sooner. ## What it asks for The RCS Agent Order Form — the same one our team fills in on your behalf today, so nothing has to be collected from you twice. **All fields are required** and must be submitted together so the carrier review has everything it needs. The only exception is `opt_in_screenshot_url`. **Agent identity:** `display_name`, `description`, `agent_use_case` (must be one of the accepted use cases; the error names the set), `brand_color` (six-digit hex, `#RRGGBB`). **Brand identity:** `brand_name` — the brand this agent presents. Not taken from `compliance.brand`: a business may present a different brand on RCS than the one its 10DLC registration is filed against, and the carriers vet this one. `privacy_policy_url`, `terms_and_conditions_url`, `website_url`, `logo_url`, and `banner_url` must be absolute `http(s)` URLs that the carriers can fetch without authentication. The form specifies 224×224 px and 50 KB for the logo and 1440×448 px and 200 KB for the banner; these cannot be checked without the image bytes. **Contact details:** `brand_phone_number`, `customer_support_phone_number`, `brand_email`, `customer_support_email`, `contact_name_and_title`. **Company:** `company_ein`, `entity_type`, `official_address` (street, city, state, postal_code, country), `brief_company_description`. **Consent and messages:** `opt_in_process_description`, `start_message`, `help_message`, `stop_message`, `sample_messages` (at least one example message). **Optional:** `opt_in_screenshot_url` (validated as an http(s) URL if supplied). Anything supplied is checked against accepted values rather than passed through: a value the provider rejects would otherwise surface days later, to somebody who cannot fix it without asking you. **A customer has one agent.** Asking again while you have one is `409`. ## What comes back, and what does not Returns **the agent** — the form as stored, plus `id` and `status`. Not your other channels, which this call cannot have changed. `status` is `PROVISIONING` until the agent is handed to the carriers and approved. **`GET /v3/channels` reports `rcs: null` until then** — a channel row is what routing reads to decide you are sendable, and writing one for an unapproved agent would claim a channel that cannot carry traffic. Send `x-profile-id` with an organization key to ask for one of your profiles' agents.