---
title: "Parse a plain English multi asset portfolio prompt into per asset strategies + book level settings"
method: POST
path: "/v1/portfolio/parse"
---

# Parse a plain English multi asset portfolio prompt into per asset strategies + book level settings

`POST /v1/portfolio/parse`

## Request

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

## Request body

- object
  - `prompt` string, required
  - `period` string: Optional date range, e.g. "last 2 years".

## Response `200`

Success

- object
  - `success` true, required
  - `data` object, required

## Other responses

- `400`: validation_error
- `422`: Could not be parsed into a book

---

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