در حال بارگذاری…
Retrieves a list of messages for a specific chat, with support for filtering and pagination.
| Permission | Description |
|---|---|
chat_messages.view | View messages in a chat |
| Name | Type | Required | Description | Example |
|---|---|---|---|---|
| chat-id | int | Yes | ID of the chat | 123 |
| Name | Type | Required | Description | Example |
|---|---|---|---|---|
| search | string | No | Search text in messages | "hello" |
| user_id | string | No | Filter by user ID(s), comma-separated | "1,2" |
GET /api/v1/chats/123/messages?search=hello&user_id=1,2
Authorization: Bearer {token}
Returns a paginated list of chat message resources.
{
"data": [ { /* chat message resource */ }, ... ],
"links": { /* pagination data */ },
"meta": { /* pagination data */ }
}
For a full schema, see Chat Message Resource.
| Status | Description | Reference |
|---|---|---|
| 401 | Unauthorized | Authentication error |
| 403 | Forbidden (no permission) | Permission error |
| 404 | Not found | Not-found error |