Health
For instructions on how to authenticate to use this endpoint, see API overview.
Endpoints
GET | |
GET | |
PATCH | |
POST | |
POST | |
GET | |
GET | |
GET | |
PATCH | |
POST | |
POST | |
GET |
List all environments health issues
Lists health issues detected across all of this project's PostHog health checks (outdated SDKs, data warehouse sync failures, missing web analytics events, ingestion warnings, and more). Filter by status, severity, kind, or dismissed state.
Required API key scopes
health_issue:readQuery parameters
- dismissedboolean
- kindstring
- limitinteger
- offsetinteger
- severitystring
- statusstring
Response
Example request
GET /api /environments /:environment_id /health_issuesExample response
Status 200
Retrieve environments health issues
Fetches a single health issue, enriched with the owning check's rendered explanation: a title, a one-line summary of what's wrong, a deep link to the relevant page, and remediation guidance for how to fix it.
Required API key scopes
health_issue:readPath parameters
- idstring
Response
Example request
GET /api /environments /:environment_id /health_issues /:idExample response
Status 200
Update environments health issues
Required API key scopes
health_issue:writePath parameters
- idstring
Request parameters
- dismissedboolean
Response
Example request
PATCH /api /environments /:environment_id /health_issues /:idExample response
Status 200
Create environments health issues resolve
Path parameters
- idstring
Request parameters
- dismissedboolean
Response
Example request
POST /api /environments /:environment_id /health_issues /:id /resolveExample response
Status 200
Create environments health issues refresh
Required API key scopes
health_issue:writeExample request
POST /api /environments /:environment_id /health_issues /refreshExample response
Status 202 Health check refresh jobs scheduled for the team.
Status 429 Refresh was triggered recently; try again later.
Retrieve environments health issues summary
Returns aggregated counts of active, non-dismissed health issues for the project, broken down by severity and by kind. Use for a quick overview of overall project health before drilling in with the list endpoint.
Required API key scopes
health_issue:readResponse
Example request
GET /api /environments /:environment_id /health_issues /summaryExample response
Status 200
List all health issues
Lists health issues detected across all of this project's PostHog health checks (outdated SDKs, data warehouse sync failures, missing web analytics events, ingestion warnings, and more). Filter by status, severity, kind, or dismissed state.
Required API key scopes
health_issue:readQuery parameters
- dismissedboolean
- kindstring
- limitinteger
- offsetinteger
- severitystring
- statusstring
Response
Example request
GET /api /projects /:project_id /health_issuesExample response
Status 200
Retrieve health issues
Fetches a single health issue, enriched with the owning check's rendered explanation: a title, a one-line summary of what's wrong, a deep link to the relevant page, and remediation guidance for how to fix it.
Required API key scopes
health_issue:readPath parameters
- idstring
Response
Example request
GET /api /projects /:project_id /health_issues /:idExample response
Status 200
Update health issues
Required API key scopes
health_issue:writePath parameters
- idstring
Request parameters
- dismissedboolean
Response
Example request
PATCH /api /projects /:project_id /health_issues /:idExample response
Status 200
Create health issues resolve
Path parameters
- idstring
Request parameters
- dismissedboolean
Response
Example request
POST /api /projects /:project_id /health_issues /:id /resolveExample response
Status 200
Create health issues refresh
Required API key scopes
health_issue:writeExample request
POST /api /projects /:project_id /health_issues /refreshExample response
Status 202 Health check refresh jobs scheduled for the team.
Status 429 Refresh was triggered recently; try again later.
Retrieve health issues summary
Returns aggregated counts of active, non-dismissed health issues for the project, broken down by severity and by kind. Use for a quick overview of overall project health before drilling in with the list endpoint.
Required API key scopes
health_issue:readResponse
Example request
GET /api /projects /:project_id /health_issues /summary