---
title: "Preview derived variables from JSON content without saving."
method: POST
path: "/model-hub/prompt-templates/derived-variables/preview/"
tags: ["model-hub"]
---

# Preview derived variables from JSON content without saving.

`POST /model-hub/prompt-templates/derived-variables/preview/`

## Request

- Base URL: `http://localhost:8000`
- URL: `http://localhost:8000/model-hub/prompt-templates/derived-variables/preview/`
- Auth: one of:
  - API key in header `X-Api-Key`
  - API key in header `X-Secret-Key`

Useful for showing what variables would be extracted before running.

Request body:
    - content: JSON string or object to analyze
    - column_name: Name for the variable prefix

## Request body

- DerivedVariablePreviewRequest
  - `content` object, required
  - `column_name` string

## Response `200`

OK

- DerivedVariableDetailResponse
  - `status` boolean, required
  - `result` DerivedVariableDetail, required
    - `paths` string[]
    - `schema` object
    - `full_variables` string[]
    - `raw_sample` object, nullable
    - `is_json` boolean

## Other responses

- `400`: Bad Request
- `403`: Forbidden
- `404`: Not Found
- `409`: Conflict
- `500`: Internal Server Error
- `default`: Default error response

---

[API](https://skmtc.dev/futureagi/apis/future-agi-management-api.md) · [All operations](https://skmtc.dev/futureagi/apis/future-agi-management-api/llms.txt) · [OpenAPI document](https://skmtc.dev/futureagi/apis/future-agi-management-api/revisions/c8684118e142?raw)
