Skip to main content
GET
/
api
/
v2
/
projects
/
{project_id}
/
prompt-templates
/
all
/
{environment}
Get all prompt templates by environment
curl --request GET \
  --url https://api.example.com/api/v2/projects/{project_id}/prompt-templates/all/{environment} \
  --header 'Content-Type: application/json' \
  --data '{}'
{
  "prompt_templates": [
    {
      "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",
      "content": [
        {
          "role": "<string>",
          "content": "<string>",
          "media_slots": [
            {
              "type": "audio",
              "placeholder_name": "<string>"
            }
          ]
        }
      ],
      "tool_schema": [
        {
          "name": "<string>",
          "description": "<string>",
          "parameters": {}
        }
      ],
      "output_schema": {}
    }
  ]
}

Path Parameters

project_id
string
required
environment
string
required

Body

application/json

The body is of type EmptyRequest · object.

Response

200 - application/json

PromptTemplatesByEnvironmentResponse(prompt_templates: list[server.api_routes.prompt_templates_api_v2.PlainPromptTemplate])

prompt_templates
PlainPromptTemplate · object[]
required