Hello!
Mime is required if the attachment has a TYPE_FILE.
It is possible to send an audio file, you can view it in the example curl request I wrote below.
curl --location 'https://beta.promptchat.com/api/integrations/send-message' \
--header 'Accept: application/json' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer I5ESNP8aGVWFEhhpRmls3aNmmjSDqM3vootoRR5nB6R6v0iP8m64SemO3DXUGwjS' \
--data '{
"phone": "380963554316",
"text": "Test sms from Postman",
"attachment": {
"type": "1",
"mime": "1",
"url": "https://beta.promptchat.com/storage/chats/GgFkzi7xhDYR7i7f.mp3"
}
}'
If you need to download a file before listening, this is a WhatsApp setting.
These settings are shown in the screenshot:
Also information about send message API: