Skip to main content
GET
/
v1
/
process
/
getWorkflows
curl --location 'https://api.sarasfinance.com/v1/process/getWorkflows?subProjectId=93d599a6-a396-4ef6-b30e-aff95c56c523&stageKeys=stage_init' \
--header 'Authorization: Bearer <token>'
{
  "workflows": [
    {
      "id": "wf_b2a7590d",
      "name": "Litigation Assessment Workflow",
      "description": "Orchestrates agents to assess lawsuit viability and risks."
    }
  ]
}

Query Parameters

subProjectId
string
required
The unique identifier for the sub-project.
stageKeys
string
Filter workflows by stage keys (optional).

Response

workflows
object[]
curl --location 'https://api.sarasfinance.com/v1/process/getWorkflows?subProjectId=93d599a6-a396-4ef6-b30e-aff95c56c523&stageKeys=stage_init' \
--header 'Authorization: Bearer <token>'
{
  "workflows": [
    {
      "id": "wf_b2a7590d",
      "name": "Litigation Assessment Workflow",
      "description": "Orchestrates agents to assess lawsuit viability and risks."
    }
  ]
}

Error Codes

CodeIDDescription
ERROR_PROCESS_META_IS_MISSING_IN_REQUEST1200Metadata missing in request
ERROR_SUBPROCESS_META_NOT_FOUND1202Sub-project metadata not found
ERROR_NOT_ALLOWED_TO_GET1205User unauthorized to view data