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
}
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
}
Get a list of all prompt templates.
Successful Response
The response is of type object
.
Was this page helpful?