# Search Tasks

> Perform Search Tasks through NikoHealth.

Source: [https://genhealth.ai/docs/workflows/integrations/nikohealth/nikohealth_search_tasks](https://genhealth.ai/docs/workflows/integrations/nikohealth/nikohealth_search_tasks)

Integration: [NikoHealth](https://genhealth.ai/docs/workflows/integrations/nikohealth.md)

- Handler: `nikohealth_search_tasks`

- Connection type: `nikohealth`

## Inputs

- `category_name` — Category Name (expression, required)
  Required literal value or workflow expression.
- `statuses` — Statuses (multi_select)
  Optional list of selected values.
  Default: `["Open"]`
  Options: Open ("Open"), Completed ("Completed"), Archived ("Archived")
- `sort` — Sort (select)
  Optional selected identifier or value.
  Default: `"CreatedOn ASC"`
  Options: Ascending (oldest first) ("CreatedOn ASC"), Descending (newest first) ("CreatedOn DESC")
- `page_size` — Page Size (number)
  Optional numeric value.
  Default: `20`
- `max_pages` — Max Pages (number)
  Optional numeric value.
  Default: `10`
- `skip_if_empty` — Skip If Empty (boolean)
  Optional true-or-false value.
  Default: `false`

## Outputs

- `success` — Success
- `skipped` — Skipped
- `category_name` — Category Name
- `category_id` — Category Id
- `statuses` — Statuses
- `sort` — Sort
- `count` — Count
- `items` — Items
- `pages_fetched` — Pages Fetched
- `truncated` — Truncated
- `error` — Error

Output schema completeness: `best_effort_declared`

## Safety

- External effect: `read`
- Confirmation recommended: no
- Retry safe: yes
- Dry run supported: no

## Schemas

These schemas are first-pass authoring guidance. Runtime validation remains authoritative.

### Input schema

```json
{
  "type": "object",
  "required": [
    "category_name"
  ],
  "properties": {
    "sort": {
      "enum": [
        "CreatedOn ASC",
        "CreatedOn DESC"
      ],
      "type": "string",
      "default": "CreatedOn ASC",
      "description": "Optional selected identifier or value.",
      "x-workflow-field-type": "select"
    },
    "statuses": {
      "type": "array",
      "items": {
        "enum": [
          "Open",
          "Completed",
          "Archived"
        ],
        "type": "string"
      },
      "default": [
        "Open"
      ],
      "description": "Optional list of selected values.",
      "x-workflow-field-type": "multi_select"
    },
    "max_pages": {
      "type": "number",
      "default": 10,
      "description": "Optional numeric value.",
      "x-workflow-field-type": "number"
    },
    "page_size": {
      "type": "number",
      "default": 20,
      "description": "Optional numeric value.",
      "x-workflow-field-type": "number"
    },
    "category_name": {
      "description": "Required literal value or workflow expression.",
      "x-workflow-field-type": "expression"
    },
    "skip_if_empty": {
      "type": "boolean",
      "default": false,
      "description": "Optional true-or-false value.",
      "x-workflow-field-type": "boolean"
    }
  },
  "additionalProperties": false
}
```

### Output schema

```json
{
  "type": "object",
  "properties": {
    "sort": {},
    "count": {},
    "error": {},
    "items": {},
    "skipped": {},
    "success": {},
    "statuses": {},
    "truncated": {},
    "category_id": {},
    "category_name": {},
    "pages_fetched": {}
  },
  "additionalProperties": true
}
```
