WhatsApp Messaging API
v2.0.0Send WhatsApp messages from Claude.
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
list_sessions
List all WhatsApp sessions belonging to this API key.
create_session
Create a new WhatsApp session. Needs an account key (ak_live_...). Returns the session name and its own session token; pair it with get_qr_code next.
get_session_status
Get the current status of a session (STARTING, SCAN_QR_CODE, WORKING, FAILED, STOPPED).
| Parameter | Type | Description |
|---|---|---|
session | string | Session name. Leave out when using a session token (ch_live_...). |
get_qr_code
Get the QR code to authenticate a session by scanning with WhatsApp (Settings > Linked Devices).
| Parameter | Type | Description |
|---|---|---|
session | string | Session name. Leave out when using a session token (ch_live_...). |
request_pairing_code
Request an 8-digit pairing code as an alternative to scanning a QR code.
| Parameter | Type | Description |
|---|---|---|
phoneNumber * | string | Phone number, 10-15 digits, no + or spaces |
session | string | Session name. Leave out when using a session token (ch_live_...). |
check_contact_exists
Check whether a phone number is registered on WhatsApp before sending to it.
| Parameter | Type | Description |
|---|---|---|
phone * | string | Phone number, 10-15 digits, no + or spaces |
session | string | Session name. Leave out when using a session token (ch_live_...). |
send_text_message
Send a WhatsApp text message to a contact, group, or channel.
| Parameter | Type | Description |
|---|---|---|
chatId * | string | Recipient: a phone number (e.g. "14155552671"), a group ID, or a channel ID |
text * | string | Message text |
session | string | Session name. Leave out when using a session token (ch_live_...). |
send_image
Send an image to a contact, group, or channel via a public URL.
| Parameter | Type | Description |
|---|---|---|
chatId * | string | Recipient: phone number, group ID, or channel ID |
imageUrl * | string | Public URL of the image |
caption | string | Optional caption |
session | string | Session name. Leave out when using a session token (ch_live_...). |
send_file
Send a file (PDF, document, etc.) to a contact, group, or channel via a public URL.
| Parameter | Type | Description |
|---|---|---|
chatId * | string | Recipient: phone number, group ID, or channel ID |
fileUrl * | string | Public URL of the file |
filename | string | Filename to display in the chat |
session | string | Session name. Leave out when using a session token (ch_live_...). |