---
title: "Get the workflows for the given search criteria"
method: POST
path: "/v1.0/requests/workflows"
tags: ["Requests"]
---

# Get the workflows for the given search criteria

`POST /v1.0/requests/workflows`

## Request body

- RequestSearchByAccountCriteria — The search criteria
  - `accountId` integer, required
  - `requestTypes` string[]
  - `requestStatuses` string[]
  - `category` 'PERMIT' | 'REPORTING' | 'CA', required
  - `pageNumber` integer, required
  - `pageSize` integer, required

## Response `200`

OK

- RequestDetailsSearchResults
  - `requestDetails` RequestDetailsDTO[]
    - `id` string
    - `requestType` 'ORGANISATION_ACCOUNT_OPENING' | 'NOTIFICATION_OF_COMPLIANCE_P3' | 'ACTION_PLAN_P3' | 'ACCOUNT_CLOSURE' | 'PROGRESS_UPDATE_1_P3' | 'PROGRESS_UPDATE_2_P3'
    - `requestStatus` 'IN_PROGRESS' | 'COMPLETED' | 'CANCELLED' | 'WITHDRAWN' | 'APPROVED' | 'REJECTED' | 'CLOSED' | 'EXEMPT' | 'TERMINATED'
    - `creationDate` string, date
    - `requestMetadata` RequestMetadata
      - `type` 'NOTIFICATION_OF_COMPLIANCE_P3' | 'ACTION_PLAN_P3' | 'PROGRESS_UPDATE_1_P3' | 'PROGRESS_UPDATE_2_P3'
  - `total` integer

## Other responses

- `403` — Forbidden
- `500` — Internal Server Error

---

[API](https://skmtc.net/beis/apis/esos-api-documentation.md) · [All operations](https://skmtc.net/beis/apis/esos-api-documentation/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/beis/esos-api-documentation/revisions/aa4310e86ddd/schema)
