Platform
For instructions on how to authenticate to use this endpoint, see API overview.
Endpoints
GET | |
POST | |
GET | |
PATCH | |
DELETE | |
POST | |
POST | |
GET | |
GET | |
GET | |
PATCH |
List all comments
Also available via the PostHog MCP server:
comments-list— List comments and discussion threads.
Required API key scopes
comment:readQuery parameters
- completedstringOne of:
"any""open""completed" - cursorstring
- item_idstring
- kindstringOne of:
"any""comment""task" - scopestring
- searchstring
- source_commentstring
Response
Example request
GET /api /projects /:project_id /commentsExample response
Status 200
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
Retrieve user home settings
Get the authenticated user's pinned sidebar tabs and configured homepage for the current team. Pass @me as the UUID.
Required API key scopes
user:readPath parameters
- uuidstring
Response
Example request
GET /api /user_home_settings /:uuidExample response
Status 200
Update user home settings
Update the authenticated user's pinned sidebar tabs and/or homepage for the current team. Pass @me as the UUID. Send tabs to replace the pinned tab list, homepage to set the home destination (any PostHog URL — dashboard, insight, search results, scene). Either field may be omitted to leave it unchanged; sending homepage: null or {} clears the homepage.
Required API key scopes
user:writePath parameters
- uuidstring
Request parameters
- tabsarray
- homepage
Response
Example request
PATCH /api /user_home_settings /:uuid