---
title: "Get All Prompts"
method: GET
path: "/prompts/"
tags: ["PROMPT_LIBRARY"]
---

# Get All Prompts

`GET /prompts/`

Get all prompts (public + tenant) with filtering, sorting, and pagination.
Returns prompts accessible to the user based on their teams.

## Query parameters

- `tags` string[], nullable — Filter by tags. Returns prompts that have ANY of the specified tags.
- `owners` integer[], nullable — Filter by owner user IDs. Supports multiple values.
- `teams` integer[], nullable — Filter by team IDs.
- `search_text` string, nullable — Search in title, description, and prompt text
- `is_public` boolean, nullable — Filter by public/tenant prompts
- `integration_type` string, nullable — Tenant platform (e.g. snowflake, databricks, dbt). Scopes public prompts so Databricks tenants only see Databricks prompts and non-Databricks tenants don't see Databricks prompts.
- `type` string, nullable — Filter by prompt type: 'saved' for tenant prompts, 'default' or 'public' for public prompts. Supports comma-separated values like 'default,saved' to get both types.
- `page` integer — Page number
- `page_size` integer — Number of items per page
- `sort` string — Sort by field: created_at, updated_at, last_used_at
- `sort_order` string — Sort order: asc or desc
- `size` integer — Page size

## Response `200`

Successful Response

- PagePromptResponse
  - `items` PromptResponse[], required
    - `id` string, uuid, required
    - `title` string, required
    - `description` string, nullable
    - `prompt_text` string, required
    - `tags` string[]
    - `teams` integer[], nullable
    - `created_by` integer, required
    - `created_at` string, date-time, required
    - `updated_at` string, date-time, required
    - `last_used_at` string, date-time, nullable
    - `attributes` object
    - `is_public` boolean
  - `total` integer, nullable, required
  - `page` integer, nullable, required
  - `size` integer, nullable, required
  - `pages` integer, nullable

## Other responses

- `422` — Validation Error

---

[API](https://skmtc.net/myaltimate/apis/fastapi.md) · [All operations](https://skmtc.net/myaltimate/apis/fastapi/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/myaltimate/fastapi/versions/aab3fe5c9f05/schema)
