Delivery · getWhatsApp
WhatsApp status
GET /v1/whatsapp
Whether this server has WhatsApp set up, and the member's connected WhatsApp number, if any.
- Who may call it
- any signed-in human
- Server
- https://api.logu.dev
Example#
curl -s "https://api.logu.dev/v1/whatsapp" \
-H "Authorization: Bearer $LOGU_SESSION_TOKEN"
Responses#
200
The member's WhatsApp status.
{
"available": true,
"connected": true,
"number": "+5511987654321"
}
Response fields
| Field | Type | Required | Notes |
|---|---|---|---|
available | boolean | required | |
connected | boolean | required | |
number | string | null | required |
Errors#
Every error is {"error":{"code","message","hint","docUrl","requestId"}}: branch on code. See Errors.
| Status | Code | Meaning |
|---|---|---|
| 401 | unauthorized | No credentials, or the API key or session is invalid or revoked. |
| 403 | forbidden | The caller is authenticated but may not do this (wrong role, or an API key on a human-only endpoint). |
| 500 | internal_error | Something went wrong on Logu's side. |