Get latest prompt version
curl --request GET \
--url https://api.example.com/v1/prompts/{prompt_identifier}/latest{
"data": {
"model_name": "<string>",
"template": {
"type": "<string>",
"messages": [
{
"content": "<string>"
}
]
},
"invocation_parameters": {
"type": "<string>",
"openai": {
"temperature": 123,
"max_tokens": 123,
"max_completion_tokens": 123,
"frequency_penalty": 123,
"presence_penalty": 123,
"top_p": 123,
"seed": 123,
"stop": [
"<string>"
],
"extra_body": {}
}
},
"id": "<string>",
"description": "<string>",
"tools": {
"type": "<string>",
"tools": [
{
"type": "<string>",
"function": {
"name": "<string>",
"description": "<string>",
"parameters": {},
"strict": true
}
}
],
"tool_choice": {
"type": "<string>"
},
"disable_parallel_tool_calls": true
},
"response_format": {
"type": "<string>",
"json_schema": {
"name": "<string>",
"description": "<string>",
"schema": {},
"strict": true
}
}
}
}Prompts
Get latest prompt version
Retrieve the most recent version of a specific prompt.
GET
/
v1
/
prompts
/
{prompt_identifier}
/
latest
Get latest prompt version
curl --request GET \
--url https://api.example.com/v1/prompts/{prompt_identifier}/latest{
"data": {
"model_name": "<string>",
"template": {
"type": "<string>",
"messages": [
{
"content": "<string>"
}
]
},
"invocation_parameters": {
"type": "<string>",
"openai": {
"temperature": 123,
"max_tokens": 123,
"max_completion_tokens": 123,
"frequency_penalty": 123,
"presence_penalty": 123,
"top_p": 123,
"seed": 123,
"stop": [
"<string>"
],
"extra_body": {}
}
},
"id": "<string>",
"description": "<string>",
"tools": {
"type": "<string>",
"tools": [
{
"type": "<string>",
"function": {
"name": "<string>",
"description": "<string>",
"parameters": {},
"strict": true
}
}
],
"tool_choice": {
"type": "<string>"
},
"disable_parallel_tool_calls": true
},
"response_format": {
"type": "<string>",
"json_schema": {
"name": "<string>",
"description": "<string>",
"schema": {},
"strict": true
}
}
}
}Was this page helpful?
⌘I

