Dashboards
For instructions on how to authenticate to use this endpoint, see API overview.
Endpoints
GET | |
POST | |
GET | |
POST | |
DELETE | |
GET | |
POST | |
DELETE | |
POST | |
GET | |
PATCH | |
DELETE | |
POST | |
POST | |
POST | |
POST | |
PATCH | |
POST | |
GET |
List all dashboards
Also available via the PostHog MCP server:
dashboards-get-all— Get all dashboards
Required API key scopes
dashboard:readQuery parameters
- folderstring
- formatstringOne of:
"json""txt" - limitinteger
- offsetinteger
- searchstring
Response
Example request
GET /api /projects /:project_id /dashboardsExample response
Status 200
Create dashboards
Also available via the PostHog MCP server:
dashboard-create— Create dashboard
Required API key scopes
dashboard:writeQuery parameters
- formatstringOne of:
"json""txt" - include_dashboardsboolean
Request parameters
- namestringnull
- descriptionstring
- pinnedboolean
- last_accessed_atstringnull
- deletedboolean
- breakdown_colors
- data_color_theme_idintegernull
- tagsarray
- restriction_level
- last_refreshstringnull
- quick_filter_idsarraynull
- use_templatestring
- use_dashboardintegernull
- delete_insightsbooleanDefault:
false - _create_in_folderstring
Response
Example request
POST /api /projects /:project_id /dashboardsExample response
Status 201
List all dashboards collaborators
Required API key scopes
dashboard:readPath parameters
- dashboard_idinteger
Example request
GET /api /projects /:project_id /dashboards /:dashboard_id /collaboratorsExample response
Status 200
Create dashboards collaborators
Required API key scopes
dashboard:writePath parameters
- dashboard_idinteger
Request parameters
- level
- user_uuidstring
Response
Example request
POST /api /projects /:project_id /dashboards /:dashboard_id /collaboratorsExample response
Status 201
Delete dashboards collaborators
Required API key scopes
dashboard:writePath parameters
- dashboard_idinteger
- user__uuidstring
Example request
DELETE /api /projects /:project_id /dashboards /:dashboard_id /collaborators /:user__uuidExample response
Status 204 No response body
List all dashboards sharing
Required API key scopes
sharing_configuration:readPath parameters
- dashboard_idinteger
Example request
GET /api /projects /:project_id /dashboards /:dashboard_id /sharingExample response
Status 200
Create dashboards sharing passwords
Create a new password for the sharing configuration.
Required API key scopes
sharing_configuration:writePath parameters
- dashboard_idinteger
Request parameters
- enabledboolean
- settings
- password_requiredboolean
Response
Example request
POST /api /projects /:project_id /dashboards /:dashboard_id /sharing /passwordsExample response
Status 200
Delete dashboards sharing passwords
Delete a password from the sharing configuration.
Required API key scopes
sharing_configuration:writePath parameters
- dashboard_idinteger
- password_idstring
Example request
DELETE /api /projects /:project_id /dashboards /:dashboard_id /sharing /passwords /:password_idExample response
Status 204 No response body
Create dashboards sharing refresh
Required API key scopes
sharing_configuration:writePath parameters
- dashboard_idinteger
Request parameters
- enabledboolean
- settings
- password_requiredboolean
Response
Example request
POST /api /projects /:project_id /dashboards /:dashboard_id /sharing /refreshExample response
Status 200
Retrieve dashboards
Also available via the PostHog MCP server:
dashboard-get— Get dashboard
Required API key scopes
dashboard:readPath parameters
- idinteger
Query parameters
- filters_overridestring
- formatstringOne of:
"json""txt" - include_dashboardsboolean
- variables_overridestring
Response
Example request
GET /api /projects /:project_id /dashboards /:idExample response
Status 200
Update dashboards
Also available via the PostHog MCP server:
dashboard-update— Update dashboard
Required API key scopes
dashboard:writePath parameters
- idinteger
Query parameters
- formatstringOne of:
"json""txt" - include_dashboardsboolean
Request parameters
- namestringnull
- descriptionstring
- pinnedboolean
- filters
- breakdown_colors
- data_color_theme_idintegernull
- tagsarray
- restriction_level
- quick_filter_idsarraynull
- tilesarray
- use_templatestring
- use_dashboardintegernull
- delete_insightsbooleanDefault:
false
Response
Example request
PATCH /api /projects /:project_id /dashboards /:idExample response
Status 200
Delete dashboards
Also available via the PostHog MCP server:
dashboard-delete— Delete dashboard
Hard delete of this model is not allowed. Use a patch API call to set "deleted" to true
Required API key scopes
dashboard:writePath parameters
- idinteger
Query parameters
- formatstringOne of:
"json""txt"
Example request
DELETE /api /projects /:project_id /dashboards /:idExample response
Status 405 No response body
Create dashboards copy tile
Copy an existing dashboard tile to another dashboard (insight, text card, or widget tile).
Required API key scopes
dashboard:writePath parameters
- idinteger
Query parameters
- formatstringOne of:
"json""txt"
Request parameters
- fromDashboardIdinteger
- tileIdinteger
Response
Example request
POST /api /projects /:project_id /dashboards /:id /copy_tileExample response
Status 200
Create dashboards create text tile
Add a markdown text tile to a dashboard.
Text tiles render as markdown blocks on the dashboard — useful as section headings, dividers, or annotations between insight tiles to give the dashboard structure.
Required API key scopes
dashboard:writePath parameters
- idinteger
Query parameters
- formatstringOne of:
"json""txt"
Request parameters
- bodystring
- layouts
- colorstringnull
Response
Example request
POST /api /projects /:project_id /dashboards /:id /create_text_tileExample response
Status 201
Create dashboards delete
Soft-delete a single tile from a dashboard.
Works for text, insight, and button tiles. The underlying Insight, Text, or ButtonTile object is preserved — only the dashboard tile is hidden. To delete the entire dashboard, use the dashboard delete endpoint instead.
Required API key scopes
dashboard:writePath parameters
- idinteger
Query parameters
- formatstringOne of:
"json""txt"
Request parameters
- tile_idinteger
Example request
POST /api /projects /:project_id /dashboards /:id /delete_tileExample response
Status 204 No response body
Create dashboards move tile
Required API key scopes
dashboard:writePath parameters
- idinteger
Query parameters
- formatstringOne of:
"json""txt"
Request parameters
- to_dashboardinteger
- tile
Response
Example request
POST /api /projects /:project_id /dashboards /:id /move_tileExample response
Status 200
Update dashboards move tile
Required API key scopes
dashboard:writePath parameters
- idinteger
Query parameters
- formatstringOne of:
"json""txt"
Request parameters
- to_dashboardinteger
- tile
Response
Example request
PATCH /api /projects /:project_id /dashboards /:id /move_tileExample response
Status 200
Create dashboards reorder tiles
Required API key scopes
dashboard:writePath parameters
- idinteger
Query parameters
- formatstringOne of:
"json""txt"
Request parameters
- tile_orderarray
- layoutDefault:
preserve
Response
Example request
POST /api /projects /:project_id /dashboards /:id /reorder_tilesExample response
Status 200
Retrieve dashboards run insights
Run all insights on a dashboard and return their results.
Required API key scopes
query:readPath parameters
- idinteger
Query parameters
- filters_overridestring
- formatstringOne of:
"json""txt" - output_formatstringOne of:
"json""optimized" - refreshstringOne of:
"blocking""force_blocking""force_cache" - variables_overridestring
Response
Example request
GET /api /projects /:project_id /dashboards /:id /run_insights