Skip to content
gist.link ↗

createWorkforce

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

Create a workforce (a supervisor agent is created automatically).

agentworkforce:mutation:createWorkforce

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 {
createWorkforce(input: CreateWorkforceInput!): Workforce!
}
Argument Type Required Description
input CreateWorkforceInput! Yes —

Workforce! — 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 CreateWorkforce($input: CreateWorkforceInput!) { createWorkforce(input: $input) { uuid name status } }",
"variables": {
"input": {
"name": "Example"
}
}
}
JSON