Message history

Returns an array of all messages for a chat (with newest first)

Try this request in your browser

/api/ /chats_for_sessions/messages

Headers

X-Session-ID

Parameters

chat String
after String
before String
page Integer
per_page Integer

The request output will be shown here...

URL

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

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

after

Return only messages after the given message

String null

before

Return only messages before the given message

String null

page

The page number

Integer 1

per_page

The number of items to return per page

Integer 30

Errors

Error Attributes

ChatNotFound

No chat found with given UUID

Response Data

This action will return an array of message structures.

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