Skip to content
gist.link ↗

answerQuestion

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

Answer an agent’s pending question; the agent resumes with the answer.

agentworkforce:mutation:answerQuestion

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

type Mutation {
answerQuestion(uuid: ID!, answer: String!): AgentQuestion!
}
Argument Type Required Description
uuid ID! Yes —
answer String! Yes —

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": "mutation AnswerQuestion($uuid: ID!, $answer: String!) { answerQuestion(uuid: $uuid, answer: $answer) { uuid sessionUuid taskUuid agentUuid question answer status createdAt } }",
"variables": {
"uuid": "01a01234-abcd-7000-9000-0123456789ab",
"answer": "example"
}
}
JSON