Admin Users

Get user chat messages with cursor-based pagination

Retrieve messages for a specific chat with cursor-based pagination, including attachments with CDN URLs

get/admin/users/{id}/chats/{chatId}/messages

Path parameters

idstring required
Example:user-uuid-here

User ID

chatIdstring required
Example:chat-uuid-here

Chat ID

Query parameters

cursorstring
Example:base64-encoded-cursor

Cursor for pagination

limitnumber
Example:20

Number of messages to retrieve (default: 20, max: 100)

Response

User chat messages retrieved successfully

userIdstring required

User ID

chatIdstring required

Chat ID

nextCursorstring

Next cursor for pagination

prevCursorstring

Previous cursor for pagination

hasNextboolean required

Whether there are more messages to load

hasPrevboolean required

Whether there are previous messages to load

Example response

{
  "userId": "user-uuid-here",
  "chatId": "chat-uuid-here",
  "nextCursor": "base64-encoded-cursor",
  "prevCursor": "base64-encoded-cursor",
  "hasNext": true
}

Changes

No recorded changes to this endpoint across all 1 revision of this API.