For AI agents: a documentation index is available at the root level at /llms.txt and /llms-full.txt. Append /llms.txt to any URL for a page-level index, or .md for the markdown version of any page.
Dashboard
User GuideDeveloper GuidesAPI Reference
User GuideDeveloper GuidesAPI Reference
    • Overview
  • Runtype API
      • POSTValidate a prospective flow payload
Dashboard
LogoLogo
Runtype APIFlow Validation

Validate a prospective flow payload

POST
/v1/public/flows/validate
POST
/v1/public/flows/validate
$curl -X POST https://api.runtype.com/v1/public/flows/validate \
> -H "Content-Type: application/json" \
> -d '{}'
1{
2 "valid": true,
3 "errors": [
4 {
5 "code": "FLOW_MISSING_TRIGGER",
6 "message": "The flow must have at least one trigger defined.",
7 "path": "/triggers",
8 "step": {
9 "index": 0,
10 "name": "Start",
11 "type": "trigger"
12 },
13 "details": null
14 }
15 ],
16 "warnings": [
17 {
18 "code": "DEPRECATED_STEP_TYPE",
19 "message": "The step type 'legacyAction' is deprecated and will be removed in future versions.",
20 "path": "/steps/2",
21 "step": {
22 "index": 2,
23 "name": "Legacy Action",
24 "type": "legacyAction"
25 },
26 "details": null
27 }
28 ],
29 "recommendations": [
30 {
31 "code": "ADD_ERROR_HANDLING",
32 "message": "Consider adding error handling steps to improve flow reliability.",
33 "path": "/steps",
34 "step": {
35 "index": 3,
36 "name": "Error Handler",
37 "type": "errorHandler"
38 },
39 "details": null
40 }
41 ],
42 "context": {
43 "authenticated": true,
44 "accountChecksPerformed": true,
45 "accountChecksSkipped": false
46 }
47}

Validates a flow definition without creating it. Authentication is optional — authenticated requests get additional account-scoped checks.

Was this page helpful?
Previous

Get all flow steps for a flow

Next
Built with

Request

This endpoint expects a map from strings to any.

Response

Validation result
validboolean
errorslist of objects
warningslist of objects
recommendationslist of objects
contextobject

Errors

400
Bad Request Error
500
Internal Server Error