---
title: "Validate a band-math formula (syntax + required bands) without executing it."
method: POST
path: "/v1/op/analytics.validate_formula"
tags: ["kernel-ops"]
---

# Validate a band-math formula (syntax + required bands) without executing it.

`POST /v1/op/analytics.validate_formula`

## Headers

- `x-api-key` string, nullable

## Request body

- ValidateFormulaInput
  - `formula` string, required
  - `sensor` string, required

## Response `200`

Successful Response

- ValidateFormulaOutput
  - `formula` string, required
  - `sensor` string, required
  - `valid` boolean, required
  - `error` string, nullable
  - `required_bands` string[]
  - `available_bands` string[]

## Other responses

- `401` — Unauthorized
- `403` — Forbidden
- `404` — Not Found
- `422` — Validation Error
- `500` — Internal Server Error

---

[API](https://skmtc.dev/geopera/apis/geopera-data-platform.md) · [All operations](https://skmtc.dev/geopera/apis/geopera-data-platform/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/geopera/geopera-data-platform/revisions/cb0130b2a40a/schema)
