Skip to main content
POST
/
api
/
v2
/
projects
/
{project_id}
/
prompt-templates
/
name
/
{name}
Get bound prompt template by name and environment
curl --request POST \
  --url https://api.example.com/api/v2/projects/{project_id}/prompt-templates/name/{name} \
  --header 'Content-Type: application/json' \
  --data '{}'
{
  "prompt_template_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "prompt_template_version_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "prompt_template_name": "<string>",
  "version_name": "<string>",
  "version_description": "<string>",
  "metadata": {
    "provider": "<string>",
    "flavor": "<string>",
    "model": "<string>",
    "params": {},
    "provider_info": {}
  },
  "format_version": 123,
  "project_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}

Path Parameters

project_id
string
required
name
string
required

Query Parameters

environment
string | null
format
string | null
flavor_name
string | null

Body

application/json
{key}

Response

200 - application/json

PromptTemplateVersion(prompt_template_id: uuid.UUID, prompt_template_version_id: uuid.UUID, prompt_template_name: str, version_name: Optional[str], version_description: Optional[str], metadata: server.api_routes.prompt_templates_api_v2.PromptTemplateMetadata, format_version: int, project_id: uuid.UUID)

prompt_template_id
string<uuid>
required
prompt_template_version_id
string<uuid>
required
prompt_template_name
string
required
version_name
string | null
required
version_description
string | null
required
metadata
PromptTemplateMetadata · object
required
format_version
integer
required
project_id
string<uuid>
required