Skip to content
gist.link ↗

runs

Query Automate API — POST https://automate.api.gist.link/graphql

Cursor-paginated runs for one workflow, newest first. Any org member.

automate:query:runs

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

type Query {
runs(workflowId: String!, first: Int, after: String): RunConnection!
}
Argument Type Required Description
workflowId String! Yes —
first Int No —
after String No —

RunConnection! — see the Automate types reference.

Terminal window
curl https://automate.api.gist.link/graphql \
-H "Authorization: Bearer $ACCESS_TOKEN" \
-H 'Content-Type: application/json' \
-d @- <<'JSON'
{
"query": "query Runs($workflowId: String!, $first: Int, $after: String) { runs(workflowId: $workflowId, first: $first, after: $after) { totalCount edges { cursor node { id uuid status created_at } } } }",
"variables": {
"workflowId": "example",
"first": 10,
"after": "cursor"
}
}
JSON