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

Authorizations

Authorization
string
header
required

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

Body

application/json
contact_id
string
required

Contact ID.

Example:

"xxx@c.us"

pools
object[]
required

Pools.

Example:
[
{
"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!" }
}
]

Response

success
boolean
required
message
string
required
Example:

"Failed to send pool message"

pools
string
required