List all prompts in your workspace or within a specific feature.
const { value } = await basalt.prompt.list()
// Using object syntax const { value } = await basalt.prompt.list({ featureSlug: 'onboarding' })
interface PromptListResponse { slug?: string; status: 'live' | 'draft'; name: string; description?: string; availableVersions: string[]; availableTags: string[]; }
[ { "slug": "welcome-message", "status": "live", "name": "Welcome Message", "description": "A friendly welcome message for new users", "availableVersions": ["1.0.0", "1.1.0", "2.0.0"], "availableTags": ["production", "staging"] }, { "slug": "help-guide", "status": "draft", "name": "Help Guide", "description": "Comprehensive help documentation", "availableVersions": ["0.1.0"], "availableTags": ["development"] } ]
Was this page helpful?