Welcome to Portkey Forum

Updated 5 days ago

Prompt labels and the prompt render api

I noticed prompts can have labels (production, staging etc). How do I use it over the prompt render api?
v
1 comment
Hey! You can send the prompt slug along with label in the render API like this: /prompts/{{prompt_slug}}@{{prompt_label}}/render

Here is a documentation which shows the usage for /completions API. But the same format can be used for render as well. We will update it in docs.
https://portkey.ai/docs/product/prompt-library/prompt-templates#prompt-labels
Add a reply
Sign up and join the conversation on Discord