v2

latestOpenAPI 3.1.02026-07-26143251806.6 KB
prompt-templates

Get Prompt Template by ID

post/prompt-templates/{identifier}

Path parameters

identifierstring required

The identifier can be either the prompt name or the prompt id.

Request body

versioninteger nullable
workspace_idinteger nullable
labelstring nullable
provider'openai' | 'anthropic' nullable
input_variablesobject nullable
metadata_filtersobject nullable

Optional dictionary of key values used for A/B release labels.

modelstring nullable

Optional model name used for returning default parameters with llm_kwargs.

model_parameter_overridesobject nullable

Optional dictionary of model parameter overrides to use with the prompt template. This will override the parameters at runtime for the specified model and will try to make sure the model supports these parameters. For example, if you supply maxOutputTokens for OpenAI, it will be converted to max_completion_tokens.

Response

Successful Response

idinteger required
prompt_namestring required
commit_messagestring nullable
llm_kwargsobject nullable

When you optionally specify provider in the body, llm_kwargs will be returned for that specific provider and you can pass these kwargs to the provider's API directly. Important: This object's structure is provider-specific and may change without notice as LLM providers update their APIs. For stable, provider-agnostic prompt data, use prompt_template instead.

versioninteger