Reference
Get Prompt Template (Deprecated)
GET
/
rest
/
get-prompt-template
Get Prompt Template allows you to get the template for a prompt based on the name. If the template is found, it will send you back a json object that includes some metadata (including the id
, which can be used as the prompt_id
in track-request
) and the prompt-template
itself which is a JSON representation of your prompt following the langchain format.
Headers
X-API-KEY
string
requiredQuery Parameters
prompt_name
string
requiredversion
integer
label
string
Response
200 - application/json
id
integer
requiredThe id of the prompt
version
integer
The version of the prompt
prompt_name
string
requiredPrompt name has to be less than 128 characters and can only contain letters, numbers, and underscores. If a prompt exists with this name it will be pushed into an older version
prompt_template
object
requiredChat Prompt Template
tags
string[]
Array of string tags for a template
commit_message
string
Commit message for the prompt version
metadata
object
Was this page helpful?