---
title: "Validate cron expression"
method: POST
path: "/api/scan-modes/verify"
tags: ["Scan Modes"]
---

# Validate cron expression

`POST /api/scan-modes/verify`

Validates a cron expression to ensure it's properly formatted

## Request body

- object
  - `cron` string, required

## Response `200`

The cron validation with next execution times

- ValidatedCronExpression — Result of validating a cron expression. Includes validation status, error messages, and execution details.
  - `isValid` boolean, required — Whether the cron expression is valid.
  - `errorMessage` string, required — Error message if the cron expression is invalid. Empty string if the expression is valid.
  - `nextExecutions` Instant[], required — The next 3 execution times for the cron expression. Empty array if the expression is invalid.
  - `humanReadableForm` string, required — A human-readable description of the cron expression.

---

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