---
title: "Generate synthetic data for prompt variables using the SyntheticDataAgent."
method: POST
path: "/model-hub/prompt-templates/generate-variables/"
tags: ["model-hub"]
---

# Generate synthetic data for prompt variables using the SyntheticDataAgent.

`POST /model-hub/prompt-templates/generate-variables/`

## Request

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

Expected payload:
{
    "prompt_name": "string",
    "prompt_instructions": "list/array" ,
    "variable_names": ["string"],
    "variable_count": "int",
    "generation_type": "prompt"
}

## Request body

- PromptTemplate
  - `id` string, uuid
  - `name` string, required
  - `description` string, nullable
  - `variable_names` object, nullable
  - `organization` string, uuid, nullable
  - `prompt_folder` string, uuid, nullable
  - `placeholders` object, nullable
  - `created_by` string, uuid, nullable

## Response `201`

Created

- PromptTemplate
  - `id` string, uuid
  - `name` string, required
  - `description` string, nullable
  - `variable_names` object, nullable
  - `organization` string, uuid, nullable
  - `prompt_folder` string, uuid, nullable
  - `placeholders` object, nullable
  - `created_by` string, uuid, nullable

## Other responses

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