Skip to content
gist.link ↗

agents

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

Agents of one workforce (supervisor first).

agentworkforce:query:agents

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 {
agents(workforceUuid: ID!): [Agent!]!
}
Argument Type Required Description
workforceUuid ID! Yes —

[Agent!]! — 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 Agents($workforceUuid: ID!) { agents(workforceUuid: $workforceUuid) { uuid workforceUuid parentUuid role displayName color systemPrompt modelProvider } }",
"variables": {
"workforceUuid": "01a01234-abcd-7000-9000-0123456789ab"
}
}
JSON