Message history
Returns an array of all messages for a chat (with newest first)
Try this request in your browser
URL
https://api.natterly.com/api/v1/chats/messages
Access
Must be authenticated as a user.
If not authorised, a MustBeAuthenticated 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 the given UUID |
|
Response Data
This action will return an array of message structures.
You'll receive all attributes for this structure (basic and extended attributes).