Prompt Management
Get Prompt Versions
Changed onGet all versions of a specific prompt by base prompt ID
👉 Prompt docs
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"
}
]
}
get/prompts/{prompt_id}/versions
Request
- Base URLhttps://api.flock.io (the document declares no server; this is the origin it was published from)
- URLhttps://api.flock.io/prompts/{prompt_id}/versions
- AuthAPI key in header x-litellm-api-key
Path parameters
prompt_idstring required
Query parameters
environmentstring nullable
Response
Successful Response
Changes
- info
api tag
Prompt Managementadded - info
api tag
promptsremoved
- info
- info
api tag
promptsadded - info
api tag
Prompt Managementremoved
- info