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:
- GraphQL
- cURL
query CopilotSessions {
copilotSessions {
id
title
status
createdAt
awaitingApprovalCount
lastMessageAt
}
}
curl -X POST "https://<api-host>/graphql" \
-H "Content-Type: application/json" \
-H "Authorization: Bearer $ACCESS_TOKEN" \
--data @- <<'EOF'
{
"query": "query CopilotSessions {\n copilotSessions {\n id\n title\n status\n createdAt\n awaitingApprovalCount\n lastMessageAt\n }\n}"
}
EOF
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.