Check WhatsApp linking
See whether WhatsApp is linked yet: connected, waiting_for_code, linking, code_expired, passkey_needed (needs a computer browser with the WhatSync extension; the result has the link), reconnecting (linked and coming back on its own; nothing to do), paused (linked; the user reconnects it from the dashboard link without a new code), logged_out or not_linked.
- Key permissions
- Read chats and messages
- Authentication
Authorization: Bearer $WHATSYNC_API_KEY
How keys work
Body parameters
fromNumberstringoptionalWhich of the account's WhatsApp numbers acts, with country code, as listed in whatsapp_numbers from get_account_context. Only matters when the account has several numbers. Omit for the account's first number.
Response
HTTP 200 returns this tool's JSON directly, without an MCP content wrapper. Optional provider fields may be absent or null; check pagination and coverage before treating a page as complete.
Every response includes X-Request-Id. Errors use the shared error format and retry rules.
Schemas
Input JSON Schema
{
"type": "object",
"properties": {
"fromNumber": {
"type": "string",
"minLength": 7,
"maxLength": 30,
"description": "Which of the account's WhatsApp numbers acts, with country code, as listed in whatsapp_numbers from get_account_context. Only matters when the account has several numbers. Omit for the account's first number."
}
},
"additionalProperties": false,
"$schema": "http://json-schema.org/draft-07/schema#"
}Response JSON Schema
{
"type": "object",
"properties": {
"status": {
"type": "string",
"enum": [
"connected",
"waiting_for_code",
"linking",
"code_expired",
"passkey_needed",
"reconnecting",
"paused",
"logged_out",
"not_linked"
]
},
"phone_number": {
"type": [
"string",
"null"
]
},
"pairing_code": {
"type": "string"
},
"expires_at": {
"type": [
"string",
"null"
]
},
"dashboard_link": {
"type": "string"
},
"note": {
"type": "string"
}
},
"required": [],
"additionalProperties": true
}