---
title: "Create Backtest Share"
method: GET
path: "/v1/backtests/{run_id}/share"
---

# Create Backtest Share

`GET /v1/backtests/{run_id}/share`

## Request

- Base URL: `https://api.quantradin.com` (the document declares no server; this is the origin it was published from)
- URL: `https://api.quantradin.com/v1/backtests/{run_id}/share`
- Auth: none declared

Mint (or re-use) a public share link for THIS owner's run.

P1-F2: refused (403, friendly) for the SHARED guest key with no session —
minting off the shared demo tenant lets one visitor publish another
visitor's result. Signing in makes it yours to share.

Owner-only, identical session-wins-else-X-Vega-Key resolution + scoping as
the poll/export routes (require_backtest_submitter + db.get_backtest on the
resolved uid) — a run you don't own 404s, revealing nothing. 409 while the
run has no result yet. Idempotent: re-calling returns the SAME token, not a
new one. Returns {share_id, share_path} — build the full URL client-side.

## Path parameters

- `run_id` string, required

## Headers

- `x-vega-key` string, nullable

## Response `200`

Successful Response

- unknown

## Other responses

- `422`: Validation Error

---

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