Skip to content
gist.link ↗

pendingQuestions

Query Agent Workforce API — POST https://agentworkforce.api.gist.link/graphql

Questions agents have raised for a human to answer, oldest first.

agentworkforce:query:pendingQuestions

The calling IAM key must hold this permission (or a wildcard that covers it: agentworkforce:query:* or agentworkforce:*) and the access token must have been minted with audience=agentworkforce. See Permissions.

type Query {
pendingQuestions: [AgentQuestion!]!
}

This query takes no arguments.

[AgentQuestion!]! — see the Agent Workforce types reference.

Terminal window
curl https://agentworkforce.api.gist.link/graphql \
-H "Authorization: Bearer $ACCESS_TOKEN" \
-H 'Content-Type: application/json' \
-d @- <<'JSON'
{
"query": "query PendingQuestions { pendingQuestions { uuid sessionUuid taskUuid agentUuid question answer status createdAt } }",
"variables": {}
}
JSON