---
title: "Search Workflow Tasks"
method: POST
path: "/app/v1/workflow_tasks/search"
tags: ["workflow_tasks"]
---

# Search Workflow Tasks

`POST /app/v1/workflow_tasks/search`

## Request body

- object
  - `page` number — Which page to return
  - `page_size` number — How many items to list in a page
  - `sort_by` 'status' | 'name' | 'description' | 'created_at'
  - `sort_direction` 'asc' | 'desc' — Sort direction
  - `filter` object — A filter object for Workflow task where it can filter based on any of these following fields. No fields are mandatory and the syntax is roughly the same as MongoDB querying.
    - `facility.custom_attributes` object
    - `facility.id` string
    - `facility.name` string
    - `facility.status` string
    - `workflow_template.id` string, uuid
    - `workflow_template.category_id` string, uuid
    - `workflow_template.name` string
    - `workflow_template.description` string
    - `workflow_template.asset_type` 'equipment' | 'device' | 'facility' | 'flow'
    - `workflow_template.status` 'active' | 'draft' | 'archive'
    - `workflow_category.id` string, uuid
    - `workflow_category.name` string
    - `workflow_category.description` string
    - `id` string, uuid
    - `workflow_id` string, uuid
    - `status` 'complete' | 'open' | 'dismissed'
    - `created_at` string, date-time
    - `updated_at` string, date-time
    - `assigned_to` string, uuid
    - `assignee_user` string, uuid — filter tasks assigned to a specific user
    - `assignee_group` string, uuid — filter tasks assigned to a specific group
    - `assignee_group.user_id` string, uuid — filter tasks assigned to a specific user via group
    - `type` 'manual_task' | 'submit_form' | 'complete_event' | 'choice'
    - `name` string
    - `description` string
    - `workflow.facility_id` string
    - `workflow.due_date` string, date-time
    - `workflow.status` string
    - `form_schema_id` string, uuid — filter tasks by form schema

## Response `200`

Successfully operation

- PagedWorkflowTaskList
  - `page_number` number
  - `page_size` number
  - `total_entries` number
  - `total_pages` number
  - `data` IWorkflowTask[]
    - `id` string, uuid, required
    - `company_id` string, uuid, required
    - `workflow_id` string, uuid, required
    - `step_id` string, required
    - `name` string, required
    - `description` string, required
    - `status` 'open' | 'complete' | 'dismissed' | 'overdue', required
    - `is_dismissible` boolean
    - `type` 'manual_task' | 'submit_form' | 'complete_event' | 'choice', required
    - `assignee_user` string
    - `assignee_group` string
    - `restrict_assignee_completion` boolean, required
    - `callback_token` string
    - `due_date` union
      - string
      - string, date-time
    - `created_at` union, required
      - string
      - string, date-time
    - `updated_at` union, required
      - string
      - string, date-time
    - `updated_by` string, uuid, required

---

[API](https://skmtc.net/validere/apis/carbonhub-api.md) · [All operations](https://skmtc.net/validere/apis/carbonhub-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/validere/carbonhub-api/revisions/053edab62415/schema)
