cURL
curl --request POST \ --url https://api.crunchz.app/api/send-message/pool \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "contact_id": "xxx@c.us", "pools": [ { "type": "text", "data": { "message": "Checkout this image, its hilarious!" } }, { "type": "image", "data": { "caption": "Do you think this is funny?", "file": { "mimeType": "image/png", "filename": "filename.png", "url": "https://avatars.githubusercontent.com/u/29356430?v=4" } } }, { "type": "text", "data": { "message": "Let me know your thoughts!" } } ] }'
{ "success": true, "message": "Failed to send pool message", "pools": "<string>" }
Send multiple messages in a single request using a Global token for efficient batch messaging operations.
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Bearer <token>
<token>
The response is of type object.
object
Was this page helpful?