Skip to content
gist.link ↗

testWorkflow

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

Synchronous dry run: resolves + executes every step against a sample trigger payload, without persisting a Run. Authenticated org member.

automate:mutation:testWorkflow

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

type Mutation {
testWorkflow(id: String!, sampleTrigger: JSON!): WorkflowTestResult!
}
Argument Type Required Description
id String! Yes —
sampleTrigger JSON! Yes —

WorkflowTestResult! — 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": "mutation TestWorkflow($id: String!, $sampleTrigger: JSON!) { testWorkflow(id: $id, sampleTrigger: $sampleTrigger) { workflow_id trigger_payload } }",
"variables": {
"id": "example",
"sampleTrigger": {}
}
}
JSON