---
title: "List prompt templates with optional filters"
method: GET
path: "/api/prompt-templates"
tags: ["PromptTemplates"]
---

# List prompt templates with optional filters

`GET /api/prompt-templates`

## Query parameters

- `eventType` string
- `scope` string
- `scopeId` string
- `isDefault` 'true' | 'false'

## Response `200`

List of prompt templates

- object
  - `templates` PromptTemplateResponse[], required
    - `id` string, required
    - `eventType` string, required
    - `scope` 'global' | 'agent' | 'repo', required
    - `scopeId` string, nullable, required
    - `state` 'enabled' | 'default_prompt_fallback' | 'skip_event', required
    - `body` string, required
    - `isDefault` boolean, required
    - `version` number, required
    - `createdBy` string, nullable, required
    - `createdAt` string, required
    - `updatedAt` string, required
    - `defaultDrifted` boolean, required

## Changes

- **2026-08-20** `d06bca6c3ff5` — 12 breaking, 1 info
  - the `templates/items/` response's property type changed from `object` to no type for status `200`
  - removed the required property `templates/items/body` from the response with the `200` status
  - removed the required property `templates/items/createdAt` from the response with the `200` status
  - removed the required property `templates/items/createdBy` from the response with the `200` status
  - …9 more
- **2026-08-07** `06cac6a7c5bc` — 1 info
  - added the media type `application/json` for the response with the status `200`

[Change history](https://skmtc.dev/desplega-ai/apis/agent-swarm-api/changes/api/prompt-templates/get.md)

---

[API](https://skmtc.dev/desplega-ai/apis/agent-swarm-api.md) · [All operations](https://skmtc.dev/desplega-ai/apis/agent-swarm-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/desplega-ai/agent-swarm-api/revisions/8cde933218b5/schema)
