---
title: "List Prompts"
method: GET
path: "/v1/prompts"
tags: ["Prompt"]
---

# List Prompts

`GET /v1/prompts`

## Request

- Base URL: `https://api.confident-ai.com`
- URL: `https://api.confident-ai.com/v1/prompts`
- Auth: none declared
- TypeScript: <https://skmtc.dev/confident-ai/apis/confident-ai-metrics-api/docs/v1/prompts/get.ts> (a function with typed inputs; its response is checked against the schema)

Lists all the available prompts in your Confident AI project.

## Response `200`

- GetPromptsResponse
  - `success` boolean, required: This is true if the prompts were successfully retrieved.
  - `data` object, required: This maps to all the prompts retrieved.
    - `prompts` object[], required
      - `id` string, required: This is the unique id of the dataset.
      - `alias` string, required: This is the alias of the dataset, which is unique within your project.
      - `type` 'TEXT' | 'LIST', required: This is the type of the prompt (TEXT or LIST).
  - `deprecated` boolean, required: This is true if this prompts endpoint is deprecated.

---

[API](https://skmtc.dev/confident-ai/apis/confident-ai-metrics-api.md) - [All operations](https://skmtc.dev/confident-ai/apis/confident-ai-metrics-api/llms.txt) - [OpenAPI document](https://skmtc.dev/confident-ai/apis/confident-ai-metrics-api/revisions/95cdde71b65e?raw)
