Sendport API▾
Sendport API
Send and receive WhatsApp messages over a REST API. Connect a number with Embedded Signup, then use one key for messaging, templates, broadcasts and webhooks.
The Sendport API is a REST interface over the WhatsApp Business Platform. You connect a phone number once through Meta's Embedded Signup, and from then on every message, template and webhook flows through one key and one base URL.
This documentation runs against a sandbox
"sandbox": true. See Sandbox.Start here
Quickstart
Send your first message with curl in three steps.
Authentication
API keys, environments and key rotation.
API reference
Every resource, parameter and response.
Webhooks
Receive inbound messages and status updates.
Channels
Connect, key and migrate a WhatsApp number.
CLI
Send, tail and tunnel from your terminal.
Base URL
https://api.sendport.tech/v1All requests use HTTPS. Request and response bodies are JSON, except media upload which is multipart/form-data. Timestamps are RFC 3339 in UTC.
Resources
| Resource | What it holds |
|---|---|
messages | Outbound and inbound messages, their delivery status and pricing |
conversations | One thread per contact per number, with assignment and session state |
contacts | People you can message, their tags and custom attributes |
templates | Pre-approved message templates and their Meta review status |
media | Images, documents, audio and video you send or receive |
broadcasts | Bulk template sends with per-recipient reporting |
numbers | The WhatsApp numbers connected to your account |
webhooks | Endpoints Sendport delivers events to |
Conventions
- Phone numbers are always E.164 with a leading
+, e.g.+201005550123. - Ids are prefixed and opaque:
msg_,conv_,ct_,tpl_,bc_. Never parse them. - List endpoints return
{ object: "list", data: [...], has_more, next_cursor }. - Every response includes an
X-Request-Idheader. Quote it in support requests.