v12

latestOpenAPI 3.1.0raw.githubusercontent.com2026-08-014994227.2 KB
workflows

Create a workflow

Creates a workflow in the caller's org. Name must match ^[A-Za-z0-9_-]+$ and be unique within the org. Pass code to save the workflow's first code revision atomically with it; omit it to create an empty workflow and add code later. Returns the workflow_id (plus revision_id and revision when code was provided).

post/workflows

Request body

$schemastring uri

A URL to the JSON Schema for this object.

codestring

Optional Python source for the workflow's first revision, saved atomically with the workflow when provided.

namestring required

Human-readable workflow name.

ocr_engine'free' | 'premium'

OCR backend to use.

platform'ios' | 'android' | 'both'

Target OS platform.

Example request

{
  "$schema": "/api/v1/WorkflowCreateRequest.json"
}

Response

Created

$schemastring uri

A URL to the JSON Schema for this object.

revisioninteger

Revision number of the first code revision (1), when code was provided.

revision_idstring

Id of the first code revision, when code was provided.

workflow_idstring required

Identifier assigned to the new workflow.

Example response

{
  "$schema": "/api/v1/WorkflowCreateResponse.json"
}