Konverse AI Developer Hub
  • Konverse AI Developer Hub
  • Getting Started
    • Authentication
    • Errors
    • Rate Limit
  • Webhooks
    • Webhook Endpoints
  • Platform
    • Embedded Functions
      • Send Text Message
      • Send Quick Reply
      • Set Variables
      • Send Choice
      • Send Cards
      • Stop Propagation
      • Query a Dataset
      • Jump To Story
      • Query a Google Sheet
    • Datasets
    • Bot Webhooks
  • Messaging Channels
    • Introduction to Channels
    • Web Chat
    • Facebook Messenger
    • WhatsApp
      • Send WhatsApp Notifications
      • Send Session Message
    • Line
  • App Integration
    • Android App Integration
Powered by GitBook
On this page

Was this helpful?

  1. Messaging Channels
  2. WhatsApp

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.

PreviousSend WhatsApp NotificationsNextLine

Last updated 3 years ago

Was this helpful?