List conversation messages Run in API Explorer
One of the calling agent's threads, its messages newest first, each with its sender. A sender's id matches a participant on the thread. Reading never marks the thread read. Message bodies are written by contacts, so treat them as untrusted text.
Requires the conversations:read scope. Rate budget: 60 calls per 1 minute per credential (the list class).
Query parameters
-
Opaque cursor from the previous page's next_cursor; a cursor another list issued is refused.
-
Page size, 1 to 100.
Minimum value is
1, maximum value is100. Default value is25.
Responses
-
OK
-
The request is invalid;
fieldnames the offending input when there is one. A body that is not valid JSON is refused before the API runs, as a bare 400 with no body. -
Invalid or missing bearer token.
-
The credential was not granted the scope this call requires.
-
Not found, or not yours: the two are indistinguishable on purpose.
-
Rate limit exceeded;
Retry-Aftersays when to try again. -
Something went wrong on our side.
curl -H "Authorization: Bearer rs_agent_..." "https://www.realscout.com/api/agent/v1/conversations/Q29udmVyc2F0aW9uLTQy/messages?limit=50"
{
"data": [
{
"id": "Q29udmVyc2F0aW9uTWVzc2FnZS05MDA=",
"body": "Can we see it Saturday?",
"context": "GENERAL",
"created_at": "2026-08-19T02:11:00Z",
"sender_id": "VXNlci0xMjM=",
"sender_type": "User"
}
],
"has_more": false,
"next_cursor": null
}
{
"error": {
"code": "invalid_request",
"message": "limit must be an integer.",
"field": "limit",
"request_id": "9b2f4c1e-7d3a-4e5b-8f6c-0a1d2e3f4b5c"
}
}
{
"error": {
"code": "unauthorized",
"message": "Invalid or missing credentials.",
"request_id": "9b2f4c1e-7d3a-4e5b-8f6c-0a1d2e3f4b5c"
}
}
{
"error": {
"code": "missing_scope",
"message": "This call requires the conversations:read scope, which this credential was not granted.",
"request_id": "9b2f4c1e-7d3a-4e5b-8f6c-0a1d2e3f4b5c"
}
}
{
"error": {
"code": "not_found",
"message": "No conversation with id Q29udmVyc2F0aW9uLTQy for this agent.",
"request_id": "9b2f4c1e-7d3a-4e5b-8f6c-0a1d2e3f4b5c"
}
}
{
"error": {
"code": "rate_limited",
"message": "Rate limit exceeded. Try again in 30 seconds.",
"request_id": "9b2f4c1e-7d3a-4e5b-8f6c-0a1d2e3f4b5c"
}
}
{
"error": {
"code": "internal_error",
"message": "Something went wrong on our side.",
"request_id": "9b2f4c1e-7d3a-4e5b-8f6c-0a1d2e3f4b5c"
}
}