cURL
curl --request GET \ --url https://api.promptlayer.com/prompt-templates \ --header 'X-API-KEY: <x-api-key>'
{ "has_next": true, "has_prev": true, "items": [ { "id": 123, "prompt_name": "<string>", "prompt_template": { "content": [ { "type": "text", "text": "<string>" } ], "input_variables": [], "template_format": "f-string", "type": "completion" }, "metadata": { "model": { "provider": "<string>", "name": "<string>", "parameters": {} }, "customField": "<string>" }, "commit_message": "<string>", "llm_kwargs": {}, "version": 123 } ], "next_num": 123, "prev_num": 123, "page": 123, "pages": 123, "total": 123 }
Filter prompt templates by release label (e.g., 'prod', 'dev', 'staging')
Successful Response
Show child attributes
Was this page helpful?