List Prompts
List prompt templates in the workspace with optional filters.
Request
curl -X GET "https://platform.chanl.ai/api/v1/prompts?status=active&limit=20" \
-H "X-API-Key: chanl_key_..."import { Chanl } from '@chanl/sdk';
const chanl = new Chanl({ apiKey: process.env.CHANL_API_KEY });
const { data } = await chanl.prompts.list({ status: 'active', limit: 20 });import asyncio
from chanl import AsyncChan
async def main():
async with AsyncChan(api_key="chanl_key_...") as client:
result = await client.prompts.list(status="active", limit=20)
print(result)
asyncio.run(main())Query parameters
| Parameter | Type | Description |
|---|---|---|
search | string | Search name or content |
category | string | support, sales, onboarding, general |
status | string | active, draft, archived |
tags | string | Comma-separated tags |
page | number | Page number |
limit | number | Page size |