Skip to content
gist.link ↗

workflows

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

Cursor-paginated workflows for the caller’s organization. Any org member.

automate:query:workflows

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 {
workflows(filter: WorkflowFilter, sort: SortInput, first: Int, after: String): WorkflowConnection!
}
Argument Type Required Description
filter WorkflowFilter No —
sort SortInput No —
first Int No —
after String No —

WorkflowConnection! — 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 Workflows($filter: WorkflowFilter, $sort: SortInput, $first: Int, $after: String) { workflows(filter: $filter, sort: $sort, first: $first, after: $after) { totalCount edges { cursor node { id uuid name created_at updated_at } } } }",
"variables": {
"filter": {
"enabled": true,
"search": "example"
},
"sort": {
"field": "example",
"direction": "ASC"
},
"first": 10,
"after": "cursor"
}
}
JSON