Docs
reference
Send a message

Send a message

Send encrypted messaged either W2W or S2W.

Send a message

This endpoint allows you to send a new message to one of your conversations.

Required attributes

  • Name
    conversation_id
    Type
    string
    Description

    Unique identifier for the conversation the message belongs to.

  • Name
    message
    Type
    string
    Description

    The message content.

Optional attributes

  • Name
    attachments
    Type
    array
    Description

    An array of attachment objects associated with the message.

Request

POST
/v1/messages
import ApiClient from '@example/protocol-api'
 
const client = new ApiClient(token)
 
await client.messages.send({
  conversation_id: 'xgQQXg3hrtjh7AvZ',
  message: 'You’re what the French call ‘les incompetents.’',
})