POST
/
send-message
/
pool
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>"
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json

Response

200
application/json

The response is of type object.