dambel

دمبل

shevron
ورود | ثبت نام

API Docs / chats / messages / index



GET /api/v1/chats/{chat-id}/messages

Retrieves a list of messages for a specific chat, with support for filtering and pagination.


Permissions

PermissionDescription
chat_messages.viewView messages in a chat

URL Parameters

NameTypeRequiredDescriptionExample
chat-idintYesID of the chat123

Query Parameters

NameTypeRequiredDescriptionExample
searchstringNoSearch text in messages"hello"
user_idstringNoFilter by user ID(s), comma-separated"1,2"

Request Example

GET /api/v1/chats/123/messages?search=hello&user_id=1,2
Authorization: Bearer {token}

Response

200 OK

Returns a paginated list of chat message resources.

Example

{
  "data": [ { /* chat message resource */ }, ... ],
  "links": { /* pagination data */ },
  "meta": { /* pagination data */ }
}

For a full schema, see Chat Message Resource.


Error Responses

StatusDescriptionReference
401UnauthorizedAuthentication error
403Forbidden (no permission)Permission error
404Not foundNot-found error
footer wave
logo

دمبل، دنیای هوشمند ورزش و تغذیه

LinkedinInstagramXYoutube