POST
/
send-message
/
image
curl --request POST \
  --url https://api.crunchz.app/api/send-message/image \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "contact_id": "xxx@c.us",
  "caption": "Checkout this image, its hilarious!",
  "file": {
    "mimeType": "image/png",
    "filename": "filename.png",
    "url": "https://avatars.githubusercontent.com/u/29356430?v=4"
  }
}'
{
  "success": true,
  "message": "<string>",
  "data": {
    "status": "<string>",
    "message": {
      "caption": "<string>",
      "image": "<string>",
      "details": {
        "mimetype": "<string>",
        "height": "<string>",
        "width": "<string>",
        "mediaKey": "<string>",
        "fileSha256": "<string>",
        "timestamp": "<string>"
      }
    },
    "timestamp": "<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

ImageMessageResource

The response is of type object.