provider dashboard_templates GET
/api/projects/{project_id}/dashboard_templates/ @utdk/posthog
/api/projects/{project_id}/dashboard_templates/ dashboard_templates_list
- is_featured query
- Omit for all templates. When set, filter by featured flag; parsed with str_to_bool (same as other API query booleans).
- boolean
- limit query
- Number of results to return per page.
- integer
- offset query
- The initial index from which to return the results.
- integer
- ordering query
- Optional. When not using `search`, results are sorted with featured templates first (`is_featured=true`), then by `template_name` (case-insensitive A–Z; `-template_name` for Z–A) or by `created_at` (`-created_at` for newest first). When `search` is set, order is featured first, then relevance rank, then case-insensitive name for ties.
- enum: -created_at, -template_name, created_at, template_name
- project_id path required
- Project ID of the project you're trying to access. To find the ID of the project, make a call to /api/projects/.
- string
- scope query
- Optional. `global`: official templates only. `team`: this project's saved templates only (`scope=team` rows for the current project). `organization`: templates shared across all projects in this organization. `feature_flag`: feature-flag dashboard templates only. Omit for official, organization, and this project's templates (default dashboard template picker behavior).
- enum: feature_flag, global, organization, team
Try it
Authentication
Configure credentials for PostHog API
Code snippet
Updates live as you fill in the form above.
TypeScript
import posthog from '@utdk/posthog';
await posthog.dashboardTemplatesList()