Send a message

Sends a new message to an existing chat

Try this request in your browser

/api/ /chats_for_sessions/send_message

Headers

X-Session-ID

Parameters

chat String
text String
file_data String
file_name String
file_type String
formatting String

The request output will be shown here...

URL

https://api.natterly.com/api/v1/chats_for_sessions/send_message

Access

Must be authenticated as a session If not authorised, a MustBeAuthenticatedAsSession error will be returned.

Parameters

Parameter Type Default

chat Required

The UUID of the chat

String null

text

The message text

String null

file_data

Base64 encoded data for a file to add with this message

String null

file_name

A file name to associated with the uploaded file

String null

file_type

The content type for an uploaded file

String null

formatting

The formatting type for the message

String null

Errors

Error Attributes

ChatNotFound

No chat found with given UUID

ValidationError

A validation error occurred while adding the message

  • error

    The details of the errors

ChatClosed

The chat this message is associated with has been closed

Response Data

This action will return a message structure.

You'll receive just the basic attributes for this structure. No expansions are provided.