ZapZ WhatsApp API
v0.1.5Send WhatsApp messages and manage instances, contacts, groups and webhooks with ZapZ.
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
instances_list
List instances. (GET /v1/instances)
| Parameter | Type | Description |
|---|---|---|
externalId | string | |
status | string |
instances_create
Create an instance. (POST /v1/instances)
| Parameter | Type | Description |
|---|---|---|
name * | string | |
externalId | string | Your id for this instance (unique per account). Creating again with the same externalId returns the existing instance. |
metadata | object | Free-form JSON object (max 4 KB). |
instances_get
Get an instance. (GET /v1/instances/{id})
| Parameter | Type | Description |
|---|---|---|
instance_id * | string | Instance id (from instances_list) |
instances_update
Rename or update an instance. (PATCH /v1/instances/{id})
| Parameter | Type | Description |
|---|---|---|
instance_id * | string | Instance id (from instances_list) |
metadata | object | |
name | string |
instances_delete
Delete an instance. (DELETE /v1/instances/{id})
| Parameter | Type | Description |
|---|---|---|
instance_id * | string | Instance id (from instances_list) |
instances_status
Connection status. (GET /v1/instances/{id}/status)
| Parameter | Type | Description |
|---|---|---|
instance_id * | string | Instance id (from instances_list) |
instances_qr
QR code to pair the phone. (GET /v1/instances/{id}/qr)
| Parameter | Type | Description |
|---|---|---|
instance_id * | string | Instance id (from instances_list) |
instances_request_pairing_code
Pair with a code instead of QR. (POST /v1/instances/{id}/pairing-code)
| Parameter | Type | Description |
|---|---|---|
instance_id * | string | Instance id (from instances_list) |
phone * | string | Phone number of the WhatsApp account to link: country code + number, digits only. |
instances_clear_session
Log out and clear the session. (POST /v1/instances/{id}/session/clear)
| Parameter | Type | Description |
|---|---|---|
instance_id * | string | Instance id (from instances_list) |
contacts_list
List contacts. (GET /v1/instances/{id}/contacts)
| Parameter | Type | Description |
|---|---|---|
instance_id * | string | Instance id (from instances_list) |
contacts_update
Update a contact. (PATCH /v1/instances/{id}/contacts/{jid})
| Parameter | Type | Description |
|---|---|---|
instance_id * | string | Instance id (from instances_list) |
jid * | string | Contact JID, e.g. 5511999999999@s.whatsapp.net |
imgUrl | string | |
name | string | |
notify | string | |
status | string |
contacts_delete
Delete a contact. (DELETE /v1/instances/{id}/contacts/{jid})
| Parameter | Type | Description |
|---|---|---|
instance_id * | string | Instance id (from instances_list) |
jid * | string | Contact JID, e.g. 5511999999999@s.whatsapp.net |
contacts_check_phones
Check which numbers have WhatsApp. (POST /v1/instances/{id}/contacts/check-phones) Phone numbers: country code + area code + number, digits only (e.g. 5511999999999); groups use their JID (…@g.us).
| Parameter | Type | Description |
|---|---|---|
instance_id * | string | Instance id (from instances_list) |
phones * | array | Numbers with country code, digits only |
contacts_profile_picture
Profile picture URL. (GET /v1/instances/{id}/contacts/{jid}/profile-picture)
| Parameter | Type | Description |
|---|---|---|
instance_id * | string | Instance id (from instances_list) |
jid * | string | Contact JID, e.g. 5511999999999@s.whatsapp.net |
contacts_about
Contact "about" text. (GET /v1/instances/{id}/contacts/{jid}/status)
| Parameter | Type | Description |
|---|---|---|
instance_id * | string | Instance id (from instances_list) |
jid * | string | Contact JID, e.g. 5511999999999@s.whatsapp.net |
webhooks_list
List webhooks. (GET /v1/webhooks)
webhooks_create
Create a webhook. (POST /v1/webhooks)
| Parameter | Type | Description |
|---|---|---|
events * | array | |
secret * | string | |
url * | string | |
instance_id | string | null |
webhooks_update
Update a webhook. (PATCH /v1/webhooks/{id})
| Parameter | Type | Description |
|---|---|---|
webhook_id * | string | Webhook id (from webhooks_list) |
active | boolean | true also lifts an automatic pause |
events | array | |
instance_id | string | null | |
secret | string | |
url | string |
webhooks_delete
Delete a webhook. (DELETE /v1/webhooks/{id})
| Parameter | Type | Description |
|---|---|---|
webhook_id * | string | Webhook id (from webhooks_list) |
webhooks_deliveries
Recent deliveries. (GET /v1/webhooks/{id}/logs)
| Parameter | Type | Description |
|---|---|---|
webhook_id * | string | Webhook id (from webhooks_list) |
webhooks_test
Send a test event. (POST /v1/webhooks/{id}/test)
| Parameter | Type | Description |
|---|---|---|
webhook_id * | string | Webhook id (from webhooks_list) |
event | string | Event to simulate (default: the first subscribed event) |
messages_send_text
Send text. (POST /v1/instances/{id}/send/text) Phone numbers: country code + area code + number, digits only (e.g. 5511999999999); groups use their JID (…@g.us). A clientMessageId is generated when missing, so retrying never sends twice; pass your own to correlate webhooks.
| Parameter | Type | Description |
|---|---|---|
instance_id * | string | Instance id (from instances_list) |
text * | string | |
to * | string | |
clientMessageId | string | Optional id chosen by the client — idempotency key and correlation id in webhooks. |
linkPreview | boolean | Card with title/image for the first URL in the text (default true). |
mentions | array | Phones to @mention (country code + number). Put "@<phone>" in the text where it should appear. |
replyTo | string | WhatsApp id of a message (sent or received in the last 3 days) to reply to. |
messages_send_media
Send image, video, audio or document. (POST /v1/instances/{id}/send/media) Phone numbers: country code + area code + number, digits only (e.g. 5511999999999); groups use their JID (…@g.us). A clientMessageId is generated when missing, so retrying never sends twice; pass your own to correlate webhooks.
| Parameter | Type | Description |
|---|---|---|
instance_id * | string | Instance id (from instances_list) |
mediaType * | string | voice = voice note (PTT), gif = looping muted MP4, ptv = round video note |
mediaUrl * | string | Public http(s) URL. `mediaPath` is intentionally NOT accepted (it would read files on the engine host). |
to * | string | |
caption | string | |
clientMessageId | string | |
fileName | string | |
mentions | array | Phones to @mention (country code + number). Put "@<phone>" in the text where it should appear. |
replyTo | string | WhatsApp id of a message (sent or received in the last 3 days) to reply to. |
viewOnce | boolean | Disappears after opened once (image, video and voice). |
messages_send_list
Send a list menu. (POST /v1/instances/{id}/send/list) Phone numbers: country code + area code + number, digits only (e.g. 5511999999999); groups use their JID (…@g.us). A clientMessageId is generated when missing, so retrying never sends twice; pass your own to correlate webhooks.
| Parameter | Type | Description |
|---|---|---|
buttonText * | string | |
instance_id * | string | Instance id (from instances_list) |
sections * | array | |
text * | string | |
to * | string | |
clientMessageId | string | Optional id chosen by the client — idempotency key and correlation id in webhooks. |
footer | string | |
mentions | array | Phones to @mention (country code + number). Put "@<phone>" in the text where it should appear. |
replyTo | string | WhatsApp id of a message (sent or received in the last 3 days) to reply to. |
title | string |
messages_send_interactive
Send buttons. (POST /v1/instances/{id}/send/interactive) Phone numbers: country code + area code + number, digits only (e.g. 5511999999999); groups use their JID (…@g.us). A clientMessageId is generated when missing, so retrying never sends twice; pass your own to correlate webhooks.
| Parameter | Type | Description |
|---|---|---|
buttons * | array | |
instance_id * | string | Instance id (from instances_list) |
text * | string | |
to * | string | |
clientMessageId | string | Optional id chosen by the client — idempotency key and correlation id in webhooks. |
footer | string | |
image | object | |
mentions | array | Phones to @mention (country code + number). Put "@<phone>" in the text where it should appear. |
replyTo | string | WhatsApp id of a message (sent or received in the last 3 days) to reply to. |
subtitle | string | |
title | string | |
video | object |
messages_send_sticker
Send a sticker. (POST /v1/instances/{id}/send/sticker) Phone numbers: country code + area code + number, digits only (e.g. 5511999999999); groups use their JID (…@g.us). A clientMessageId is generated when missing, so retrying never sends twice; pass your own to correlate webhooks.
| Parameter | Type | Description |
|---|---|---|
instance_id * | string | Instance id (from instances_list) |
stickerUrl * | string | Public http(s) URL of a WebP sticker |
to * | string | |
clientMessageId | string | Optional id chosen by the client — idempotency key and correlation id in webhooks. |
mentions | array | Phones to @mention (country code + number). Put "@<phone>" in the text where it should appear. |
replyTo | string | WhatsApp id of a message (sent or received in the last 3 days) to reply to. |
messages_send_location
Send a location. (POST /v1/instances/{id}/send/location) Phone numbers: country code + area code + number, digits only (e.g. 5511999999999); groups use their JID (…@g.us). A clientMessageId is generated when missing, so retrying never sends twice; pass your own to correlate webhooks.
| Parameter | Type | Description |
|---|---|---|
instance_id * | string | Instance id (from instances_list) |
latitude * | number | |
longitude * | number | |
to * | string | |
address | string | |
caption | string | |
clientMessageId | string | Optional id chosen by the client — idempotency key and correlation id in webhooks. |
live | boolean | Live location (shown as "sharing live location") |
mentions | array | Phones to @mention (country code + number). Put "@<phone>" in the text where it should appear. |
name | string | |
replyTo | string | WhatsApp id of a message (sent or received in the last 3 days) to reply to. |
messages_send_contact
Send a contact card. (POST /v1/instances/{id}/send/contact) Phone numbers: country code + area code + number, digits only (e.g. 5511999999999); groups use their JID (…@g.us). A clientMessageId is generated when missing, so retrying never sends twice; pass your own to correlate webhooks.
| Parameter | Type | Description |
|---|---|---|
displayName * | string | |
instance_id * | string | Instance id (from instances_list) |
to * | string | |
vcard * | string | |
clientMessageId | string | Optional id chosen by the client — idempotency key and correlation id in webhooks. |
mentions | array | Phones to @mention (country code + number). Put "@<phone>" in the text where it should appear. |
replyTo | string | WhatsApp id of a message (sent or received in the last 3 days) to reply to. |
messages_send_reaction
React to a message. (POST /v1/instances/{id}/send/reaction) Phone numbers: country code + area code + number, digits only (e.g. 5511999999999); groups use their JID (…@g.us). A clientMessageId is generated when missing, so retrying never sends twice; pass your own to correlate webhooks.
| Parameter | Type | Description |
|---|---|---|
emoji * | string | Emoji; empty string removes the reaction |
instance_id * | string | Instance id (from instances_list) |
messageId * | string | WhatsApp id of the message being reacted to (externalId in our webhooks) |
to * | string | |
clientMessageId | string | Optional id chosen by the client — idempotency key and correlation id in webhooks. |
fromMe | boolean | true when reacting to a message sent by this number |
mentions | array | Phones to @mention (country code + number). Put "@<phone>" in the text where it should appear. |
replyTo | string | WhatsApp id of a message (sent or received in the last 3 days) to reply to. |
messages_send_poll
Send a poll. (POST /v1/instances/{id}/send/poll) Phone numbers: country code + area code + number, digits only (e.g. 5511999999999); groups use their JID (…@g.us). A clientMessageId is generated when missing, so retrying never sends twice; pass your own to correlate webhooks.
| Parameter | Type | Description |
|---|---|---|
instance_id * | string | Instance id (from instances_list) |
name * | string | |
options * | array | |
to * | string | |
clientMessageId | string | Optional id chosen by the client — idempotency key and correlation id in webhooks. |
mentions | array | Phones to @mention (country code + number). Put "@<phone>" in the text where it should appear. |
replyTo | string | WhatsApp id of a message (sent or received in the last 3 days) to reply to. |
selectableCount | number |
messages_send_pix
Send a Pix charge. (POST /v1/instances/{id}/send/pix) Phone numbers: country code + area code + number, digits only (e.g. 5511999999999); groups use their JID (…@g.us). A clientMessageId is generated when missing, so retrying never sends twice; pass your own to correlate webhooks.
| Parameter | Type | Description |
|---|---|---|
instance_id * | string | Instance id (from instances_list) |
key * | string | Pix key |
keyType * | string | EVP = random key |
merchantName * | string | Name shown as the receiver |
to * | string | |
amount | number | Amount in BRL shown on the card (optional) |
clientMessageId | string | Optional id chosen by the client — idempotency key and correlation id in webhooks. |
description | string | |
footer | string | |
mentions | array | Phones to @mention (country code + number). Put "@<phone>" in the text where it should appear. |
referenceId | string | |
replyTo | string | WhatsApp id of a message (sent or received in the last 3 days) to reply to. |
text | string | |
title | string |
messages_send_payment
Send a payment request. (POST /v1/instances/{id}/send/payment) Phone numbers: country code + area code + number, digits only (e.g. 5511999999999); groups use their JID (…@g.us). A clientMessageId is generated when missing, so retrying never sends twice; pass your own to correlate webhooks.
| Parameter | Type | Description |
|---|---|---|
instance_id * | string | Instance id (from instances_list) |
items * | array | |
referenceId * | string | |
to * | string | |
clientMessageId | string | Optional id chosen by the client — idempotency key and correlation id in webhooks. |
currency | string | |
mentions | array | Phones to @mention (country code + number). Put "@<phone>" in the text where it should appear. |
note | string | |
replyTo | string | WhatsApp id of a message (sent or received in the last 3 days) to reply to. |
text | string |
messages_send_carousel
Send a carousel. (POST /v1/instances/{id}/send/carousel) Phone numbers: country code + area code + number, digits only (e.g. 5511999999999); groups use their JID (…@g.us). A clientMessageId is generated when missing, so retrying never sends twice; pass your own to correlate webhooks.
| Parameter | Type | Description |
|---|---|---|
cards * | array | |
instance_id * | string | Instance id (from instances_list) |
text * | string | |
to * | string | |
clientMessageId | string | Optional id chosen by the client — idempotency key and correlation id in webhooks. |
footer | string | |
mentions | array | Phones to @mention (country code + number). Put "@<phone>" in the text where it should appear. |
replyTo | string | WhatsApp id of a message (sent or received in the last 3 days) to reply to. |
subtitle | string | |
title | string |
messages_send_album
Send an album. (POST /v1/instances/{id}/send/album) Phone numbers: country code + area code + number, digits only (e.g. 5511999999999); groups use their JID (…@g.us). A clientMessageId is generated when missing, so retrying never sends twice; pass your own to correlate webhooks.
| Parameter | Type | Description |
|---|---|---|
instance_id * | string | Instance id (from instances_list) |
items * | array | |
to * | string | |
clientMessageId | string | Optional id chosen by the client — idempotency key and correlation id in webhooks. |
mentions | array | Phones to @mention (country code + number). Put "@<phone>" in the text where it should appear. |
replyTo | string | WhatsApp id of a message (sent or received in the last 3 days) to reply to. |
messages_send_event
Send an event invite. (POST /v1/instances/{id}/send/event) Phone numbers: country code + area code + number, digits only (e.g. 5511999999999); groups use their JID (…@g.us). A clientMessageId is generated when missing, so retrying never sends twice; pass your own to correlate webhooks.
| Parameter | Type | Description |
|---|---|---|
instance_id * | string | Instance id (from instances_list) |
name * | string | |
startTime * | string | |
to * | string | |
call | string | Adds a WhatsApp call link to the event |
canceled | boolean | |
clientMessageId | string | Optional id chosen by the client — idempotency key and correlation id in webhooks. |
description | string | |
endTime | string | |
extraGuestsAllowed | boolean | |
location | object | |
mentions | array | Phones to @mention (country code + number). Put "@<phone>" in the text where it should appear. |
replyTo | string | WhatsApp id of a message (sent or received in the last 3 days) to reply to. |
messages_send_group_invite
Send a group invite card. (POST /v1/instances/{id}/send/group-invite) Phone numbers: country code + area code + number, digits only (e.g. 5511999999999); groups use their JID (…@g.us). A clientMessageId is generated when missing, so retrying never sends twice; pass your own to correlate webhooks.
| Parameter | Type | Description |
|---|---|---|
groupJid * | string | |
groupName * | string | |
instance_id * | string | Instance id (from instances_list) |
inviteCode * | string | |
to * | string | |
caption | string | |
clientMessageId | string | Optional id chosen by the client — idempotency key and correlation id in webhooks. |
expiration | number | Unix seconds; default 3 days |
mentions | array | Phones to @mention (country code + number). Put "@<phone>" in the text where it should appear. |
replyTo | string | WhatsApp id of a message (sent or received in the last 3 days) to reply to. |
messages_send_request_phone
Ask for the phone number. (POST /v1/instances/{id}/send/request-phone) Phone numbers: country code + area code + number, digits only (e.g. 5511999999999); groups use their JID (…@g.us). A clientMessageId is generated when missing, so retrying never sends twice; pass your own to correlate webhooks.
| Parameter | Type | Description |
|---|---|---|
instance_id * | string | Instance id (from instances_list) |
to * | string | |
clientMessageId | string | Optional id chosen by the client — idempotency key and correlation id in webhooks. |
mentions | array | Phones to @mention (country code + number). Put "@<phone>" in the text where it should appear. |
replyTo | string | WhatsApp id of a message (sent or received in the last 3 days) to reply to. |
messages_send_product
Send a catalog product. (POST /v1/instances/{id}/send/product) Phone numbers: country code + area code + number, digits only (e.g. 5511999999999); groups use their JID (…@g.us). A clientMessageId is generated when missing, so retrying never sends twice; pass your own to correlate webhooks.
| Parameter | Type | Description |
|---|---|---|
businessOwnerJid * | string | Phone of the WhatsApp Business account that owns the catalog |
imageUrl * | string | |
instance_id * | string | Instance id (from instances_list) |
price * | number | |
productId * | string | |
title * | string | |
to * | string | |
clientMessageId | string | Optional id chosen by the client — idempotency key and correlation id in webhooks. |
currency | string | |
description | string | |
footer | string | |
mentions | array | Phones to @mention (country code + number). Put "@<phone>" in the text where it should appear. |
replyTo | string | WhatsApp id of a message (sent or received in the last 3 days) to reply to. |
retailerId | string | |
salePrice | number | |
text | string | |
url | string |
messages_send_order
Send an order. (POST /v1/instances/{id}/send/order) Phone numbers: country code + area code + number, digits only (e.g. 5511999999999); groups use their JID (…@g.us). A clientMessageId is generated when missing, so retrying never sends twice; pass your own to correlate webhooks.
| Parameter | Type | Description |
|---|---|---|
instance_id * | string | Instance id (from instances_list) |
orderId * | string | |
sellerJid * | string | |
to * | string | |
token * | string | |
clientMessageId | string | Optional id chosen by the client — idempotency key and correlation id in webhooks. |
currency | string | |
itemCount | number | |
mentions | array | Phones to @mention (country code + number). Put "@<phone>" in the text where it should appear. |
replyTo | string | WhatsApp id of a message (sent or received in the last 3 days) to reply to. |
status | string | |
text | string | |
thumbnailUrl | string | |
title | string | |
total | number |
messages_send_catalog
Send the catalog link. (POST /v1/instances/{id}/send/catalog) Phone numbers: country code + area code + number, digits only (e.g. 5511999999999); groups use their JID (…@g.us). A clientMessageId is generated when missing, so retrying never sends twice; pass your own to correlate webhooks.
| Parameter | Type | Description |
|---|---|---|
instance_id * | string | Instance id (from instances_list) |
to * | string | |
clientMessageId | string | Optional id chosen by the client — idempotency key and correlation id in webhooks. |
collection | object | |
footer | string | |
imageUrl | string | |
mentions | array | Phones to @mention (country code + number). Put "@<phone>" in the text where it should appear. |
replyTo | string | WhatsApp id of a message (sent or received in the last 3 days) to reply to. |
shopId | string | Storefront id (shop) — or use collection |
subtitle | string | |
surface | number | |
text | string | |
title | string |
messages_forward
Forward a message. (POST /v1/instances/{id}/send/forward) A clientMessageId is generated when missing, so retrying never sends twice; pass your own to correlate webhooks.
| Parameter | Type | Description |
|---|---|---|
instance_id * | string | Instance id (from instances_list) |
messageId * | string | WhatsApp id of a message sent or received by this number in the last 3 days |
to * | string | |
clientMessageId | string | Optional id chosen by the client — idempotency key and correlation id in webhooks. |
mentions | array | Phones to @mention (country code + number). Put "@<phone>" in the text where it should appear. |
replyTo | string | WhatsApp id of a message (sent or received in the last 3 days) to reply to. |
messages_pin
Pin or unpin a message. (POST /v1/instances/{id}/send/pin) A clientMessageId is generated when missing, so retrying never sends twice; pass your own to correlate webhooks.
| Parameter | Type | Description |
|---|---|---|
instance_id * | string | Instance id (from instances_list) |
messageId * | string | |
to * | string | |
clientMessageId | string | Optional id chosen by the client — idempotency key and correlation id in webhooks. |
duration | string | |
mentions | array | Phones to @mention (country code + number). Put "@<phone>" in the text where it should appear. |
replyTo | string | WhatsApp id of a message (sent or received in the last 3 days) to reply to. |
unpin | boolean |
messages_send_status
Post a status (story). (POST /v1/instances/{id}/send/status) Phone numbers: country code + area code + number, digits only (e.g. 5511999999999); groups use their JID (…@g.us). A clientMessageId is generated when missing, so retrying never sends twice; pass your own to correlate webhooks.
| Parameter | Type | Description |
|---|---|---|
audience * | array | Phones that will see the status (WhatsApp only shows it to contacts who have your number saved) |
instance_id * | string | Instance id (from instances_list) |
type * | string | |
backgroundColor | string | Hex color for text statuses, e.g. #128C7E |
caption | string | |
clientMessageId | string | |
font | number | |
text | string | |
url | string |
messages_list
List sent messages. (GET /v1/instances/{id}/messages)
| Parameter | Type | Description |
|---|---|---|
instance_id * | string | Instance id (from instances_list) |
limit | integer |
messages_list_received
List received messages (newest first). (GET /v1/instances/{id}/messages/received)
| Parameter | Type | Description |
|---|---|---|
instance_id * | string | Instance id (from instances_list) |
before | string | Pagination cursor: pass nextBefore from the previous page |
chat | string | Only this conversation: phone number (digits) or group JID (…@g.us) |
limit | integer | |
q | string | Text search in the message content |
since | string | Only messages received at or after this time |
messages_get
Get a message and its status. (GET /v1/instances/{id}/messages/{messageId})
| Parameter | Type | Description |
|---|---|---|
instance_id * | string | Instance id (from instances_list) |
message_id * | string | Message id: the clientMessageId returned by a send, or the WhatsApp id |
messages_edit
Edit a sent message. (PATCH /v1/instances/{id}/messages/{messageId})
| Parameter | Type | Description |
|---|---|---|
instance_id * | string | Instance id (from instances_list) |
message_id * | string | Message id: the clientMessageId returned by a send, or the WhatsApp id |
text * | string |
messages_delete
Delete a message for everyone. (DELETE /v1/instances/{id}/messages/{messageId})
| Parameter | Type | Description |
|---|---|---|
instance_id * | string | Instance id (from instances_list) |
message_id * | string | Message id: the clientMessageId returned by a send, or the WhatsApp id |
messages_mark_read
Mark messages as read. (POST /v1/instances/{id}/messages/read)
| Parameter | Type | Description |
|---|---|---|
chatId * | string | Chat the messages belong to: phone (country code + number) or group jid. |
instance_id * | string | Instance id (from instances_list) |
messageIds * | array | WhatsApp ids of the received messages (`data.id` / `key.id` of the incoming webhook). |
participant | string | In groups: who sent the messages (phone). |
messages_send_presence
Typing / recording / online. (POST /v1/instances/{id}/presence) Phone numbers: country code + area code + number, digits only (e.g. 5511999999999); groups use their JID (…@g.us).
| Parameter | Type | Description |
|---|---|---|
instance_id * | string | Instance id (from instances_list) |
presence * | string | composing = "digitando…", recording = "gravando áudio…", paused = stop. |
to * | string |
instances_health
Sending health and anti-ban state. (GET /v1/instances/{id}/health)
| Parameter | Type | Description |
|---|---|---|
instance_id * | string | Instance id (from instances_list) |
instances_resume
Reconnect the session. (POST /v1/instances/{id}/resume)
| Parameter | Type | Description |
|---|---|---|
instance_id * | string | Instance id (from instances_list) |
sandbox_inbound
Simulate a received message. (POST /v1/sandbox/inbound) Only works with sk_test_ keys.
sandbox_event
Fire any webhook event. (POST /v1/sandbox/events) Only works with sk_test_ keys.
sandbox_set_message_status
Move a test message to a status. (POST /v1/sandbox/messages/{messageId}/status) Only works with sk_test_ keys.
| Parameter | Type | Description |
|---|---|---|
message_id * | string | Message id: the clientMessageId returned by a send, or the WhatsApp id |
groups_list
List groups. (GET /v1/instances/{id}/groups)
| Parameter | Type | Description |
|---|---|---|
instance_id * | string | Instance id (from instances_list) |
participants | boolean | Include the participant list |
groups_create
Create a group. (POST /v1/instances/{id}/groups)
| Parameter | Type | Description |
|---|---|---|
instance_id * | string | Instance id (from instances_list) |
subject * | string | |
participants | array | Phones (digits, with country code). Optional: the connected number is always the owner. |
groups_invite_info
Preview a group from an invite code. (GET /v1/instances/{id}/groups/invite-info)
| Parameter | Type | Description |
|---|---|---|
code * | string | |
instance_id * | string | Instance id (from instances_list) |
groups_join
Join with an invite code. (POST /v1/instances/{id}/groups/join)
| Parameter | Type | Description |
|---|---|---|
code * | string | Invite code or full link (https://chat.whatsapp.com/…) |
instance_id * | string | Instance id (from instances_list) |
groups_get
Get a group. (GET /v1/instances/{id}/groups/{groupId})
| Parameter | Type | Description |
|---|---|---|
group_id * | string | Group JID, e.g. 120363000000000000@g.us (from groups_list) |
instance_id * | string | Instance id (from instances_list) |
groups_update
Update subject, description, picture or settings. (PATCH /v1/instances/{id}/groups/{groupId})
| Parameter | Type | Description |
|---|---|---|
group_id * | string | Group JID, e.g. 120363000000000000@g.us (from groups_list) |
instance_id * | string | Instance id (from instances_list) |
announce | boolean | true = only admins send messages |
description | string | null | null or "" removes the description |
ephemeralSeconds | number | Disappearing messages: 0 (off), 86400 (24h), 604800 (7d) or 7776000 (90d) |
locked | boolean | true = only admins edit group info |
pictureUrl | string | Image (JPEG, PNG or WebP) for the group picture |
subject | string |
groups_update_participants
Add, remove, promote or demote. (POST /v1/instances/{id}/groups/{groupId}/participants)
| Parameter | Type | Description |
|---|---|---|
action * | string | |
group_id * | string | Group JID, e.g. 120363000000000000@g.us (from groups_list) |
instance_id * | string | Instance id (from instances_list) |
participants * | array |
groups_invite_link
Invite link. (GET /v1/instances/{id}/groups/{groupId}/invite)
| Parameter | Type | Description |
|---|---|---|
group_id * | string | Group JID, e.g. 120363000000000000@g.us (from groups_list) |
instance_id * | string | Instance id (from instances_list) |
groups_revoke_invite
Revoke the invite link. (POST /v1/instances/{id}/groups/{groupId}/invite/revoke)
| Parameter | Type | Description |
|---|---|---|
group_id * | string | Group JID, e.g. 120363000000000000@g.us (from groups_list) |
instance_id * | string | Instance id (from instances_list) |
groups_leave
Leave the group. (POST /v1/instances/{id}/groups/{groupId}/leave)
| Parameter | Type | Description |
|---|---|---|
group_id * | string | Group JID, e.g. 120363000000000000@g.us (from groups_list) |
instance_id * | string | Instance id (from instances_list) |