---
title: "Port External"
method: POST
path: "/v1/strategies/port-external"
---

# Port External

`POST /v1/strategies/port-external`

## 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/strategies/port-external`
- Auth: none declared

Translate a pasted external strategy (Pine/Python/prose) into a Quantradin
spec, then run the SAME validate + port-check every spec gets. Returns
{spec, valid, issues, port_report, label}. 503 when AI is off/unconfigured.
The pasted text is treated strictly as DATA (prompt-injection fenced); nothing
it says can change behavior — the translated spec is validated normally and
honest gaps show up in the port report.

## Request body

- PortExternalRequest
  - `source_text` string, required
  - `source_kind` 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)
