Skip to main content

copilotSession

Requires permission catalog:copilot:chat.

Load one of the CALLER'S OWN copilot threads. Org + user scoped (r1) — a colleague's thread, and any cross-tenant id, read as not-found.

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 CopilotSession($id: ID!) {
copilotSession(id: $id) {
id
title
status
createdAt
activeRunId
hasIr
messages {
id
createdAt
cardIds
feedback
role
text
}
}
}

Variables:

{
"id": "id"
}

Response:

{
"data": {
"copilotSession": {
"id": "id",
"title": "string",
"status": "string",
"createdAt": 0,
"activeRunId": "string",
"hasIr": true,
"messages": [
{
"id": "id",
"createdAt": 0,
"cardIds": [
"string"
],
"feedback": {},
"role": "string",
"text": "string"
}
]
}
}
}
copilotSession(
id: ID!
): CopilotSession!

Arguments​

copilotSession.id ● ID! non-null scalar​

The ID of the Copilot session.

Type​

CopilotSession object​

A copilot conversation.