To send a session message directly triggered from backend can be sent using the following API
curl --location --request POST 'https://gateway.konverse.ai/ironman/api/v1/whatsapp/sessionMessage/text' \
--header 'x-app-id: <your app id>' \
--header 'x-api-key: <your app key>' \
--header 'Content-Type: application/json' \
--data-raw '{
"to": "91XXXXXXXX",
"message": {
"text": "<message>"
}
}'
To send a file/attachment in a session directly triggered from backend can be sent using the following API
curl --location --request POST 'https://gateway.konverse.ai/ironman/api/v1/whatsapp/sessionMessage/attachment' \
--header 'x-app-id: <your app id>' \
--header 'x-api-key: <your app key>' \
--header 'Content-Type: application/json' \
--data-raw '{
"to": "91XXXXXXXX",
"attachment": {
"url": "<https://link-url-file>",
"mime": "<mimetypes>",
"filename": "<name of your file>",
"caption": "Caption for your file>"
}
}'