---
title: "Convert a parsedQuery, or an existing backtest by id, into a TradingView Pine v6 strategy() script (pure transform, not billed; plans with data exports)"
method: POST
path: "/v1/export/pine"
---

# Convert a parsedQuery, or an existing backtest by id, into a TradingView Pine v6 strategy() script (pure transform, not billed; plans with data exports)

`POST /v1/export/pine`

## Request

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

## Request body

- object
  - `parsedQuery` object
  - `backtestId` string, uuid

## Response `200`

Success

- object
  - `success` true, required
  - `data` object, required
    - `script` string
    - `unsupported` string[]

## Other responses

- `403`: feature_not_available — the plan does not carry data exports; the message names the tier that does
- `404`: not_found

---

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