Skip to main content
GET
/
v1
/
prompts
/
{prompt_identifier}
/
versions
{
  "data": [
    {
      "description": "<string>",
      "model_provider": "OPENAI",
      "model_name": "<string>",
      "template": {
        "type": "<string>",
        "messages": [
          {
            "role": "user",
            "content": "<string>"
          }
        ]
      },
      "template_type": "STR",
      "template_format": "MUSTACHE",
      "invocation_parameters": {
        "type": "<string>",
        "openai": {
          "temperature": 123,
          "max_tokens": 123,
          "max_completion_tokens": 123,
          "frequency_penalty": 123,
          "presence_penalty": 123,
          "top_p": 123,
          "seed": 123,
          "reasoning_effort": "minimal"
        }
      },
      "tools": {
        "type": "<string>",
        "tools": [
          {
            "type": "<string>",
            "function": {
              "name": "<string>",
              "description": "<string>",
              "parameters": {},
              "strict": true
            }
          }
        ],
        "tool_choice": {
          "type": "<string>"
        },
        "disable_parallel_tool_calls": true
      },
      "response_format": {
        "type": "<string>",
        "json_schema": {
          "name": "<string>",
          "description": "<string>",
          "schema": {},
          "strict": true
        }
      },
      "id": "<string>"
    }
  ],
  "next_cursor": "<string>"
}

Path Parameters

prompt_identifier
string
required

The identifier of the prompt, i.e. name or ID.

Query Parameters

cursor
string | null

Cursor for pagination (base64-encoded promptVersion ID)

limit
integer
default:100

The max number of prompt versions to return at a time.

Required range: x > 0

Response

A list of prompt versions with pagination information

data
PromptVersion · object[]
required
next_cursor
string | null
required