---
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/app-api/my/workflows-check"
updated: "2026-11-13"
---

# Check a workflow's code without saving it

`POST https://your-suite.grid82.app/your-app/v1/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.

> **Note: Generic contract**
>
> Your own version of this operation, with your tables and the fields you can read, is in
> your app's document: `https://{suite}.grid82.app/{app}/v1/openapi.json`, behind your credential.
> [Why each person gets their own](/docs/start/studio-and-runtime#why-an-app-has-an-api-of-its-own).

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 `my.workflows.check`. MCP tool `my_workflows_check`. CLI: `grid82 my workflows check` (`npx grid82`).

## 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://your-suite.grid82.app/your-app/v1/workflows/check' \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "source": "<string>"
}'
```
