API Reference
Complete API endpoint reference for Sendable WhatsApp API.
All endpoints live under https://api.sendable.dev and authenticate with the x-api-key header. Most routes use a session-scoped API key and act on that key's WhatsApp session. The OpenAPI document at /openapi/json documents every request and response field.
Conventions
- Ids: personal chats use a PN jid (
[email protected]) or a LID (123456@lid). Participant, recipient, and block lists on the group, community, account, status, and newsletter routes also accept a bare phone number (6281234567890);POST /v1/message/sendneeds a full jid. Groups and communities use<id>@g.us(bare ids are accepted on group and community routes). Newsletters use<id>@newsletter. URL-encode ids in paths. - Pagination: list routes return
{ data, nextCursor }. PassnextCursorback ascursor.GET /v1/contactsreturns a plain array and the next cursor in thex-next-cursorheader. - Errors: WhatsApp errors map to HTTP:
400bad input,403not allowed (for example, not an admin),404not found,409conflict,410gone (expired invite),502WhatsApp failure,503socket not connected. - Idempotency:
POST /v1/message/send(sync and async) accepts anIdempotency-Keyheader (aliasx-idempotency-key), 1-128 printable ASCII characters. Keys are scoped to the WhatsApp session and kept for 24 hours. Retrying with the same key and the same body returns the first response again withIdempotent-Replayed: trueinstead of sending twice. The same key with a different body returns422; a retry while the first request is still running returns409withRetry-After: 1.429and5xxresponses are not stored, so you can retry them with the same key. If the server crashes mid-send, the key becomes usable again after 2 minutes, which can cause one duplicate. - Images by URL: picture, cover photo, product image, and status media URLs must be public https URLs. Private, loopback, and link-local hosts are rejected.
- Received statuses are stored only after the session opts in with
PUT /v1/status/settings{ "storeReceived": true }. Until then they are dropped before storage,GET /v1/statusstays empty, and nostatus.receivedevent is produced. Statuses you post are always stored.
Sessions
Session lifecycle and the linked account. Routes without :id act on the session of a session-scoped API key.
| Method | Path | Description |
|---|---|---|
GET | /v1/session | List WhatsApp sessions |
POST | /v1/session | Create WhatsApp session |
POST | /v1/session/start | Start scoped WhatsApp session |
POST | /v1/session/restart | Restart scoped WhatsApp session |
GET | /v1/session/uptime | Get scoped WhatsApp session uptime |
GET | /v1/session/status | Get scoped WhatsApp session status |
GET | /v1/session/profile | Get scoped WhatsApp session own profile |
POST | /v1/session/end | End scoped WhatsApp session |
POST | /v1/session/logout | Logout scoped WhatsApp session |
GET | /v1/session/:id/uptime | Get WhatsApp session uptime |
POST | /v1/session/:id/start | Start WhatsApp session |
POST | /v1/session/:id/restart | Restart WhatsApp session |
GET | /v1/session/:id/status | Get WhatsApp session status |
GET | /v1/session/:id/profile | Get WhatsApp session own profile |
POST | /v1/session/:id/end | End WhatsApp session |
POST | /v1/session/:id/logout | Logout WhatsApp session |
GET | /v1/session/:id | Get WhatsApp session |
PATCH | /v1/session/:id | Update WhatsApp session |
DELETE | /v1/session/:id | Delete WhatsApp session |
Messages
Send, edit, delete, star, read, and fetch messages. POST /v1/message/send accepts text, image, video, audio, document, sticker, location, contacts, poll, event, album, and more; see the OpenAPI schema for every field.
| Method | Path | Description |
|---|---|---|
GET | /v1/messages | List messages |
GET | /v1/message/:messageId | Get message details |
GET | /v1/message/:messageId/media | Download message media |
POST | /v1/message/:messageId/media/refresh | Refresh expired message media |
GET | /v1/message/:messageId/annotations | List message annotations |
POST | /v1/message/:messageId/annotations | Create message annotation |
POST | /v1/message/send | Send message |
POST | /v1/message/send-async | Send message asynchronously (deprecated) |
POST | /v1/message/edit | Edit message |
POST | /v1/message/delete | Delete message for everyone |
POST | /v1/message/read | Mark messages as read |
POST | /v1/message/star | Star or unstar messages |
POST | /v1/message/history | Fetch older message history |
POST | /v1/message/resend | Request placeholder message resend |
POST | /v1/media | Upload outbound media |
GET | /v1/message/delivery-status/:runId | Get message delivery status |
GET | /v1/chats.recent | List recent chats |
Chats
Chat list, details, notes, tags, and app-state actions (archive, pin, mute, clear, delete). Read state is sent with read receipts only.
| Method | Path | Description |
|---|---|---|
GET | /v1/chats | List chats |
GET | /v1/chats/:chatId | Get chat details |
GET | /v1/chats/:chatId/messages | List chat messages |
GET | /v1/chats/:chatId/notes | List chat notes |
POST | /v1/chats/:chatId/notes | Create chat note |
GET | /v1/chats/:chatId/tags | List chat tags |
POST | /v1/chats/:chatId/tags | Create chat tag |
GET | /v1/chats/:chatId/state | Get chat state |
POST | /v1/chats/:chatId/archive | Archive or unarchive chat |
POST | /v1/chats/:chatId/pin | Pin or unpin chat |
POST | /v1/chats/:chatId/mute | Mute or unmute chat |
POST | /v1/chats/:chatId/clear | Clear chat |
DELETE | /v1/chats/:chatId | Delete chat |
POST | /v1/chats/:chatId/messages/:messageId/delete-for-me | Delete message for me |
POST | /v1/chats/:chatId/star | Star or unstar chat messages |
PUT | /v1/chats/:chatId/disappearing | Set disappearing-message duration |
Contacts
| Method | Path | Description |
|---|---|---|
GET | /v1/contacts | List contacts |
GET | /v1/contacts/:jid | Get contact |
DELETE | /v1/contacts/:jid | Remove contact |
GET | /v1/contacts/:jid/profile-picture | Get profile picture URL |
POST | /v1/contacts/status | Fetch contact about/status text |
POST | /v1/contacts/disappearing-duration | Fetch default disappearing-message duration |
POST | /v1/contacts/devices | List linked devices |
POST | /v1/contacts | Create or update contact |
POST | /v1/contacts/check | Check if phone numbers exist on WhatsApp |
Presence
| Method | Path | Description |
|---|---|---|
POST | /v1/presence | Send presence update |
POST | /v1/presence/subscribe | Subscribe to chat presence updates |
Groups
Stored groups (GET) plus write APIs that call the Baileys group* methods.
| Method | Path | Description |
|---|---|---|
GET | /v1/groups | List WhatsApp groups |
GET | /v1/groups/:id | Get WhatsApp group details |
GET | /v1/groups/:id/logs | List WhatsApp group audit logs |
POST | /v1/groups | Create group |
PUT | /v1/groups/:id/member-label | Set my member label (max 30 chars) |
POST | /v1/groups/invites/accept | Join by invite code or link |
POST | /v1/groups/invites/accept-v4 | Accept an invite message (messageId, or inviterJid + invite) |
GET | /v1/groups/invites/:code | Get invite info |
POST | /v1/groups/:id/leave | Leave |
PUT | /v1/groups/:id/subject | Update subject |
PUT | /v1/groups/:id/description | Update description (omit or empty clears) |
PUT | /v1/groups/:id/settings | announce / locked settings |
PUT | /v1/groups/:id/ephemeral | Disappearing-message timer (0, 24h, 7d, 90d) |
PUT | /v1/groups/:id/member-add-mode | admin_add or all_member_add |
PUT | /v1/groups/:id/join-approval-mode | Turn join approval on or off |
PUT | /v1/groups/:id/picture | Set picture (url or base64) |
DELETE | /v1/groups/:id/picture | Remove picture |
POST | /v1/groups/:id/participants | Add, remove, promote, or demote participants |
GET | /v1/groups/:id/join-requests | List pending join requests |
POST | /v1/groups/:id/join-requests | Approve or reject join requests |
GET | /v1/groups/:id/invite-code | Get invite code and link |
POST | /v1/groups/:id/invite-code/revoke | Revoke invite code |
POST | /v1/groups/:id/invites/revoke-v4 | Revoke an invite message sent to invitedJid |
Communities
Community-specific routes plus the same write routes as groups, calling the community* methods. Stored communities are listed with GET /v1/groups?isCommunity=true.
| Method | Path | Description |
|---|---|---|
GET | /v1/v1/communities | List communities (live) |
POST | /v1/v1/communities | Create community |
GET | /v1/v1/communities/:id | Get community metadata (live) |
GET | /v1/v1/communities/:id/groups | List linked groups |
POST | /v1/v1/communities/:id/groups | Create linked group |
PUT | /v1/v1/communities/:id/groups/:groupId | Link group to community |
DELETE | /v1/v1/communities/:id/groups/:groupId | Unlink group from community |
POST | /v1/communities/invites/accept | Join by invite code or link |
POST | /v1/communities/invites/accept-v4 | Accept an invite message (messageId, or inviterJid + invite) |
GET | /v1/communities/invites/:code | Get invite info |
POST | /v1/communities/:id/leave | Leave |
PUT | /v1/communities/:id/subject | Update subject |
PUT | /v1/communities/:id/description | Update description (omit or empty clears) |
PUT | /v1/communities/:id/settings | announce / locked settings |
PUT | /v1/communities/:id/ephemeral | Disappearing-message timer (0, 24h, 7d, 90d) |
PUT | /v1/communities/:id/member-add-mode | admin_add or all_member_add |
PUT | /v1/communities/:id/join-approval-mode | Turn join approval on or off |
PUT | /v1/communities/:id/picture | Set picture (url or base64) |
DELETE | /v1/communities/:id/picture | Remove picture |
POST | /v1/communities/:id/participants | Add, remove, promote, or demote participants |
GET | /v1/communities/:id/join-requests | List pending join requests |
POST | /v1/communities/:id/join-requests | Approve or reject join requests |
GET | /v1/communities/:id/invite-code | Get invite code and link |
POST | /v1/communities/:id/invite-code/revoke | Revoke invite code |
POST | /v1/communities/:id/invites/revoke-v4 | Revoke an invite message sent to invitedJid |
Account
Profile, privacy, blocklist, account caps, and app-state sync for the linked account.
| Method | Path | Description |
|---|---|---|
GET | /v1/account/profile | Get my profile |
PUT | /v1/account/profile/name | Update my profile name |
PUT | /v1/account/profile/status | Update my about text |
PUT | /v1/account/profile/picture | Update my profile picture |
DELETE | /v1/account/profile/picture | Remove my profile picture |
GET | /v1/account/privacy | Get privacy settings |
PUT | /v1/account/privacy | Update privacy settings |
PUT | /v1/account/default-disappearing | Set default disappearing messages |
GET | /v1/account/blocklist | List blocked accounts |
POST | /v1/account/blocklist | Block an account |
DELETE | /v1/account/blocklist/:jid | Unblock an account |
GET | /v1/account/reachout-timelock | Get reachout timelock |
GET | /v1/account/message-cap | Get new-chat message cap |
GET | /v1/account/settings | Get stored account settings |
GET | /v1/account/bots | List Meta AI bots |
POST | /v1/account/app-state/resync | Resync app state |
POST | /v1/account/dirty-bits/clean | Clean dirty bits |
Labels
WhatsApp Business labels, synced from labels.edit and labels.association.
| Method | Path | Description |
|---|---|---|
GET | /v1/labels | List labels |
POST | /v1/labels | Create label |
PUT | /v1/labels/:labelId | Update label |
DELETE | /v1/labels/:labelId | Delete label |
GET | /v1/labels/:labelId/associations | List label associations |
GET | /v1/chats/:chatId/labels | List chat labels |
PUT | /v1/chats/:chatId/labels/:labelId | Add label to chat |
DELETE | /v1/chats/:chatId/labels/:labelId | Remove label from chat |
PUT | /v1/chats/:chatId/messages/:messageId/labels/:labelId | Add label to message |
DELETE | /v1/chats/:chatId/messages/:messageId/labels/:labelId | Remove label from message |
Business
WhatsApp Business profile, catalog, orders, and quick replies. Catalog prices are sent unchanged; WhatsApp expects the amount × 1000.
| Method | Path | Description |
|---|---|---|
GET | /v1/business/profile | Get business profile |
PUT | /v1/business/profile | Update business profile |
PUT | /v1/business/cover-photo | Set cover photo |
DELETE | /v1/business/cover-photo/:id | Remove cover photo |
GET | /v1/business/catalog | List catalog products |
GET | /v1/business/collections | List catalog collections |
POST | /v1/business/products | Create product |
POST | /v1/business/products/delete | Delete products |
PUT | /v1/business/products/:productId | Update product |
DELETE | /v1/business/products/:productId | Delete product |
GET | /v1/business/orders/:orderId | Get order details |
PUT | /v1/business/quick-replies | Create or edit quick reply |
DELETE | /v1/business/quick-replies/:timestamp | Remove quick reply |
Status
Post statuses (stories) and read statuses posted by contacts.
| Method | Path | Description |
|---|---|---|
POST | /v1/status | Post a status |
GET | /v1/status | List received statuses |
GET | /v1/status/settings | Get status settings |
PUT | /v1/status/settings | Update status settings |
Newsletters
WhatsApp Channels. Ids are <digits>@newsletter; bare ids are accepted.
| Method | Path | Description |
|---|---|---|
GET | /v1/newsletters | List stored newsletters |
POST | /v1/newsletters | Create newsletter |
GET | /v1/newsletters/invites/:code | Get newsletter by invite code |
GET | /v1/newsletters/:id | Get newsletter metadata |
PUT | /v1/newsletters/:id | Update newsletter |
DELETE | /v1/newsletters/:id | Delete newsletter |
PUT | /v1/newsletters/:id/name | Rename newsletter |
PUT | /v1/newsletters/:id/description | Update newsletter description |
PUT | /v1/newsletters/:id/picture | Set newsletter picture |
DELETE | /v1/newsletters/:id/picture | Remove newsletter picture |
POST | /v1/newsletters/:id/follow | Follow newsletter |
DELETE | /v1/newsletters/:id/follow | Unfollow newsletter |
POST | /v1/newsletters/:id/mute | Mute newsletter |
DELETE | /v1/newsletters/:id/mute | Unmute newsletter |
GET | /v1/newsletters/:id/subscribers | Get subscriber count |
GET | /v1/newsletters/:id/admin-count | Get admin count |
GET | /v1/newsletters/:id/messages | Fetch newsletter posts |
PUT | /v1/newsletters/:id/messages/:serverId/reaction | React to a newsletter post |
POST | /v1/newsletters/:id/subscribe-updates | Subscribe to live updates |
POST | /v1/newsletters/:id/owner | Transfer ownership |
POST | /v1/newsletters/:id/demote | Demote admin |
Calls
Call log built from the call event, call rejection, and call links.
| Method | Path | Description |
|---|---|---|
GET | /v1/calls | List calls |
POST | /v1/calls/links | Create call link |
GET | /v1/calls/:callId | Get call |
POST | /v1/calls/:callId/reject | Reject call |
Events
Replayable feed of normalized events. See Webhook Events for every type and its data.
| Method | Path | Description |
|---|---|---|
GET | /v1/events | List normalized events |
Webhooks
Webhook endpoints, delivery logs, and retries. These routes have no /v1 prefix.
| Method | Path | Description |
|---|---|---|
GET | /webhooks/event-types | List webhook event types |
POST | /webhooks | Create webhook |
GET | /webhooks | List webhooks |
GET | /webhooks/:webhookId | Get webhook details |
PATCH | /webhooks/:webhookId | Update webhook |
DELETE | /webhooks/:webhookId | Delete webhook |
POST | /webhooks/:webhookId/rotate-secret | Rotate webhook secret |
GET | /webhooks/:webhookId/logs | List webhook delivery logs |
POST | /webhooks/:webhookId/logs/:deliveryId/retry | Retry a webhook delivery |
Examples
Send a Text Message
curl -X POST "https://api.sendable.dev/v1/message/send" \
-H "x-api-key: YOUR_SESSION_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"chatId": "[email protected]",
"text": { "content": "Hello from Sendable" }
}'{
"messageId": "3EB0C0A9F1D2...",
"runId": null,
"status": "PENDING"
}Add Group Participants
curl -X POST "https://api.sendable.dev/v1/groups/[email protected]/participants" \
-H "x-api-key: YOUR_SESSION_API_KEY" \
-H "Content-Type: application/json" \
-d '{ "participants": ["6281234567890"], "action": "add" }'{
"groupId": "[email protected]",
"action": "add",
"results": [
{ "jid": "[email protected]", "status": "200" }
]
}When WhatsApp refuses a direct add (status: "403"), the result includes addRequest: { code, expiration } so you can send an invite instead.
List Group Or Community Audit Logs
Group and community audit logs include participant changes, setting changes, join requests (group.join-request), and member tag changes (group.member-tag.update).
curl -X GET "https://api.sendable.dev/v1/groups/[email protected]/logs?limit=25&eventKey=group-participants.update" \
-H "x-api-key: YOUR_SESSION_API_KEY"{
"data": [
{
"id": "log_123",
"groupId": "[email protected]",
"eventKey": "group-participants.update",
"action": "add",
"authorId": "[email protected]",
"authorJid": "[email protected]",
"authorLid": null,
"participants": [
{
"id": "[email protected]",
"jid": "[email protected]",
"phoneNumber": "6289876543210"
}
],
"leftAtBefore": null,
"leftAtAfter": null,
"payload": {},
"createdAt": "2026-03-14T08:10:00.000Z"
}
],
"nextCursor": null
}Create a Webhook
curl -X POST "https://api.sendable.dev/webhooks" \
-H "x-api-key: YOUR_SESSION_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"event_name": "main",
"https_url": "https://your-app.com/webhook",
"event_types": ["message.received", "message.delivered", "group.join-request"],
"max_retries": 3,
"retry_interval_second": 60
}'The response includes webhook_secret (whsec_...). Use it to verify the webhook-signature header. Rotate it with POST /webhooks/:webhookId/rotate-secret.
Retry a Failed Delivery
curl -X GET "https://api.sendable.dev/webhooks/WEBHOOK_ID/logs?limit=10" \
-H "x-api-key: YOUR_SESSION_API_KEY"
curl -X POST "https://api.sendable.dev/webhooks/WEBHOOK_ID/logs/DELIVERY_ID/retry" \
-H "x-api-key: YOUR_SESSION_API_KEY"DELIVERY_ID is delivery_id from the logs. The retry keeps the same webhook-id header so your endpoint can deduplicate it.