cURL
curl --request POST \ --url https://api.example.com/messages \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data ' { "type": "text", "to": "<string>", "text": "<string>" } '
{ "data": { "message": { "id": "68505cb92a11ea971d9df894", "providerId": "wamid.HBgLMTIzNDU2Nzg5FQIAERgSMzQ1Q0Y5QkE=", "contact": "68505cb92a11ea971d9df894", "content": "Hello! How can I help?", "role": "assistant", "status": "unsent", "error": "Rate limit exceeded" } } }
Use Authorization: Bearer <api_key>.
Authorization: Bearer <api_key>
text
Conversation/contact ID.
1
Message text.
Message sent
Show child attributes