---
title: "List prompts in your organization"
method: GET
path: "/api/v1/prompts"
tags: ["Prompts"]
---

# List prompts in your organization

`GET /api/v1/prompts`

## Request

- Base URL: `https://getorquesta.com`
- URL: `https://getorquesta.com/api/v1/prompts`
- Auth: one of:
  - HTTP bearer
  - API key in header `X-API-Key`

Returns prompts ordered by `createdAt` descending. Agent-token (`oat_`) calls are
automatically restricted to the token's project; passing a different `projectId` returns 403.

## Query parameters

- `projectId` string, uuid
- `createdBy` string, uuid
- `status` string
- `from` string, date-time
- `to` string, date-time
- `sessionId` string
- `offset` integer
- `limit` integer

## Response `200`

Paginated prompt list.

- object
  - `prompts` PromptListItem[], required
    - `id` string, uuid, required
    - `content` string, required
    - `status` 'pending' | 'running' | 'completed' | 'failed' | 'cancelled', required
    - `source` 'api' | 'auto' | 'auto-brain' | 'batuta' | 'dashboard', required
    - `projectId` string, uuid, required
    - `projectName` string
    - `createdBy` string, uuid, nullable
    - `createdByEmail` string, email, nullable
    - `createdByName` string, nullable
    - `parentPromptId` string, uuid, nullable
    - `complexity` string, nullable
    - `tags` string[]
    - `isStarred` boolean
    - `tokensUsed` integer
    - `costCents` integer
    - `cliType` string, nullable
    - `model` string, nullable: Extracted from llm_config.model
    - `sessionId` string, nullable: Interactive session that reported this prompt (context.sessionId)
    - `gitBranch` string, nullable
    - `gitCommitSha` string, nullable
    - `gitCommitUrl` string, uri, nullable
    - `linearIssueIdentifier` string, nullable
    - `linearIssueUrl` string, uri, nullable
    - `createdAt` string, date-time, required
    - `startedAt` string, date-time, nullable
    - `completedAt` string, date-time, nullable
    - `error` string, nullable
  - `pagination` Pagination, required
    - `offset` integer, required
    - `limit` integer, required
    - `total` integer, required
    - `hasMore` boolean, required

## Other responses

- `401`: Missing or invalid API key.
- `403`: Insufficient scope, revoked token, or project-scope mismatch.
- `500`: Internal server error.

---

[API](https://skmtc.dev/getorquesta/apis/orquesta-public-api.md) · [All operations](https://skmtc.dev/getorquesta/apis/orquesta-public-api/llms.txt) · [OpenAPI document](https://skmtc.dev/getorquesta/apis/orquesta-public-api/revisions/7d27e0ae8324?raw)
