Messaging

Send a message in a chat

Changed on

Send a message to the given chat with the possibility to link some attachments.

post/api/v1/chats/{chat_id}/messages

Request

Path parameters

chat_idstring required

The id of the chat where to send the message.

Request body multipart/form-data

textstring

WhatsApp groups: insert {{0}} to mention the corresponding entry in mentions.

account_idstring

An account_id can be specified to prevent the user from sending messages in chats not belonging to the account.

thread_idstring

Optional and for Slack’s messaging only. The id of the thread to send the message in.

quote_idstring

The id of a message to quote. The id of the message to quote / reply to.

voice_messagestring binary

(Linkedin | WhatsApp) A file to send as voice message. WhatsApp: prefer .mp3 or .m4a. Linkedin: prefer .m4a. Instagram: use the attachment field and prefer .m4a. Telegram: use the attachment field.

video_messagestring binary

(Linkedin) A file to send as video message. WhatsApp: use attachments field.

attachmentsstring[]
typing_durationstring

(WhatsApp only) Set a duration in milliseconds to simulate a typing status for that duration before sending the message.

Response

Created. Message sent successfully.

object'MessageSent' required

Changes

    • warning

      added the new errors/connection_limit_reached enum value to the response property for the response status

    • warning

      added the new errors/not_supported_by_provider enum value to the response property for the response status

    • warning

      added the new errors/password_reset_required enum value to the response property for the response status

    • info

      added the new optional request property

    • info

      added the optional property to the response with the status