Send Session Message

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>"
      }
}'

Supported Mime-Types

Media
Supported Content-Types

audio

audio/aac, audio/mp4, audio/amr, audio/mpeg, audio/ogg; codecs=opus

Note: The base audio/ogg type is not supported.

document

Any valid MIME-type.

image

image/jpeg, image/png

sticker

image/webp

video

video/mp4, video/3gpp

Notes:

  • Only H.264 video codec and AAC audio codec is supported.

  • Only videos with a single audio stream are supported.

Last updated