Get Prompt Versions
Get all versions of a specific prompt by base prompt ID
Example Request:
curl -X GET "http://localhost:4000/prompts/jack_success/versions" \
-H "Authorization: Bearer <your_api_key>"
Example Response:
{
"prompts": [
{
"prompt_id": "jack_success.v1",
"litellm_params": {...},
"prompt_info": {"prompt_type": "db"},
"created_at": "2023-11-09T12:34:56.789Z",
"updated_at": "2023-11-09T12:34:56.789Z"
},
{
"prompt_id": "jack_success.v2",
"litellm_params": {...},
"prompt_info": {"prompt_type": "db"},
"created_at": "2023-11-09T13:45:12.345Z",
"updated_at": "2023-11-09T13:45:12.345Z"
}
]
}
Path parameters
Query parameters
Response
Successful Response
Changes
Changed in 5 of the 16 revisions of this API.10
- ○
api tag
Prompt Managementaddedapi-tag-added
- ○
api tag
promptsremovedapi-tag-removed
This revision also has 2 changes that name no endpoint, such as unreferenced schemas being removed. See the revision's changelog
- ○
- ○
api tag
promptsaddedapi-tag-added
- ○
api tag
Prompt Managementremovedapi-tag-removed
This revision also has 19 changes that name no endpoint, such as unreferenced schemas being removed. See the revision's changelog
- ○
- ○
api tag
Prompt Managementaddedapi-tag-added
- ○
api tag
promptsremovedapi-tag-removed
- ○
- ○
api tag
promptsaddedapi-tag-added
- ○
api tag
Prompt Managementremovedapi-tag-removed
- ○
- ○
api tag
Prompt Managementaddedapi-tag-added
- ○
api tag
promptsremovedapi-tag-removed
- ○