Skip to main content
GET
List Approval Workflows

Overview

Retrieve all approval workflows configured for your company. You can filter by workflow type, department, and active status.
Accessible to users with Super Admin, HR Manager, or Manager roles.

Query Parameters

string
Filter by workflow type. Valid values:
  • leave - Leave request workflows
  • memo - Memo approval workflows
  • expense - Expense claim workflows
If not provided, returns workflows of all types.
uuid
Filter workflows by department ID. Returns workflows specific to this department plus company-wide workflows (where departmentId is null).
boolean
default:"true"
When true, returns only active workflows. Set to false to include inactive workflows.Default is true if not specified.

Response

boolean
Indicates if the request was successful
array
Array of approval workflow objects

Example Requests

Get all active workflows

Get leave workflows only

Get workflows for a specific department

Include inactive workflows

Understanding Workflow Scope

Company-Wide Workflows

Workflows with departmentId: null apply to all departments in the company. These are used when there’s no department-specific workflow configured.

Department-Specific Workflows

Workflows with a specific departmentId take precedence over company-wide workflows for that department. Use these when different departments need different approval processes.

Filtering Logic

1

Company Filter

Results are automatically filtered to the authenticated user’s company based on the JWT token.
2

Workflow Type Filter

If workflowType is provided, only workflows of that type are returned.
3

Department Filter

If departmentId is provided, returns both department-specific workflows and company-wide workflows (null departmentId).
4

Active Status Filter

By default, only active workflows are returned unless onlyActive=false is specified.

Error Responses

Invalid query parameters (e.g., malformed UUID for departmentId)
Missing or invalid authentication token, or insufficient permissions
Server error while retrieving workflows