Messages

Send a message to Meta AI

Sends a text message to the Meta AI assistant in WhatsApp. Leave `number` empty for a 1:1 chat with Meta AI, or pass a group JID to invoke it in a group. The reply streams back as `message.received` webhooks flagged `is_meta_ai` (the final chunk has `is_final: true`), or set `sync: true` to block and return the assembled answer in `answer`. Text only; works on personal accounts where Meta AI is available.

POST
/send/meta-ai

Sends a text message to the Meta AI assistant in WhatsApp. Leave number empty for a 1:1 chat with Meta AI, or pass a group JID to invoke it in a group. The reply streams back as message.received webhooks flagged is_meta_ai (the final chunk has is_final: true), or set sync: true to block and return the assembled answer in answer. Text only; works on personal accounts where Meta AI is available.

Authorization

bearerAuth
AuthorizationBearer <token>

Per-user API token (UUID v4) sent as Authorization: Bearer <token>. Identifies the tenant and user.

In: header

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

application/json

application/json

application/json

application/json

curl -X POST "https://example.com/send/meta-ai" \  -H "Content-Type: application/json" \  -d '{    "text": "What\'s the capital of France?",    "sync": true,    "syncTimeoutSec": 30  }'
{  "success": true,  "message_id": "3EB0XXXX1234ABCD",  "zaapId": "3EB0XXXX1234ABCD",  "timestamp": "2026-06-19T14:30:00Z",  "status": "answered",  "chat_jid": "13135550002@s.whatsapp.net",  "is_meta_ai": true,  "answer": "The capital of France is Paris.",  "answered": true}
{  "success": false,  "error": "validation failed",  "error_code": "VALIDATION_ERROR",  "timestamp": "2026-06-15T12:00:00Z"}
{  "success": false,  "error": "validation failed",  "error_code": "VALIDATION_ERROR",  "timestamp": "2026-06-15T12:00:00Z"}
{  "success": false,  "error": "validation failed",  "error_code": "VALIDATION_ERROR",  "timestamp": "2026-06-15T12:00:00Z"}
{  "success": false,  "error": "validation failed",  "error_code": "VALIDATION_ERROR",  "timestamp": "2026-06-15T12:00:00Z"}