List conversations
GET
https://server.heyrik.com/api/v1/chat/sessionsHeaders
AuthorizationstringRequiredUse Bearer $HEYRIK_API_KEY with an account-scoped API key. Keep the key on your server.
Parameters 2
Fields documented for this operation. See the request example for placement and structure.
agent_idstringOnly this agent's chats. `agency_id` also accepted.
limit / offsetnumberPagination — walk with has_more.
Response
Explore the example values. This is not a complete response schema.
dataobjectExplore 3 properties
itemsarrayExplore 1 example item
[0]objectExplore 3 properties
idstringExample "cht_c09b79cc"
titlestringExample "Support chat"
message_countnumberExample 4
totalnumberExample 1
has_morebooleanExample false
GET/chat/sessions
cURL
curl "https://server.heyrik.com/api/v1/chat/sessions?agent_id=agc_9f2a1c30&limit=20" \
-H "Authorization: Bearer $HEYRIK_API_KEY"Response example
JSON
{ "data": { "items": [ { "id": "cht_c09b79cc", "title": "Support chat", "message_count": 4 } ], "total": 1, "has_more": false } }Illustrative examples · No live request is sent
