Create a WhatsApp signup link
Creates a link to a page at Sent where whoever holds a business's Meta account connects its WhatsApp Business Account, without an account at Sent and without seeing your API key: they sign in to Meta there (Embedded Signup). Send x-profile-id, or call with a sender profile's own API key, and the account is connected to that profile. Call unscoped with your organization's key and it is connected to your organization itself.
Call this from your backend, then send the business to url: redirect the browser to it, or open it with window.open from a click. It cannot be framed.
When the business is done the page sends the browser to return_url with status (connected or cancelled) and your state added to the query. Opened as a popup, it first posts { type: "sent.whatsapp_connect", status, state, profile_id } to window.opener at the origin of return_url (profile_id is null for your organization's own account), then goes to return_url itself, which can close the popup. Treat both as a hint, since a browser can lose or alter them: the account is connected once GET /v3/channels, scoped the same way, shows it under whatsapp.
The link works until it expires after ttl seconds; nothing about it is stored. Each use connects the account picked, replacing one the profile or organization already has, so using it twice is harmless. Refused for an account that came through, or anchors, a Meta Multi-Partner Solution.
The response is never stored for Idempotency-Key, because the link is a secret until it expires: a retry with the same key creates a new link.
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.
uuidapplication/json- body
Request for a link that lets the business behind the calling sender profile sign up its WhatsApp
sandbox?booleanSandbox flag - when true, the operation is simulated without side effects Useful for testing integrations without actual execution
return_url?|Where to send the browser when the business is done, with status (connected or cancelled) and your state added to the query. An absolute https URL; http only on localhost. Its origin also receives the outcome as a postMessage when you opened the link in a popup. Omit it and the page tells the business it can close the window.
state?|A value of your own, such as your id for the business, handed back unchanged on return_url. Up to 256 characters.
0 <= length <= 256ttl?|How long the link can be opened, in seconds. Defaults to 3600; between 300 and 86400.
int32300 <= value <= 86400The link
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/whatsapp/embedded-signup' \ -H 'Idempotency-Key: req_abc123_retry1' \ -H 'Content-Type: application/json' \ -d '{ "return_url": "https://app.example.com/settings/whatsapp", "state": "client-1842", "ttl": 3600, "sandbox": false}'{ "success": true, "data": { "organization_id": "550e8400-e29b-41d4-a716-446655440000", "profile_id": "770e8400-e29b-41d4-a716-446655440002", "url": "https://app.sent.dm/connect/whatsapp?token=eyJvIjoiNTUwZTg0MDAiLCJlIjoxNzQ4NzgyODAwfQ.Wm9F3x1kQ7aP0sL2vB8nC4dE6fG9hJ1kL3mN5pQ7rS0", "expires_at": "2025-06-01T13:00:00+00:00" }, "error": null, "meta": { "request_id": "req_7X9zKp2jDw", "timestamp": "2025-06-01T12:00:00+00:00", "version": "v3" }}Add a WhatsApp account POST
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.
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.