Prompt Versions
Create a Prompt Version
Changed onCreates a new version of the prompt template in 'draft' state.
post/v1/prompts/{id}/versions
Request
- Base URL: http://localhost:3000
- URL: http://localhost:3000/v1/prompts/{id}/versions
- Auth: HTTP bearer
Path parameters
idstring uuid required
Unique prompt UUID.
Request body
Example request
{
"template": "Hello, {{.name}}!",
"model": "anthropic/claude-opus-4-6",
"model_params": {
"temperature": 0.7,
"max_tokens": 1024
}
}Response
Version created successfully
Example response
{
"version": {
"template": "Hello {{.name}}!",
"model": "anthropic/claude-opus-4-6",
"model_params": {
"temperature": 0.7,
"max_tokens": 1024,
"thinking": {
"type": "enabled",
"budget_tokens": 512
}
}
}
}Changes
- info
added the new optional request property
- info
added the new optional request property
- info
added the required property
/to the response with the status - info
added the required property
/to the response with the status
- info
- info
the endpoint scheme security
ApiKeyAuthwas removed from the API
- info