---
title: "Get Prompt Info"
method: GET
path: "/prompts/{prompt_id}"
tags: ["Prompt Management"]
---

# Get Prompt Info

`GET /prompts/{prompt_id}`

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}}"
    }
    ```

## Path parameters

- `prompt_id` string, required

## Response `200`

Successful Response

- PromptInfoResponse
  - `prompt_spec` PromptSpec, required
    - `prompt_id` string, required
    - `litellm_params` PromptLiteLLMParams, required
      - `prompt_id` string, nullable
      - `prompt_integration` string, required
      - `api_base` string, nullable
      - `api_key` string, nullable
      - `provider_specific_query_params` object, nullable
      - `ignore_prompt_manager_model` boolean, nullable
      - `ignore_prompt_manager_optional_params` boolean, nullable
      - `dotprompt_content` string, nullable
    - `prompt_info` PromptInfo, required
      - `prompt_type` 'config' | 'db', required
    - `created_at` string, date-time, nullable
    - `updated_at` string, date-time, nullable
    - `version` integer, nullable
  - `raw_prompt_template` PromptTemplateBase
    - `litellm_prompt_id` string, required
    - `content` string, required
    - `metadata` object, nullable

## Other responses

- `422` — Validation Error

---

[API](https://skmtc.net/sea-lion/apis/litellm-api.md) · [All operations](https://skmtc.net/sea-lion/apis/litellm-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/sea-lion/litellm-api/revisions/79928a3d37d3/schema)
