---
title: "Publish a public chart link for a run"
method: POST
path: "/v1/backtests/{id}/chart-share"
---

# Publish a public chart link for a run

`POST /v1/backtests/{id}/chart-share`

## Request

- Base URL: `https://app.texttoquant.com/api`
- URL: `https://app.texttoquant.com/api/v1/backtests/{id}/chart-share`
- Auth: one of:
  - API key in header `x-api-key`
  - HTTP bearer

Builds the price chart with its trades and indicators from the layout the owner last saved for the run (a default layout when none is saved) and publishes it at a short /c/ URL anyone can open. The strategy rules are hidden unless `rules` is true.

## Path parameters

- `id` string, uuid, required

## Request body

- object
  - `rules` boolean: Publish the strategy rules on the page.
  - `title` string

## Response `201`

Success

- object
  - `success` true, required
  - `data` object, required
    - `id` string
    - `url` string
    - `status` 'live'
    - `version` integer
    - `layout` 'stored' | 'default'
    - `rules` boolean
    - `title` string, nullable

## Other responses

- `400`: invalid_query
- `404`: not_found
- `409`: CHART_SHARE_LIMIT
- `413`: CHART_SHARE_TOO_LARGE
- `429`: CHART_SHARE_RATE_LIMITED

---

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