Skip to content
gist.link ↗

Agent Workforce API

Persistent autonomous multi-agent workforces: supervisors, agents, sessions, budgets, schedules, and approvals.

Endpoint POST https://agentworkforce.api.gist.link/graphql
Token audience audience=agentworkforce
Permission prefix agentworkforce:

Mint an access token for this API with your IAM key and audience=agentworkforce — see Authentication.

Operation Required permission Description
accessCatalog agentworkforce:query:accessCatalog Everything an agent can be granted: suite apps, API connections, MCP servers.
agent agentworkforce:query:agent One agent with live status, budgets, and memory.
agentMessages agentworkforce:query:agentMessages Communication log touching one agent, newest first.
agents agentworkforce:query:agents Agents of one workforce (supervisor first).
agentSummaries agentworkforce:query:agentSummaries Work summaries written by one agent, newest first.
agentTasks agentworkforce:query:agentTasks Tasks assigned to one agent, newest first.
agentToolInvocations agentworkforce:query:agentToolInvocations Tool invocations by one agent, newest first.
agentUsage agentworkforce:query:agentUsage Per-day token/cost usage for one agent, most recent first.
apiConnections agentworkforce:query:apiConnections External API connections agents can be granted (secrets are never returned).
availableModels agentworkforce:query:availableModels LLM models agents can run on.
availableTools agentworkforce:query:availableTools The capability catalog agents can be granted.
credentials agentworkforce:query:credentials Stored third-party credentials (secrets are never returned).
health agentworkforce:query:health Liveness probe for the GraphQL layer.
integration agentworkforce:query:integration One MCP integration with its discovered tools.
integrations agentworkforce:query:integrations MCP integrations connected to this organization.
pendingApprovals agentworkforce:query:pendingApprovals Tool calls waiting for a human decision, oldest first.
pendingQuestions agentworkforce:query:pendingQuestions Questions agents have raised for a human to answer, oldest first.
realtimeToken agentworkforce:query:realtimeToken Mercure subscriber grant for the live canvas (org + per-workforce topics).
session agentworkforce:query:session One session with its tasks.
sessionMessages agentworkforce:query:sessionMessages Chronological transcript of one session (all agents).
sessions agentworkforce:query:sessions Work sessions, optionally scoped to one workforce.
workforce agentworkforce:query:workforce One workforce with its agents.
workforces agentworkforce:query:workforces Workforces in the caller’s organization.
Operation Required permission Description
answerQuestion agentworkforce:mutation:answerQuestion Answer an agent’s pending question; the agent resumes with the answer.
approveToolInvocation agentworkforce:mutation:approveToolInvocation Approve a tool call waiting for human review; execution resumes.
archiveWorkforce agentworkforce:mutation:archiveWorkforce Archive a workforce (cancels any active session).
cancelSession agentworkforce:mutation:cancelSession Cancel an active session.
createCredential agentworkforce:mutation:createCredential Store a third-party credential (secret sealed at rest, never returned).
createIntegration agentworkforce:mutation:createIntegration Connect an MCP server; its tools are discovered on creation.
createWorkforce agentworkforce:mutation:createWorkforce Create a workforce (a supervisor agent is created automatically).
deleteAgent agentworkforce:mutation:deleteAgent Delete a subagent (the supervisor cannot be deleted).
deleteApiConnection agentworkforce:mutation:deleteApiConnection Delete an API connection; agents lose its tools immediately. Admins only.
deleteCredential agentworkforce:mutation:deleteCredential Delete a credential (detached from any integrations that used it).
deleteIntegration agentworkforce:mutation:deleteIntegration Remove an MCP integration (its tools stop being available). Admins only.
denyToolInvocation agentworkforce:mutation:denyToolInvocation Deny a pending tool call; the agent continues without it.
moveAgent agentworkforce:mutation:moveAgent Persist an agent’s canvas position.
pauseAgent agentworkforce:mutation:pauseAgent Pause an agent — the supervisor stops assigning it work.
resumeAgent agentworkforce:mutation:resumeAgent Resume a paused agent.
saveAgent agentworkforce:mutation:saveAgent Create or update an agent (pass uuid to update).
saveApiConnection agentworkforce:mutation:saveApiConnection Create (no uuid) or update an external API connection. Admins only.
sendUserMessage agentworkforce:mutation:sendUserMessage Send a message to the supervisor mid-run or start a new session around it.
setWorkforceSchedule agentworkforce:mutation:setWorkforceSchedule Set the wake schedule: none, fixed interval, or cron.
startSession agentworkforce:mutation:startSession Start a work session toward a goal (defaults to the standing goal).
testIntegration agentworkforce:mutation:testIntegration Re-check an MCP integration and refresh its tool catalog.
updateCredential agentworkforce:mutation:updateCredential Update a credential; omit the secret to leave it unchanged.
updateIntegration agentworkforce:mutation:updateIntegration Update an MCP integration; endpoint/credential changes re-discover tools.
updateWorkforce agentworkforce:mutation:updateWorkforce Update name, description, standing goal, policy, or HTTP allowlist.