curl --request GET \
--url https://api.onlyx.ai/v1/conversations/{conversationId}/messages \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.onlyx.ai/v1/conversations/{conversationId}/messages"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.onlyx.ai/v1/conversations/{conversationId}/messages', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));List messages
Returns the conversation’s messages, oldest to newest, the newest page first. To read further back, pass the id of the oldest message you have as before; hasMore tells you whether older messages exist. Outgoing messages carry delivery, and paid messages show whether the fan unlocked them. A before id that is not a message of this conversation is 404 MESSAGE_NOT_FOUND.
Scope: requires inbox:read.
Rate limit: the general limit of 120 requests per 60 seconds per credential.
curl --request GET \
--url https://api.onlyx.ai/v1/conversations/{conversationId}/messages \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.onlyx.ai/v1/conversations/{conversationId}/messages"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.onlyx.ai/v1/conversations/{conversationId}/messages', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));Authorizations
An API key (onx_sk_…) created in OnlyX under Settings → API & MCP, or an OAuth access token (onx_at_…) issued to a connected app. Send it as Authorization: Bearer <credential>. API keys may also be sent as X-API-Key: <key>.
Path Parameters
The conversation id (cnv_…), from GET /v1/conversations.
40Query Parameters
A message id: return only messages older than it.
40Page size, 1-100. Default 25.
1 <= x <= 100Response
A page of messages, oldest to newest.