Send Document Message
curl --request POST \
--url https://api.example.com/api/v1/messages/send/document \
--header 'Content-Type: application/json' \
--data '
{
"phone_number": "6281234567890",
"whatsapp_account_id": "c053d8ef-6c19-4ecb-9cc5-a4a64be79d92"
}
'import requests
url = "https://api.example.com/api/v1/messages/send/document"
payload = {
"phone_number": "6281234567890",
"whatsapp_account_id": "c053d8ef-6c19-4ecb-9cc5-a4a64be79d92"
}
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({
phone_number: '6281234567890',
whatsapp_account_id: 'c053d8ef-6c19-4ecb-9cc5-a4a64be79d92'
})
};
fetch('https://api.example.com/api/v1/messages/send/document', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"success": true,
"message_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"status": "<string>",
"run_id": "<string>"
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>",
"input": "<unknown>",
"ctx": {}
}
]
}messages
Send Document Message
Send a document/file message.
POST
/
api
/
v1
/
messages
/
send
/
document
Send Document Message
curl --request POST \
--url https://api.example.com/api/v1/messages/send/document \
--header 'Content-Type: application/json' \
--data '
{
"phone_number": "6281234567890",
"whatsapp_account_id": "c053d8ef-6c19-4ecb-9cc5-a4a64be79d92"
}
'import requests
url = "https://api.example.com/api/v1/messages/send/document"
payload = {
"phone_number": "6281234567890",
"whatsapp_account_id": "c053d8ef-6c19-4ecb-9cc5-a4a64be79d92"
}
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({
phone_number: '6281234567890',
whatsapp_account_id: 'c053d8ef-6c19-4ecb-9cc5-a4a64be79d92'
})
};
fetch('https://api.example.com/api/v1/messages/send/document', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"success": true,
"message_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"status": "<string>",
"run_id": "<string>"
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>",
"input": "<unknown>",
"ctx": {}
}
]
}Body
application/json
Request to send a direct message.