prompt-templates
Get Prompt Template Raw Data
get/prompt-templates/{identifier}
Request
- Base URLhttps://docs.promptlayer.com (the document declares no server; this is the origin it was published from)
- AuthAPI key in header X-API-KEY
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Path parameters
identifierstring required
The identifier can be either the prompt name or the prompt id.
Query parameters
versioninteger
Specific version number to retrieve. Mutually exclusive with label.
labelstring
Release label name to retrieve (e.g. 'prod', 'staging'). Mutually exclusive with version.
resolve_snippetsboolean
When true (default), snippets are expanded in the returned prompt_template. When false, raw @@@snippet@@@ references are preserved.
include_llm_kwargsboolean
When true, includes provider-specific llm_kwargs in the response. Requires model metadata to be set on the template.
Response
Successful Response
Changes
No recorded changes to this operation across all 3 revisions of this API.