Test a version without changing anything
Runs a version now (the latest unless version says otherwise) against the real records: reads are real; record writes, POSTs and approvals are captured instead of done; waits are skipped.
POST/v1/apps/{appId}/workflows/{workflowId}/test
A workflow that starts from a record is tested on recordId, or on the newest record of its table you can see. The answer is the trace, step by step. AI steps run for real and spend AI credits.
Requires the scopes workflows:read, records:read. Operation workflows.test. MCP tool workflows_test. CLI: grid82 workflows test (npx grid82).
Path parameters
| Name | Type | Required | Description |
|---|---|---|---|
appId | string | yes | |
workflowId | string | yes |
Headers
| Name | Type | Required | Description |
|---|---|---|---|
Idempotency-Key | string | no | Any unique string. Sending the same key with the same request again returns the first response (marked Idempotency-Replayed: true) instead of running it twice. Reusing it for a different request is refused with 409. Kept for 24 hours. Up to 255 characters. |
Request body
| Field | Type | Required | Description |
|---|---|---|---|
version | integer | no | At least 1. |
stopAfter | string | no | Up to 200 characters. |
pins | object | no | |
input | object | no | |
recordId | string | no | Up to 64 characters. |
Response
Success
dataobjectrequiredRefused
errorobjectrequired