Skip to main content
GET
Get messages from a chat
Required scope
  • read:chat — Read chat conversations, messages, and chat-related data. This includes viewing chat lists and message history.

Authorizations

Authorization
string
header
required

OAuth 2.0 access token, presented as a JWT bearer token in the Authorization header. Obtain a token via the authorization-code flow; the scopes granted to the token determine which operations it may call.

Headers

X-Fanvue-API-Version
string
default:2025-06-26
required

API version to use for the request

Example:

"2025-06-26"

Path Parameters

userUuid
string<uuid>
required

Query Parameters

page
integer
default:1

Page number to retrieve (starts from 1)

Required range: x >= 1
size
integer
default:15

Number of items to return per page (1-50, default: 15)

Required range: 1 <= x <= 50
markAsRead
enum<string>
default:true

Whether to mark the chat as read after retrieving messages

Available options:
true,
false
beforeMessageUuid
string<uuid>

Anchor cursor: return messages older than this message UUID. Takes precedence over page.

startDate
string<date-time>

Only return messages published after this ISO 8601 datetime (with optional timezone offset, e.g. 2024-10-20T00:00:00+01:00 or 2024-10-20T00:00:00Z). Exclusive lower bound. Combines with page/size.

endDate
string<date-time>

Only return messages published before this ISO 8601 datetime (with optional timezone offset, e.g. 2024-10-25T00:00:00+01:00 or 2024-10-25T00:00:00Z). Non-inclusive - messages before this date are included. Combines with page/size.

Response

List of messages

data
object[]
required

Array of messages in the conversation

pagination
object
required

Pagination information