Send Chat Message

Send a chat message.

Send Chat Message to a channel

POST https://9zie5pgzja.execute-api.us-east-1.amazonaws.com/production

This endpoint allows you to send messages on behalf of a user to the channel.

Query Parameters

Name
Type
Description

message

string

This is the content of the message being sent.

chat_key

string

The chat key is a channel to whiich the message is sent to. Required in most circumstances.

sender_id

string

This is the user that is sending the message. In most cases it would be current user.

user_id

number

The ID of the user which is being sent the message to. Only required if chat_key is not available. Most common use case is to start a new conversation.

tenant

string

Tenant key who is requesting this api call.

api_key

string

API key for the tenant.

{ statusCode: 200, body: 'enqueued' }

Last updated

Was this helpful?