Skip to main content
POST
/
send-message
/
voice
cURL
curl --request POST \
  --url https://api.crunchz.app/api/send-message/voice \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "contact_id": "[email protected]",
  "audioUrl": "https://github.com/CrunchzApp/asset-example/raw/main/examples/julie-voice.opus",
  "reply_to": "message_id_here"
}
'
{
  "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
audioUrl
string<uri>
required

Audio URL ( can be .opus or .mp3 )

Maximum string length: 2048
Example:

"https://github.com/CrunchzApp/asset-example/raw/main/examples/julie-voice.opus"

reply_to
string

Message ID to reply to (optional)

Required string length: 1 - 100
Example:

"message_id_here"

Response

AudioMessageResource

success
boolean
required

The success status of response.

message
string
required

The message of response.

data
object
required