Docs menu

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_id path string required
  • workspace_id path string required
  • cursor query string

    Opaque cursor from a previous page's next_cursor.

  • limit query integer (int32)

    1-100, default 25.

  • mine (default), or, while conversations with people are on, private, direct, groups, assigned or channel (shared is deprecated).

  • q query string

    Only chats whose title contains this text, ignoring case.

  • peer query string

    Only conversations this participant (user:<id> or agent:<id>) takes part in.

  • channel_id query string

    With view=channel: the channel whose threads to list.

  • archived query boolean

    true: only the conversations the caller archived. Left out or false: only those they didn't, except that q finds archived ones too. A channel's threads aren't archived.

Responses

  • 200 application/json ConversationList

    The caller's chats in this space, pinned ones first, then newest first (or, with direct, groups, shared or assigned, by latest activity)

  • 400 application/json ErrorBody

    invalid_query: an unknown view

  • 401 application/json ErrorBody

    unauthenticated

  • 403 application/json ErrorBody

    workspace_content_restricted: organisation admins who haven't joined; insufficient_scope

  • 404 application/json ErrorBody

    No such space, or the caller can't see it; direct, groups, shared, assigned and peer while conversations with people are off; with view=channel, no such channel the caller reads, or channels are off

  • 422 application/json ErrorBody

    validation_failed, also for view=channel without channel_id

  • 429 application/json ErrorBody

    rate_limited: the API key's requests per minute are used up; retry after Retry-After seconds

  • 500 application/json ErrorBody

    internal

  • 503 application/json ErrorBody

    unavailable: the database is briefly unavailable; retry after Retry-After seconds

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
curl "$IVY_API_URL/v1/organisations/$ORGANISATION_ID/workspaces/$WORKSPACE_ID/conversations" \
  -H "Authorization: Bearer $IVY_API_KEY"
JavaScript SDK
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 },
});
Example response (200)
{
  "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"
}