Skip to content
gist.link ↗

startRun

Mutation Intelligence API — POST https://intelligence.api.gist.link/graphql

ROLE_ADMIN or ROLE_INTELLIGENCE_MANAGER. Kicks off the PLAN -> SCAFFOLD -> DOMAIN -> REVIEW pipeline.

intelligence:mutation:startRun

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

type Mutation {
startRun(projectId: ID!, prompt: String!): GenerationRun!
}
Argument Type Required Description
projectId ID! Yes —
prompt String! Yes —

GenerationRun! — see the Intelligence types reference.

Terminal window
curl https://intelligence.api.gist.link/graphql \
-H "Authorization: Bearer $ACCESS_TOKEN" \
-H 'Content-Type: application/json' \
-d @- <<'JSON'
{
"query": "mutation StartRun($projectId: ID!, $prompt: String!) { startRun(projectId: $projectId, prompt: $prompt) { id status created_at updated_at } }",
"variables": {
"projectId": "01a01234-abcd-7000-9000-0123456789ab",
"prompt": "example"
}
}
JSON