---
title: "Compile + run a Pine script against real data (async; no persist)"
method: POST
path: "/v1/indicators/preview"
---

# Compile + run a Pine script against real data (async; no persist)

`POST /v1/indicators/preview`

## Request

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

## Request body

- object
  - `pine_code` string, required
  - `symbol` string
  - `timeframe` string
  - `bars` integer

## Response `202`

Answers {success, jobId, status} at the top level (no data wrapper): poll /v1/indicators/preview/{jobId}

- object
  - `success` true, required
  - `jobId` string, required
  - `status` 'running', required

---

[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)
