Documentation

Prompts API

| Method | Path | Description | | --- | --- | --- | | GET | /api/prompts | List prompts (pagination, search, filter) | | POST | /api/prompts | Create a new prompt | | GET | /api/prompts/:id | Get prompt details (increments use count) | | PATCH | /api/prompts/:id | Update prompt (pass only changed fields) | | DELETE | /api/prompts/:id | Delete a prompt | | GET | /api/prompts/search | Keyword / semantic search | | GET | /api/prompts/sync | Full or incremental pull for offline sync | ## Query Parameters (GET /api/prompts) | Param | Type | Description | | --- | --- | --- | | limit | number | Page size, default 50, max 200 | | offset | number | Pagination offset | | q | string | Keyword search across name / description / content | | category | string | Filter by category | | org_id | string | Filter by workspace ID |