Skip to Content
Sendable Docs

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/send needs 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 }. Pass nextCursor back as cursor. GET /v1/contacts returns a plain array and the next cursor in the x-next-cursor header.
  • Errors: WhatsApp errors map to HTTP: 400 bad input, 403 not allowed (for example, not an admin), 404 not found, 409 conflict, 410 gone (expired invite), 502 WhatsApp failure, 503 socket not connected.
  • Idempotency: POST /v1/message/send (sync and async) accepts an Idempotency-Key header (alias x-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 with Idempotent-Replayed: true instead of sending twice. The same key with a different body returns 422; a retry while the first request is still running returns 409 with Retry-After: 1. 429 and 5xx responses 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/status stays empty, and no status.received event 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.

MethodPathDescription
GET/v1/sessionList WhatsApp sessions
POST/v1/sessionCreate WhatsApp session
POST/v1/session/startStart scoped WhatsApp session
POST/v1/session/restartRestart scoped WhatsApp session
GET/v1/session/uptimeGet scoped WhatsApp session uptime
GET/v1/session/statusGet scoped WhatsApp session status
GET/v1/session/profileGet scoped WhatsApp session own profile
POST/v1/session/endEnd scoped WhatsApp session
POST/v1/session/logoutLogout scoped WhatsApp session
GET/v1/session/:id/uptimeGet WhatsApp session uptime
POST/v1/session/:id/startStart WhatsApp session
POST/v1/session/:id/restartRestart WhatsApp session
GET/v1/session/:id/statusGet WhatsApp session status
GET/v1/session/:id/profileGet WhatsApp session own profile
POST/v1/session/:id/endEnd WhatsApp session
POST/v1/session/:id/logoutLogout WhatsApp session
GET/v1/session/:idGet WhatsApp session
PATCH/v1/session/:idUpdate WhatsApp session
DELETE/v1/session/:idDelete 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.

MethodPathDescription
GET/v1/messagesList messages
GET/v1/message/:messageIdGet message details
GET/v1/message/:messageId/mediaDownload message media
POST/v1/message/:messageId/media/refreshRefresh expired message media
GET/v1/message/:messageId/annotationsList message annotations
POST/v1/message/:messageId/annotationsCreate message annotation
POST/v1/message/sendSend message
POST/v1/message/send-asyncSend message asynchronously (deprecated)
POST/v1/message/editEdit message
POST/v1/message/deleteDelete message for everyone
POST/v1/message/readMark messages as read
POST/v1/message/starStar or unstar messages
POST/v1/message/historyFetch older message history
POST/v1/message/resendRequest placeholder message resend
POST/v1/mediaUpload outbound media
GET/v1/message/delivery-status/:runIdGet message delivery status
GET/v1/chats.recentList 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.

MethodPathDescription
GET/v1/chatsList chats
GET/v1/chats/:chatIdGet chat details
GET/v1/chats/:chatId/messagesList chat messages
GET/v1/chats/:chatId/notesList chat notes
POST/v1/chats/:chatId/notesCreate chat note
GET/v1/chats/:chatId/tagsList chat tags
POST/v1/chats/:chatId/tagsCreate chat tag
GET/v1/chats/:chatId/stateGet chat state
POST/v1/chats/:chatId/archiveArchive or unarchive chat
POST/v1/chats/:chatId/pinPin or unpin chat
POST/v1/chats/:chatId/muteMute or unmute chat
POST/v1/chats/:chatId/clearClear chat
DELETE/v1/chats/:chatIdDelete chat
POST/v1/chats/:chatId/messages/:messageId/delete-for-meDelete message for me
POST/v1/chats/:chatId/starStar or unstar chat messages
PUT/v1/chats/:chatId/disappearingSet disappearing-message duration

Contacts

MethodPathDescription
GET/v1/contactsList contacts
GET/v1/contacts/:jidGet contact
DELETE/v1/contacts/:jidRemove contact
GET/v1/contacts/:jid/profile-pictureGet profile picture URL
POST/v1/contacts/statusFetch contact about/status text
POST/v1/contacts/disappearing-durationFetch default disappearing-message duration
POST/v1/contacts/devicesList linked devices
POST/v1/contactsCreate or update contact
POST/v1/contacts/checkCheck if phone numbers exist on WhatsApp

Presence

MethodPathDescription
POST/v1/presenceSend presence update
POST/v1/presence/subscribeSubscribe to chat presence updates

Groups

Stored groups (GET) plus write APIs that call the Baileys group* methods.

MethodPathDescription
GET/v1/groupsList WhatsApp groups
GET/v1/groups/:idGet WhatsApp group details
GET/v1/groups/:id/logsList WhatsApp group audit logs
POST/v1/groupsCreate group
PUT/v1/groups/:id/member-labelSet my member label (max 30 chars)
POST/v1/groups/invites/acceptJoin by invite code or link
POST/v1/groups/invites/accept-v4Accept an invite message (messageId, or inviterJid + invite)
GET/v1/groups/invites/:codeGet invite info
POST/v1/groups/:id/leaveLeave
PUT/v1/groups/:id/subjectUpdate subject
PUT/v1/groups/:id/descriptionUpdate description (omit or empty clears)
PUT/v1/groups/:id/settingsannounce / locked settings
PUT/v1/groups/:id/ephemeralDisappearing-message timer (0, 24h, 7d, 90d)
PUT/v1/groups/:id/member-add-modeadmin_add or all_member_add
PUT/v1/groups/:id/join-approval-modeTurn join approval on or off
PUT/v1/groups/:id/pictureSet picture (url or base64)
DELETE/v1/groups/:id/pictureRemove picture
POST/v1/groups/:id/participantsAdd, remove, promote, or demote participants
GET/v1/groups/:id/join-requestsList pending join requests
POST/v1/groups/:id/join-requestsApprove or reject join requests
GET/v1/groups/:id/invite-codeGet invite code and link
POST/v1/groups/:id/invite-code/revokeRevoke invite code
POST/v1/groups/:id/invites/revoke-v4Revoke 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.

MethodPathDescription
GET/v1/v1/communitiesList communities (live)
POST/v1/v1/communitiesCreate community
GET/v1/v1/communities/:idGet community metadata (live)
GET/v1/v1/communities/:id/groupsList linked groups
POST/v1/v1/communities/:id/groupsCreate linked group
PUT/v1/v1/communities/:id/groups/:groupIdLink group to community
DELETE/v1/v1/communities/:id/groups/:groupIdUnlink group from community
POST/v1/communities/invites/acceptJoin by invite code or link
POST/v1/communities/invites/accept-v4Accept an invite message (messageId, or inviterJid + invite)
GET/v1/communities/invites/:codeGet invite info
POST/v1/communities/:id/leaveLeave
PUT/v1/communities/:id/subjectUpdate subject
PUT/v1/communities/:id/descriptionUpdate description (omit or empty clears)
PUT/v1/communities/:id/settingsannounce / locked settings
PUT/v1/communities/:id/ephemeralDisappearing-message timer (0, 24h, 7d, 90d)
PUT/v1/communities/:id/member-add-modeadmin_add or all_member_add
PUT/v1/communities/:id/join-approval-modeTurn join approval on or off
PUT/v1/communities/:id/pictureSet picture (url or base64)
DELETE/v1/communities/:id/pictureRemove picture
POST/v1/communities/:id/participantsAdd, remove, promote, or demote participants
GET/v1/communities/:id/join-requestsList pending join requests
POST/v1/communities/:id/join-requestsApprove or reject join requests
GET/v1/communities/:id/invite-codeGet invite code and link
POST/v1/communities/:id/invite-code/revokeRevoke invite code
POST/v1/communities/:id/invites/revoke-v4Revoke an invite message sent to invitedJid

Account

Profile, privacy, blocklist, account caps, and app-state sync for the linked account.

MethodPathDescription
GET/v1/account/profileGet my profile
PUT/v1/account/profile/nameUpdate my profile name
PUT/v1/account/profile/statusUpdate my about text
PUT/v1/account/profile/pictureUpdate my profile picture
DELETE/v1/account/profile/pictureRemove my profile picture
GET/v1/account/privacyGet privacy settings
PUT/v1/account/privacyUpdate privacy settings
PUT/v1/account/default-disappearingSet default disappearing messages
GET/v1/account/blocklistList blocked accounts
POST/v1/account/blocklistBlock an account
DELETE/v1/account/blocklist/:jidUnblock an account
GET/v1/account/reachout-timelockGet reachout timelock
GET/v1/account/message-capGet new-chat message cap
GET/v1/account/settingsGet stored account settings
GET/v1/account/botsList Meta AI bots
POST/v1/account/app-state/resyncResync app state
POST/v1/account/dirty-bits/cleanClean dirty bits

Labels

WhatsApp Business labels, synced from labels.edit and labels.association.

MethodPathDescription
GET/v1/labelsList labels
POST/v1/labelsCreate label
PUT/v1/labels/:labelIdUpdate label
DELETE/v1/labels/:labelIdDelete label
GET/v1/labels/:labelId/associationsList label associations
GET/v1/chats/:chatId/labelsList chat labels
PUT/v1/chats/:chatId/labels/:labelIdAdd label to chat
DELETE/v1/chats/:chatId/labels/:labelIdRemove label from chat
PUT/v1/chats/:chatId/messages/:messageId/labels/:labelIdAdd label to message
DELETE/v1/chats/:chatId/messages/:messageId/labels/:labelIdRemove label from message

Business

WhatsApp Business profile, catalog, orders, and quick replies. Catalog prices are sent unchanged; WhatsApp expects the amount × 1000.

MethodPathDescription
GET/v1/business/profileGet business profile
PUT/v1/business/profileUpdate business profile
PUT/v1/business/cover-photoSet cover photo
DELETE/v1/business/cover-photo/:idRemove cover photo
GET/v1/business/catalogList catalog products
GET/v1/business/collectionsList catalog collections
POST/v1/business/productsCreate product
POST/v1/business/products/deleteDelete products
PUT/v1/business/products/:productIdUpdate product
DELETE/v1/business/products/:productIdDelete product
GET/v1/business/orders/:orderIdGet order details
PUT/v1/business/quick-repliesCreate or edit quick reply
DELETE/v1/business/quick-replies/:timestampRemove quick reply

Status

Post statuses (stories) and read statuses posted by contacts.

MethodPathDescription
POST/v1/statusPost a status
GET/v1/statusList received statuses
GET/v1/status/settingsGet status settings
PUT/v1/status/settingsUpdate status settings

Newsletters

WhatsApp Channels. Ids are <digits>@newsletter; bare ids are accepted.

MethodPathDescription
GET/v1/newslettersList stored newsletters
POST/v1/newslettersCreate newsletter
GET/v1/newsletters/invites/:codeGet newsletter by invite code
GET/v1/newsletters/:idGet newsletter metadata
PUT/v1/newsletters/:idUpdate newsletter
DELETE/v1/newsletters/:idDelete newsletter
PUT/v1/newsletters/:id/nameRename newsletter
PUT/v1/newsletters/:id/descriptionUpdate newsletter description
PUT/v1/newsletters/:id/pictureSet newsletter picture
DELETE/v1/newsletters/:id/pictureRemove newsletter picture
POST/v1/newsletters/:id/followFollow newsletter
DELETE/v1/newsletters/:id/followUnfollow newsletter
POST/v1/newsletters/:id/muteMute newsletter
DELETE/v1/newsletters/:id/muteUnmute newsletter
GET/v1/newsletters/:id/subscribersGet subscriber count
GET/v1/newsletters/:id/admin-countGet admin count
GET/v1/newsletters/:id/messagesFetch newsletter posts
PUT/v1/newsletters/:id/messages/:serverId/reactionReact to a newsletter post
POST/v1/newsletters/:id/subscribe-updatesSubscribe to live updates
POST/v1/newsletters/:id/ownerTransfer ownership
POST/v1/newsletters/:id/demoteDemote admin

Calls

Call log built from the call event, call rejection, and call links.

MethodPathDescription
GET/v1/callsList calls
POST/v1/calls/linksCreate call link
GET/v1/calls/:callIdGet call
POST/v1/calls/:callId/rejectReject call

Events

Replayable feed of normalized events. See Webhook Events for every type and its data.

MethodPathDescription
GET/v1/eventsList normalized events

Webhooks

Webhook endpoints, delivery logs, and retries. These routes have no /v1 prefix.

MethodPathDescription
GET/webhooks/event-typesList webhook event types
POST/webhooksCreate webhook
GET/webhooksList webhooks
GET/webhooks/:webhookIdGet webhook details
PATCH/webhooks/:webhookIdUpdate webhook
DELETE/webhooks/:webhookIdDelete webhook
POST/webhooks/:webhookId/rotate-secretRotate webhook secret
GET/webhooks/:webhookId/logsList webhook delivery logs
POST/webhooks/:webhookId/logs/:deliveryId/retryRetry 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.

On this page