> ## Documentation Index
> Fetch the complete documentation index at: https://docs.sarasfinance.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Get Process Workflows

> Retrieve a list of workflows configured for a specific sub-project and stage keys.

### Query Parameters

<ParamField query="subProjectId" type="string" placeholder="sp_123" required>
  The unique identifier for the sub-project.
</ParamField>

<ParamField query="stageKeys" type="string" placeholder="stage_init">
  Filter workflows by stage keys (optional).
</ParamField>

### Response

<ResponseField name="workflows" type="object[]">
  <Expandable title="properties">
    <ResponseField name="id" type="string">
      The unique identifier for the workflow.
    </ResponseField>

    <ResponseField name="name" type="string">
      The name of the workflow.
    </ResponseField>

    <ResponseField name="description" type="string">
      A description of what the workflow does.
    </ResponseField>
  </Expandable>
</ResponseField>

<RequestExample>
  ```bash theme={null}
  curl --location 'https://api.sarasfinance.com/v1/process/getWorkflows?subProjectId=93d599a6-a396-4ef6-b30e-aff95c56c523&stageKeys=stage_init' \
  --header 'Authorization: Bearer <token>'
  ```
</RequestExample>

<ResponseExample>
  ```json theme={null}
  {
    "workflows": [
      {
        "id": "wf_b2a7590d",
        "name": "Litigation Assessment Workflow",
        "description": "Orchestrates agents to assess lawsuit viability and risks."
      }
    ]
  }
  ```
</ResponseExample>

### Error Codes

| Code                                       | ID   | Description                    |
| :----------------------------------------- | :--- | :----------------------------- |
| `ERROR_PROCESS_META_IS_MISSING_IN_REQUEST` | 1200 | Metadata missing in request    |
| `ERROR_SUBPROCESS_META_NOT_FOUND`          | 1202 | Sub-project metadata not found |
| `ERROR_NOT_ALLOWED_TO_GET`                 | 1205 | User unauthorized to view data |
