conversations

List the conversations the caller can read, newest activity first, to build a conversation picker or to find a conversation of a project; returns one page of conversations, filtered by project reference and paged with the returned cursor until it is null.

Arguments

  • projectReferenceString

  • limitInt

  • cursorString

  • typeString

    Only conversations of this type, e.g. chat.

  • participantIds[ID!]

    Only conversations that include every listed participant id (at most 20 UUIDs).

  • agentIdString

    Only conversations with this agent participant (public agent id).

  • userIdID

    Only conversations with this user participant (user UUID).

  • searchString

    Case-insensitive title substring (1-200 characters).

  • sortByString

    Sort key, as on REST: updated_at (default), created_at, title or message_count.

  • sortOrderString

    Sort direction, as on REST: desc (default) or asc.

Responses

query Conversations {  conversations {    data {      id      projectId      respondingAgentId      type      title      summary      status      currentNode      messageCount      lastMessageAt      metadata      createdBy      archivedAt      createdAt      updatedAt      initialMessageId    }    pageInfo {      hasNextPage      hasPreviousPage      startCursor      endCursor    }  }}
{  "data": {    "conversations": {      "data": [        {          "id": "string",          "projectId": "string",          "respondingAgentId": "string",          "type": "string",          "title": "string",          "summary": "string",          "status": "string",          "currentNode": "string",          "messageCount": 0,          "lastMessageAt": "string",          "metadata": {},          "createdBy": "string",          "archivedAt": "string",          "createdAt": "string",          "updatedAt": "string",          "initialMessageId": "string"        }      ],      "pageInfo": {        "hasNextPage": false,        "hasPreviousPage": false,        "startCursor": "string",        "endCursor": "string"      }    }  }}

The ConversationConnection! in data.conversations.