Core-8
For instructions on how to authenticate to use this endpoint, see API overview.
Endpoints
POST | |
GET | |
PATCH | |
DELETE | |
POST | |
POST | |
GET | |
GET | |
GET | |
POST | |
GET | |
PATCH | |
DELETE | |
POST | |
GET | |
GET | |
POST | |
GET |
Create comments
Required API key scopes
comment:writeRequest parameters
- deletedbooleannull
- mentionsarray
- slugstring
- is_taskbooleanDefault:
false - contentstringnull
- rich_content
- item_idstringnull
- item_context
- scopestring
- source_commentstringnull
Response
Example request
POST /api /projects /:project_id /commentsExample response
Status 201
Retrieve comments
Required API key scopes
comment:readPath parameters
- idstring
Response
Example request
GET /api /projects /:project_id /comments /:idExample response
Status 200
Update comments
Required API key scopes
comment:writePath parameters
- idstring
Request parameters
- deletedbooleannull
- mentionsarray
- slugstring
- is_taskbooleanDefault:
false - contentstringnull
- rich_content
- item_idstringnull
- item_context
- scopestring
- source_commentstringnull
Response
Example request
PATCH /api /projects /:project_id /comments /:idExample response
Status 200
Delete comments
Hard delete of this model is not allowed. Use a patch API call to set "deleted" to true
Required API key scopes
comment:writePath parameters
- idstring
Example request
DELETE /api /projects /:project_id /comments /:idExample response
Status 405 No response body
Create comments complete
Mark a task-comment as complete. Sets completed_at and completed_by. 400 if the comment is not a task or is already complete.
Path parameters
- idstring
Response
Example request
POST /api /projects /:project_id /comments /:id /completeExample response
Status 200
Create comments reopen
Reopen a completed task-comment. Clears completed_at and completed_by. 400 if the comment is not a task or is already open.
Path parameters
- idstring
Response
Example request
POST /api /projects /:project_id /comments /:id /reopenExample response
Status 200
Retrieve comments thread
Required API key scopes
comment:readPath parameters
- idstring
Example request
GET /api /projects /:project_id /comments /:id /threadExample response
Status 200 No response body
Retrieve comments count
Required API key scopes
comment:readExample request
GET /api /projects /:project_id /comments /countExample response
Status 200 No response body
List all dashboard templates
Required API key scopes
dashboard_template:readQuery parameters
- is_featuredboolean
- limitinteger
- offsetinteger
- orderingstringOne of:
"-created_at""-template_name""created_at""template_name" - scopestringOne of:
"feature_flag""global""team"
Response
Example request
GET /api /projects /:project_id /dashboard_templatesExample response
Status 200
Create dashboard templates
Required API key scopes
dashboard_template:writeRequest parameters
- template_namestringnull
- dashboard_descriptionstringnull
- dashboard_filters
- tagsarraynull
- tiles
- variables
- deletedbooleannull
- image_urlstringnull
- scope
- availability_contextsarraynull
- is_featuredboolean
Response
Example request
POST /api /projects /:project_id /dashboard_templatesExample response
Status 201
Retrieve dashboard templates
Required API key scopes
dashboard_template:readPath parameters
- idstring
Response
Example request
GET /api /projects /:project_id /dashboard_templates /:idExample response
Status 200
Update dashboard templates
Required API key scopes
dashboard_template:writePath parameters
- idstring
Request parameters
- template_namestringnull
- dashboard_descriptionstringnull
- dashboard_filters
- tagsarraynull
- tiles
- variables
- deletedbooleannull
- image_urlstringnull
- scope
- availability_contextsarraynull
- is_featuredboolean
Response
Example request
PATCH /api /projects /:project_id /dashboard_templates /:idExample response
Status 200
Delete dashboard templates
Hard delete of this model is not allowed. Use a patch API call to set "deleted" to true
Required API key scopes
dashboard_template:writePath parameters
- idstring
Example request
DELETE /api /projects /:project_id /dashboard_templates /:idExample response
Status 405 No response body
Create dashboard templates copy between projects
Creates a new team-scoped template in the target project (URL) from a team-scoped source template in the same organization. Global and feature-flag templates return 400. Cross-organization or inaccessible sources return 404. Source and destination projects must differ (400 if equal). Conflicting template_name values on the destination are auto-suffixed with (copy), (copy 2), …
Request parameters
- source_template_idstring
Response
Example request
POST /api /projects /:project_id /dashboard_templates /copy_between_projectsExample response
Status 201
Retrieve dashboard templates json schema
Example request
GET /api /projects /:project_id /dashboard_templates /json_schemaExample response
Status 200 No response body
List all dashboards
Also available via the PostHog MCP server:
dashboards-get-all— Get all dashboards
Required API key scopes
dashboard:readQuery parameters
- 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"
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 sharing
Required API key scopes
sharing_configuration:readPath parameters
- dashboard_idinteger
Example request
GET /api /projects /:project_id /dashboards /:dashboard_id /sharing