Prompts
List Prompt Versions
API Reference
Virtual Keys
Prompts
- POSTCreate Prompt
- GETList Prompts
- GETRetrieve Prompt
- PUTUpdate Prompt
- DELDelete Prompt
- PUTPublish Prompt
- GETList Prompt Versions
- GETRetrieve Prompt Version
- PUTUpdate Prompt Version
- Prompt Partials
- Prompt Labels
- Prompt Collections
API Keys
Analytics [BETA]
- Summary
- Groups Paginated Data
- Graphs - Time Series Data
User Invites
Workspaces
Workspace Members
Audit Logs
OpenAPI
List Prompt Versions
GET
/
prompts
/
{promptId}
/
versions
curl --request GET \
--url https://api.portkey.ai/v1/prompts/{promptId}/versions \
--header 'x-portkey-api-key: <api-key>'
[
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"prompt_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"prompt_template": {},
"prompt_version": 123,
"prompt_description": "<string>",
"label_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"created_at": "2023-11-07T05:31:56Z",
"status": "active",
"object": "prompt"
}
]
Authorizations
Path Parameters
Response
200
application/json
List of prompt versions
The response is of type object[]
.
Was this page helpful?
curl --request GET \
--url https://api.portkey.ai/v1/prompts/{promptId}/versions \
--header 'x-portkey-api-key: <api-key>'
[
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"prompt_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"prompt_template": {},
"prompt_version": 123,
"prompt_description": "<string>",
"label_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"created_at": "2023-11-07T05:31:56Z",
"status": "active",
"object": "prompt"
}
]