latestOpenAPI 3.1.02026-08-197104501.1 MB
8fbaab4fc7c5
Prompt Management
Get Prompt Info
Get detailed information about a specific prompt by ID, including prompt content
👉 [Prompt docs](https://docs.litellm.ai/docs/proxy/prompt_management)
Example Request:
```bash
curl -X GET "http://localhost:4000/prompts/my_prompt_id/info" \
-H "Authorization: Bearer <your_api_key>"
```
Example Response:
```json
{
"prompt_id": "my_prompt_id",
"litellm_params": {
"prompt_id": "my_prompt_id",
"prompt_integration": "dotprompt",
"prompt_directory": "/path/to/prompts"
},
"prompt_info": {
"prompt_type": "config"
},
"created_at": "2023-11-09T12:34:56.789Z",
"updated_at": "2023-11-09T12:34:56.789Z",
"content": "System: You are a helpful assistant.
User: {{user_message}}" } ```
get/prompts/{prompt_id}
Path parameters
prompt_idstring required
Query parameters
environmentstring nullable
Response
Successful Response