POST
/
send-message
/
text
cURL
curl --request POST \
  --url https://api.crunchz.app/api/send-message/text \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "contact_id": "xxx@c.us",
  "message": "Hello world",
  "reply_to": "message_id_here",
  "linkPreview": "true",
  "linkPreviewHighQuality": "true"
}'
{
  "success": true,
  "message": "<string>",
  "data": {
    "status": "<string>",
    "message": "<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
contact_id
string
required

Contact ID.

Required string length: 10 - 50
Example:

"xxx@c.us"

message
string
required

Message.

Required string length: 1 - 4096
Example:

"Hello world"

reply_to
string

Message ID to reply to (optional)

Required string length: 1 - 100
Example:

"message_id_here"

Enable or disable link preview (default: true)

Example:

"true"

Sending high quality link preview (default: true)

Example:

"true"

Response

TextMessageResource

success
boolean
required

The success status of response.

message
string
required

The message of response.

data
object
required