Skip to content
Get an API key

Check a payload without drawing it

POST /item-types/{type}:validate

Updated 16 Sep 20262 min read
POST/item-types/{type}:validateTry it
Basehttps://api.mockflow.com/v1

Runs the same validation a create would, and answers 422 with the field that is wrong, or 200.

Authorization

Authorizationstringheaderrequired

Bearer <key>. Any key of the workspace. Create and manage keys in the developer console; what each scope unlocks is on the scopes page.

Path parameters

typeenum<string>pathrequired

Body

application/json
dataItemData

Selected by the sibling type. One schema per item type, generated from the component registry.

Response

200 · application/json
validboolean
typeenum<string>

Item types, generated from the MockFlow component registry. Primitive types are drawn by the editor; frame types are rich components whose data schema is the same one the MCP render_* tool accepts.

Errors

422validation_failed

The body did not match the schema for this item type.

429rate_limited

Too many requests.

Was this page helpful?

Sign in to MockFlow

The same account you use in the app and on the API.

Forgot your password?
or
Continue with GoogleContinue with Microsoft