Mindflow Support
Overview
Platform Flows (Beta) 1.0.0
Section titled “Platform Flows (Beta) 1.0.0”Create and manage flows in one organization. Flow metadata, versions, and Workflow SDK definitions are separate. Definitions are always Workflow SDK TypeScript on the wire.
Send Authorization: Bearer <token>. Flow and version ids are opaque — pass them unchanged.
| Method | Path | Result |
|---|---|---|
| GET | /organizations/{organizationId}/flows |
One page of flows the caller can see. Optional name filter; * matches any sequence of characters. |
| POST | same | Creates flow metadata and an empty canvas. Status 201. |
| GET | …/flows/{flowId} |
One flow. 404 when it is missing. |
| PATCH | same | Changes only the fields you send (application/merge-patch+json). |
| DELETE | same | Removes the flow. Status 204. |
| GET | …/flows/{flowId}/versions |
Version snapshots, newest pages via cursor. Metadata only. |
| POST | same | Saves the live canvas as a named version (a checkpoint). name is required. Status 201. |
| GET | …/flows/{flowId}/versions/{versionId} |
One version. Metadata only. |
| GET | …/flows/{flowId}/versions/{versionId}/definition |
Workflow SDK TypeScript for that version. With latest, the live canvas plus its revision. |
| PUT | …/flows/{flowId}/versions/latest/definition |
Replaces the live canvas with a new definition. Status 200 with the new revision. |
| POST | …/flows/{flowId}/versions/{versionId}/restore |
Copies a saved version onto the live canvas after saving the current canvas as Autosave. Status 200. |
| POST | /organizations/{organizationId}/compile |
Checks one definition without saving. Status 200. |
Authentication
Bearer token in Authorization. List and create use organization permissions. Entity, version, definition, and
restore routes require viewFlow, editFlow, or deleteFlow on the path flowId as documented per operation.
Live canvas, checkpoints, and revisions
The live canvas is the flow’s working copy. Studio edits it, and flow deployments that track latest run it.
A flow gets a live canvas when you create a flow deployment with versionId: "latest". Until then, reading or
replacing latest returns 409 NO_LATEST_DEPLOYMENT.
Replacing the definition writes the live canvas and does not save a version. To keep a copy you can restore, save a
checkpoint with POST …/flows/{flowId}/versions before you replace. Restore copies a checkpoint back onto the live
canvas.
revision is an opaque fingerprint of the live canvas: steps, links, step positions, and flow settings. Read it with
GET …/versions/latest/definition and send it as baseRevision when you replace. If anyone changed the canvas in
between, including in Studio, the replace returns 409 REVISION_CONFLICT and changes nothing. Re-read, re-apply
your change, and retry.
Field update rules
timeout is required on create and is a number of seconds (minimum 1). Omit description to store an
empty description. JSON null on update clears description, icon, emailsToNotify, and outputSchema.
Arrays replace the whole list.
Pagination
A caller who cannot see every flow can receive fewer items than limit. Follow nextCursor until it is
null. Pass the cursor value unchanged.
Limits
| Limit | Value |
|---|---|
| Flow name length | 128 characters |
| Description length | 1000 characters |
| Definition source size | 512 KiB (524288 characters) |
| Definition path length | 512 characters |
| Compile findings per response | 512 |
Errors
All errors use RFC 9457 Problem Details.
| HTTP | When |
|---|---|
| 400 | Invalid field, missing timeout on create, or compile/lint failure (code: FLOW_COMPILATION_FAILED) |
| 401 | Missing or invalid Bearer token |
| 403 | Caller lacks permission for the flow |
| 404 | Flow or version not found |
| 409 | NO_LATEST_DEPLOYMENT when the flow has no live canvas yet, or REVISION_CONFLICT when the live canvas changed since baseRevision |
| 429 | Rate limit exceeded |
| 500 | Unexpected server error |
Named response examples on definition read and compile cover the common call shapes.
Authentication
Section titled “Authentication”bearerAuth
Section titled “bearerAuth”Bearer token for API authentication. The token must be provided in the Authorization header as ‘Bearer
Security scheme type: http