Skip to main content

copilotSessions

Requires permission catalog:copilot:chat.

The caller's OWN copilot threads, most recent first. Org + user scoped — a user never lists a colleague's conversations.

Errors: a failed call returns a GraphQL errors entry, not a field on the result, and data may be null or partial. Read the entry's extensions.code and message; every shape and code is in the Error reference.

Example:

query CopilotSessions {
copilotSessions {
id
title
status
createdAt
awaitingApprovalCount
lastMessageAt
}
}

Response:

{
"data": {
"copilotSessions": [
{
"id": "id",
"title": "string",
"status": "string",
"createdAt": 0,
"awaitingApprovalCount": 0,
"lastMessageAt": 0
}
]
}
}
copilotSessions(
after: String
first: Int = 20
): [CopilotSessionSummary!]!

Arguments​

copilotSessions.after ● String scalar​

Cursor from the previous page's last item. Omit for the first page.

copilotSessions.first ● Int scalar​

The number of items to return.

Type​

CopilotSessionSummary object​

One row in the user's own conversation list.