curl --request POST \
--url https://api.zapkey.io/message/sendText/{instance} \
--header 'Content-Type: application/json' \
--header 'apikey: <api-key>' \
--data '
{
"number": "<string>",
"textMessage": {
"text": "<string>"
},
"options": {
"delay": 123,
"presence": "composing",
"linkPreview": true,
"quoted": {
"key": {
"remoteJid": "<string>",
"fromMe": true,
"id": "<string>",
"participant": "<string>"
},
"message": {
"conversation": "<string>"
}
},
"mentions": {
"everyOne": true,
"mentioned": [
"<string>"
]
}
}
}
'{
"key": {
"remoteJid": "[email protected]",
"fromMe": true,
"id": "BAE594145F4C59B4"
},
"message": {
"extendedTextMessage": {
"text": "Olá!"
}
},
"messageTimestamp": "1717689097",
"status": "PENDING"
}Send plain text message
curl --request POST \
--url https://api.zapkey.io/message/sendText/{instance} \
--header 'Content-Type: application/json' \
--header 'apikey: <api-key>' \
--data '
{
"number": "<string>",
"textMessage": {
"text": "<string>"
},
"options": {
"delay": 123,
"presence": "composing",
"linkPreview": true,
"quoted": {
"key": {
"remoteJid": "<string>",
"fromMe": true,
"id": "<string>",
"participant": "<string>"
},
"message": {
"conversation": "<string>"
}
},
"mentions": {
"everyOne": true,
"mentioned": [
"<string>"
]
}
}
}
'{
"key": {
"remoteJid": "[email protected]",
"fromMe": true,
"id": "BAE594145F4C59B4"
},
"message": {
"extendedTextMessage": {
"text": "Olá!"
}
},
"messageTimestamp": "1717689097",
"status": "PENDING"
}Your authorization key header
ID of the instance to connect
Number to receive the message (with country code)
Show child attributes
Presence time in milliseconds before sending message
Presence type to show
composing, recording Shows a preview of the target website if there's a link within the message
Show child attributes
Created
The timestamp of the message.
The status of the message.