---
title: "Get prompt template"
method: GET
path: "/api/v2/projects/{project_id}/prompt-templates/id/{template_id}"
tags: ["Prompt Templates"]
---

# Get prompt template

`GET /api/v2/projects/{project_id}/prompt-templates/id/{template_id}`

## Request

- Base URL: `https://app.freeplay.ai` (the document declares no server; this is the origin it was published from)
- URL: `https://app.freeplay.ai/api/v2/projects/{project_id}/prompt-templates/id/{template_id}`
- Auth: HTTP bearer
- TypeScript: <https://skmtc.dev/freeplay/apis/freeplay-api/docs/api/v2/projects/:project_id/prompt-templates/id/:template_id/get.ts> (a function with typed inputs; its response is checked against the schema)

Retrieve a prompt template's metadata by ID. Use to check if a template exists or get its latest version ID.

## Path parameters

- `project_id` string, required
- `template_id` string, required

## Response `200`

PromptTemplateInfo(id: uuid.UUID, name: str, latest_template_version_id: Optional[uuid.UUID] = None)

- object
  - `id` string, uuid, required
  - `name` string, required
  - `latest_template_version_id` string, uuid, nullable

---

[API](https://skmtc.dev/freeplay/apis/freeplay-api.md) - [All operations](https://skmtc.dev/freeplay/apis/freeplay-api/llms.txt) - [OpenAPI document](https://skmtc.dev/freeplay/apis/freeplay-api/revisions/69c553220183?raw)
