---
title: "List an agent's prompts"
method: GET
path: "/v1/agent/{agentId}/prompts"
tags: ["Agent"]
---

# List an agent's prompts

`GET /v1/agent/{agentId}/prompts`

## Request

- Base URL: `https://api.roark.ai`
- URL: `https://api.roark.ai/v1/agent/{agentId}/prompts`
- Auth: HTTP bearer

Returns the agent's prompt lineages. Each lineage is an independent version history, labelled by its `source` (USER, API, CONFIG, or a provider integration). `prompt` is the current content.

## Path parameters

- `agentId` string, uuid, required

## Response `200`

The agent's prompt lineages.

- GetAgentPromptsResponse
  - `data` AgentPromptResponse[], required
    - `id` string, uuid, required: Prompt lineage ID (its own version history).
    - `source` 'USER' | 'RETELL_INTEGRATION' | 'VAPI_INTEGRATION' | 'ELEVEN_LABS_INTEGRATION' | 'BLAND_INTEGRATION' | 'PIPECAT_CLOUD_INTEGRATION' | 'PIPECAT_SELF_HOSTED_INTEGRATION' | 'LIVEKIT_SELF_HOSTED_INTEGRATION' | 'API' | 'CONFIG' | 'API_MANAGED', required: Where this prompt came from: USER (edited in the app), API (provided via the API or on calls), CONFIG (managed by config-as-code), or a provider integration.
    - `prompt` string, required: Current prompt content (the latest version).
    - `updatedAt` string, required: When the current version was recorded (ISO 8601).
    - `createdAt` string, required: When this prompt lineage was first created (ISO 8601).

## Other responses

- `401`: Unauthorized
- `404`: Not Found
- `500`: Internal Server Error

## Changes

> 187 revisions in range; 1 not diffed.

- **2026-09-09** `7ea77678cced`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/roarkhq/apis/roark-analytics-api/changes/v1/agent/:agentId/prompts/get.md)

---

[API](https://skmtc.dev/roarkhq/apis/roark-analytics-api.md) - [All operations](https://skmtc.dev/roarkhq/apis/roark-analytics-api/llms.txt) - [OpenAPI document](https://skmtc.dev/roarkhq/apis/roark-analytics-api/revisions/1a91a5c90e44?raw)
