---
title: "Check a workflow's code without saving it"
description: "Compiles the source exactly as a save would and answers with the same verdict, but saves nothing: no version, no bundle, no history."
canonical: "https://grid82.com/docs/builder-api/workflows/check"
updated: "2026-11-13"
---

# Check a workflow's code without saving it

`POST https://studio.grid82.app/v1/apps/{appId}/workflows/check`

Compiles the source exactly as a save would and answers with the same verdict, but saves nothing: no version, no bundle, no history.

Use it whenever you are unsure what the compiler accepts, to try a call or a name, and to get the code right BEFORE the one save. Never save a version to find out. The answer is the compiler's verdict on this version: `ok`, every error with its line and the fix, warnings, the graph the Automations tab draws and what the workflow can touch. Nothing is kept.

Requires the scopes `workflows:read`, `schema:read`. Operation `workflows.check`. MCP tool `workflows_check`. CLI: `grid82 workflows check` (`npx grid82`).

## Path parameters

| Name    | Type   | Required | Description |
| ------- | ------ | -------- | ----------- |
| `appId` | 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             |
| -------- | ------ | -------- | ----------------------- |
| `source` | string | yes      | Up to 65536 characters. |

**Authorizations**

- `Authorization` (bearer, in header, required)

## Response

**200**: Success

- `data` (`object`, required)
- `data.ok` (`boolean`, required)
- `data.errors` (`object[]`, required)
- `data.errors.line` (`integer`, required)
- `data.errors.message` (`string`, required)
- `data.warnings` (`object[]`, required)
- `data.warnings.line` (`integer`, required)
- `data.warnings.message` (`string`, required)
- `data.graph` (`Record<string, object> | null`)
- `data.impact` (`Record<string, object> | null`)

```json
{
  "data": {
    "ok": true,
    "errors": [
      {
        "line": 123,
        "message": "<string>"
      }
    ],
    "warnings": [
      {
        "line": 123,
        "message": "<string>"
      }
    ],
    "graph": {},
    "impact": {}
  }
}
```

**4XX**: Refused

- `error` (`object`, required)
- `error.code` (`enum<string>`, required, one of: `not_found, forbidden, unauthenticated, validation_failed, conflict, rate_limited, payment_required, not_implemented, internal`)
- `error.message` (`string`, required)
- `error.details` (`Record<string, unknown>`)

```json
{
  "error": {
    "code": "not_found",
    "message": "<string>",
    "details": {}
  }
}
```

**Example request**

```bash
curl --request POST \
  --url 'https://studio.grid82.app/v1/apps/<appId>/workflows/check' \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "source": "<string>"
}'
```
