Skip to main content
A Diagram is a saved BPMN process diagram in your workspace. You never read or write Just Flow It’s internal format — diagrams are created from a natural-language prompt or from standard BPMN 2.0 XML, and read back out as a rendered image or standard BPMN 2.0 XML.
All requests are server-to-server only and go to https://justflow.it/api/v1. Never expose jfi_sk_live_... keys in a browser or client app.

How diagrams are created

From a prompt

Describe the process in natural language. Runs asynchronously (generate → poll). See the Generate page.

From BPMN 2.0 XML

Send a standard BPMN 2.0 document and we import it as an editable diagram. Synchronous.
To change a diagram’s content after creation, edit it with a prompt — see Edit a diagram. PATCH only changes metadata (name, folder).

The Diagram object

string
Always "diagram".
string (uuid)
Unique identifier.
string
Human-readable name.
string (uuid) | null
The folder this diagram belongs to, or null for the root.
string (uuid) | null
Set when the diagram belongs to an organization (an org key); null for a personal diagram.
string (uuid)
The user who created the diagram.
string (ISO 8601)
Creation timestamp.
string (ISO 8601)
Last-modified timestamp.
Just Flow It’s internal diagram representation is never exposed by the API. To get a diagram’s content out, render it to an image or export it as BPMN 2.0.

Endpoints

List diagrams

Retrieve a diagram

Import BPMN 2.0

Update (metadata)

Delete a diagram

Render an image

Export as BPMN 2.0

Generate / edit by prompt

List diagrams

Returns a cursor-paginated list of your diagrams, newest first. Requires the diagrams:read scope.

Query parameters

integer
Items per page, 1100. Defaults to 20.
string
Opaque cursor from a previous response (next_cursor).
string
Filter by folder UUID, or the literal null for diagrams at the root.
See Pagination for paging through large lists.

Retrieve a diagram

Requires the diagrams:read scope. Returns the Diagram object. Unknown id → 404 resource_not_found.

Import a BPMN 2.0 diagram

Create a diagram from a standard BPMN 2.0 XML document (the format exported by Camunda, Bizagi, Signavio, bpmn.io, etc.). The XML is parsed and laid out, then saved as an editable diagram in your workspace. Synchronous — returns 201 Created. Requires the diagrams:write scope.

Request body

string
required
A standard BPMN 2.0 XML document.
string
Optional name for the diagram. Defaults to the process name from the XML, or “Untitled Diagram”.
string (uuid) | null
Optional folder to place the diagram in.
Returns the created Diagram object with a Location header. To get a rendered preview, call render an image on the new id.
Invalid or unsupported BPMN 2.0 returns 422 validation_failed with error.param set to bpmn_xml. Diagrams above the supported size (200 elements) are rejected with 422.

Update a diagram

Updates a diagram’s metadata onlyname and folder_id. Requires the diagrams:write scope.
To change a diagram’s content, edit it with a prompt — see Edit a diagram. There is no way to write Just Flow It’s internal format directly.

Request body

string
New name.
string (uuid) | null
Move the diagram to a folder, or null for the root.

Delete a diagram

Permanently deletes a diagram. Requires the diagrams:write scope. Returns 204 No Content.

Render a diagram image

Renders the diagram to an image on demand (cached). Requires the diagrams:read scope. See the Diagram images page for full detail.

Query parameters

string
"light" (default) or "dark".
string
"png" (default) or "svg".

Export as BPMN 2.0

Exports the diagram as a standard BPMN 2.0 XML document you can open in Camunda, Bizagi, Signavio, bpmn.io, and other BPMN tools. Requires the diagrams:read scope.
Returns 200 with Content-Type: application/xml (the BPMN 2.0 document). A round-trip is supported: a diagram you imported or generated can be exported back to BPMN 2.0.

Errors

See Errors for the full envelope and codes.