List conversations legacy
GET /v1/organisations/{organisation_id}/workspaces/{workspace_id}/conversations Deprecated
The caller's chats in the space, pinned ones first, then newest first; q keeps those whose title contains it. While conversations with people are on: direct (each with its peer_key, which the Direct list groups by), groups, shared and assigned, newest activity first, and peer keeps the conversations that participant takes part in. While channels are on, view=channel with channel_id lists a channel's threads, newest activity first.
Authentication
Send an API key, or an access token from your organisation’s identity provider, in the Authorization header. How API keys work
Scope the API key needs: conversations:read
Security schemes in the OpenAPI document: session_cookie (cookie __Host-ivy_session)bearer (bearer)api_key (bearer)
Parameters
-
organisation_idpathstringrequired -
workspace_idpathstringrequired -
cursorquerystringOpaque cursor from a previous page's
next_cursor. -
limitqueryinteger (int32)1-100, default 25.
-
mine(default), or, while conversations with people are on,private,direct,groups,assignedorchannel(sharedis deprecated). -
qquerystringOnly chats whose title contains this text, ignoring case.
-
peerquerystringOnly conversations this participant (
user:<id>oragent:<id>) takes part in. -
channel_idquerystringWith
view=channel: the channel whose threads to list. -
archivedquerybooleantrue: only the conversations the caller archived. Left out orfalse: only those they didn't, except thatqfinds archived ones too. A channel's threads aren't archived.
Responses
-
The caller's chats in this space, pinned ones first, then newest first (or, with
direct,groups,sharedorassigned, by latest activity) -
invalid_query: an unknownview -
unauthenticated -
workspace_content_restricted: organisation admins who haven't joined;insufficient_scope -
No such space, or the caller can't see it;
direct,groups,shared,assignedandpeerwhile conversations with people are off; withview=channel, no such channel the caller reads, or channels are off -
validation_failed, also forview=channelwithoutchannel_id -
rate_limited: the API key's requests per minute are used up; retry afterRetry-Afterseconds -
internal -
unavailable: the database is briefly unavailable; retry afterRetry-Afterseconds
Error codes
Errors come back as an ErrorBody whose code is one of these.
- 400
invalid_query - 401
unauthenticated - 403
workspace_content_restrictedinsufficient_scope - 404
directgroupssharedassigned - 422
validation_failed - 429
rate_limited - 500
internal - 503
unavailable
Examples
curl "$IVY_API_URL/v1/organisations/$ORGANISATION_ID/workspaces/$WORKSPACE_ID/conversations" \
-H "Authorization: Bearer $IVY_API_KEY" import { client, listConversationsLegacy } from "@spacivapp/ivy-sdk";
client.setConfig({
baseUrl: process.env.IVY_API_URL,
headers: { Authorization: `Bearer ${process.env.IVY_API_KEY}` },
});
const { data, error, response } = await listConversationsLegacy({
path: { organisation_id: organisationId, workspace_id: workspaceId },
}); {
"items": [
{
"agent_id": "agent_123",
"answer_mode": "every_message",
"archived_at": "2026-01-15T09:30:00Z",
"assignee": "string",
"can_post": false,
"channel_id": "channel_123",
"chat_origin": {
"binding_id": "binding_123",
"channel_name": "Ada Lovelace",
"platform": {}
},
"created_at": "2026-01-15T09:30:00Z",
"created_by": {
"id": "id_123",
"type": {}
},
"id": "id_123",
"kind": "direct",
"last_message_at": "2026-01-15T09:30:00Z",
"last_read": 1,
"last_reply_at": "2026-01-15T09:30:00Z",
"last_reply_by": {
"id": "id_123",
"type": {}
},
"latest_replies": [
{
"author": {},
"author_name": "Ada Lovelace",
"author_platform": {},
"created_at": "2026-01-15T09:30:00Z",
"excerpt": "string",
"mentions": [],
"message_id": "message_123",
"text": "Hello, Ivy",
"text_cut": false
}
],
"mentioned": false,
"notify": "all",
"participant_keys": [
"string"
],
"peer_key": "string",
"pinned": false,
"post": {
"author": {},
"author_name": "Ada Lovelace",
"author_platform": {},
"created_at": "2026-01-15T09:30:00Z",
"excerpt": "string",
"mentions": [],
"message_id": "message_123",
"text": "Hello, Ivy",
"text_cut": false
},
"reply_count": 0,
"run_state": "working",
"space_id": "space_123",
"status": "open",
"title": "string",
"unread_count": 0,
"updated_at": "2026-01-15T09:30:00Z",
"visibility": "private",
"workspace_id": "workspace_123"
}
],
"next_cursor": "string"
}