Get Prompt Template (Raw)
Retrieve raw prompt template data without applying input variables. This endpoint is useful for template inspection, local caching, and GitHub sync workflows.Documentation Index
Fetch the complete documentation index at: https://promptlayer-claude-nice-fermi-nop3f.mintlify.app/llms.txt
Use this file to discover all available pages before exploring further.
Behavior Notes
resolve_snippets=falsereturns raw@@@snippet@@@references instead of expanded snippet content.include_llm_kwargs=trueincludes provider-specific LLM API arguments for local execution or caching.- To bypass the default cache, send
Cache-Control: no-cache. - The
llm_kwargsshape is provider-specific and may change as provider APIs change; useprompt_templatefor stable, provider-agnostic data.
Related
Authorizations
Path Parameters
The identifier can be either the prompt name or the prompt id.
Query Parameters
Specific version number to retrieve. Mutually exclusive with label.
Release label name to retrieve (e.g. 'prod', 'staging'). Mutually exclusive with version.
When true (default), snippets are expanded in the returned prompt_template. When false, raw @@@snippet@@@ references are preserved.
When true, includes provider-specific llm_kwargs in the response. Requires model metadata to be set on the template.
Response
Successful Response
The prompt template ID.
The name of the prompt template.
The version number of the prompt template.
The workspace this prompt template belongs to.
The prompt template content. When resolve_snippets is true (default), snippets are expanded. When false, raw @@@snippet@@@ references are preserved.
- Completion Template
- Chat Template
List of snippet references used in this template.
Model configuration including provider, model name, and parameters.
The commit message for this version.
Tags associated with the prompt template.
Timestamp when this version was created.
Provider-specific LLM arguments. Only present when include_llm_kwargs=true. Structure is provider-specific and may change without notice.

