---
title: "Prompt Template"
method: GET
path: "/v1.0/prompts/{slug}/"
tags: ["prompts"]
---

# Prompt Template

`GET /v1.0/prompts/{slug}/`

## Request

- Base URL: `https://api.formaloo.me`
- URL: `https://api.formaloo.me/v1.0/prompts/{slug}/`
- Auth: one of:
  - `cookieAuth` (a scheme the document does not define)
  - `basicAuth` (a scheme the document does not define)

## Path parameters

- `slug` string, required

## Headers

- `x-api-key` string, required

## Response `200`

- PromptTemplate: Serializer for the PromptTemplate model.
  - `title` string, required: The title of the prompt, only for easier management of them.
  - `slug` string, nullable: Unique slug of the object
  - `prompt_type` 'choice_analyze' | 'rows_analyze' | 'custom_prompt' | 'translation' | 'generic', required: * `choice_analyze` - Choice Analyze * `rows_analyze` - Rows Analyze * `custom_prompt` - Custom Prompt * `translation` - Translation * `generic` - Generic
  - `variables` unknown[]: Get the variables used in the prompt template. These variables will be replaced with the actual values when generating the prompt.
    - unknown
  - `return_json_responses` boolean: should the responses be returned as JSON?

---

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