Get Editor Workflow
const url = 'https://app.lionrapid.com/api/integrations/editor/workflow';const options = {method: 'GET'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url https://app.lionrapid.com/api/integrations/editor/workflowWorkflow context for the calling editor session’s project.
locale (optional): the locale being edited. When given, the response
describes the EFFECTIVE workflow for that locale’s target — the same
target ?? project resolution every row decision (advance boundary,
postreview lock) uses — so a per-target workflow override renders
truthfully in the sidebar. Omitted → project workflow (legacy callers).
Parameters
Section titled “ Parameters ”Query Parameters
Section titled “Query Parameters”Header Parameters
Section titled “Header Parameters”Responses
Section titled “ Responses ”Successful Response
Project workflow context for the visual editor sidebar.
Fetched once per editor session, used to render a per-row workflow strip showing ‘you are here’ relative to the row’s current stage.
object
Ordered stages
One stage in the project’s workflow.
object
Zero-based stage order
Display name (uses name_override if set, else stage_type.name)
True for the Postreview stage — rows at/past it cannot Advance (same boundary the advance endpoint enforces).
Stage indices the calling user is assigned to via UserTargetLink. Empty for PM/admin (they highlight the row’s current stage instead).
True if caller is PM or admin at project scope
‘per_row’ or ‘per_file’
Number of non-Postreview (work) stages — the advance boundary: a row with stage_index >= this value is in postreview and cannot Advance.
Example
{ "is_pm_admin": false, "stages": [ { "index": 0, "name": "Translation", "role": "translator" }, { "index": 1, "name": "Proofreading", "role": "proofreader" }, { "index": 2, "name": "Review", "role": "reviewer" } ], "user_assigned_stages": [ 0 ], "workflow_mode": "per_row"}Validation Error
object
object
Examplegenerated
{ "detail": [ { "loc": [ "example" ], "msg": "example", "type": "example" } ]}