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:
- GraphQL
- cURL
query CopilotSession($id: ID!) {
copilotSession(id: $id) {
id
title
status
createdAt
activeRunId
hasIr
messages {
id
createdAt
cardIds
feedback
role
text
}
}
}
curl -X POST "https://<api-host>/graphql" \
-H "Content-Type: application/json" \
-H "Authorization: Bearer $ACCESS_TOKEN" \
--data @- <<'EOF'
{
"query": "query CopilotSession($id: ID!) {\n copilotSession(id: $id) {\n id\n title\n status\n createdAt\n activeRunId\n hasIr\n messages {\n id\n createdAt\n cardIds\n feedback\n role\n text\n }\n }\n}",
"variables": {
"id": "id"
}
}
EOF
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.