UseDocumentation Index
Fetch the complete documentation index at: https://docs.corti.ai/llms.txt
Use this file to discover all available pages before exploring further.
getTemplates() to retrieve all document templates available to the authenticated user.
Applies to Web Component, Window API, and PostMessage. Examples on this page
use the Web Component API shape.
Usage
Prerequisites
- User must be authenticated.
Input validation
- None
Possible errors
UNAUTHORIZED: User not authenticated.INTERNAL_ERROR: Failed to fetch templates from the server.
Returns
Use cases
- Display a template picker.
- Filter templates by language.
- Distinguish between built-in and custom templates.
- Pre-populate template selection based on user preferences or defaults.