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.
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.
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 thediagrams:read scope.
Query parameters
integer
Items per page,
1–100. 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.Retrieve a diagram
Requires thediagrams: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 — returns201 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.
Location header. To get a rendered preview, call render an image on the new id.
Update a diagram
Updates a diagram’s metadata only —name 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 thediagrams:write scope. Returns 204 No Content.
Render a diagram image
Renders the diagram to an image on demand (cached). Requires thediagrams: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 thediagrams:read scope.
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.