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

# List prompts

`GET /v2/prompts`

List prompts the user has access to.

The prompts are sorted by update date, with the most recently updated
prompts coming first.

<Note>This endpoint is in beta, read more [here](https://arize.com/docs/ax/rest-reference#api-version-stages).</Note>

## Query parameters

- `space_id` string — A universally unique identifier (base64-encoded opaque string).
- `space_name` string
- `name` string
- `limit` integer
- `cursor` string

## Response `200`

Returns a list of prompt objects

- ListPromptsResponse
  - `prompts` Prompt[], required — A list of prompts
    - `id` string, required — The prompt ID
    - `name` string, required — The prompt name
    - `description` string, nullable — The prompt description
    - `space_id` string, required — The space ID the prompt belongs to
    - `created_at` string, date-time, required — When the prompt was created
    - `updated_at` string, date-time, required — When the prompt was last updated
    - `created_by_user_id` string, required — The user ID of the user who created the prompt
  - `pagination` PaginationMetadata, required — Cursor-based pagination metadata. Use `next_cursor` in the subsequent request's `cursor` query parameter.
    - `next_cursor` string — Opaque cursor for fetching the next page. Treat as an unreadable token. Present when `has_more` is true; omitted when `has_more` is false.
    - `has_more` boolean, required — True if another page of results is available.

## Other responses

- `400` — Invalid request
- `401` — Authentication is required
- `403` — Insufficient permissions to access this resource
- `404` — Not found
- `429` — Rate limit exceeded

---

[API](https://skmtc.net/arize-ai/apis/arize-rest-api.md) · [All operations](https://skmtc.net/arize-ai/apis/arize-rest-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/arize-ai/arize-rest-api/versions/2ce448f1de13/schema)
