Skip to main content
GET
/
api
/
v2
/
projects
/
{project_id}
/
prompt-templates
/
id
/
{template_id}
Get prompt template
curl --request GET \
  --url https://api.example.com/api/v2/projects/{project_id}/prompt-templates/id/{template_id} \
  --header 'Authorization: Bearer <token>'
{
  "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "name": "<string>",
  "latest_template_version_id": null
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

project_id
string
required
template_id
string
required

Response

200 - application/json

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

id
string<uuid>
required
name
string
required
latest_template_version_id
string<uuid> | null