---
title: "Validate a Pine script (compile check only, no run)"
method: POST
path: "/v1/indicators/validate"
---

# Validate a Pine script (compile check only, no run)

`POST /v1/indicators/validate`

## Request

- Base URL: `https://app.texttoquant.com/api`
- URL: `https://app.texttoquant.com/api/v1/indicators/validate`
- Auth: one of:
  - API key in header `x-api-key`
  - HTTP bearer

## Request body

- object
  - `pine_code` string, required

## Response `200`

Answers {success, meta, indicator, diagnostics} at the top level (no data wrapper)

- object
  - `success` true, required
  - `meta` object: The compiled script's schema (inputs, plots).
  - `indicator` object: The same schema as meta, kept for older clients.
  - `diagnostics` object[]

---

[API](https://skmtc.dev/texttoquant/apis/texttoquant-api.md) · [All operations](https://skmtc.dev/texttoquant/apis/texttoquant-api/llms.txt) · [OpenAPI document](https://skmtc.dev/texttoquant/apis/texttoquant-api/revisions/d417fc3f4a7d?raw)
