Error
For instructions on how to authenticate to use this endpoint, see API overview.
Endpoints
POST | |
GET | |
PATCH | |
DELETE | |
GET | |
GET | |
PATCH | |
GET | |
PATCH | |
GET | |
GET | |
GET | |
DELETE | |
POST | |
GET | |
POST | |
GET | |
PATCH |
Create error tracking releases
Required API key scopes
error_tracking:writeRequest parameters
- versionstring
- projectstring
- hash_idstringnull
- metadataobjectnull
Response
Example request
POST /api /projects /:project_id /error_tracking /releasesExample response
Status 201
RESPONSE
Retrieve error tracking releases
Required API key scopes
error_tracking:readPath parameters
- idstring
Response
Example request
GET /api /projects /:project_id /error_tracking /releases /:idExample response
Status 200
RESPONSE
Update error tracking releases
Required API key scopes
error_tracking:writePath parameters
- idstring
Request parameters
- versionstringnull
- projectstringnull
- hash_idstringnull
- metadataobjectnull
Example request
PATCH /api /projects /:project_id /error_tracking /releases /:idExample response
Status 204 No response body
Delete error tracking releases
Required API key scopes
error_tracking:writePath parameters
- idstring
Example request
DELETE /api /projects /:project_id /error_tracking /releases /:idExample response
Status 204 No response body
Retrieve error tracking releases hash
Required API key scopes
error_tracking:readPath parameters
- hash_idstring
Example request
GET /api /projects /:project_id /error_tracking /releases /hash /:hash_idExample response
Status 200 No response body
Retrieve error tracking settings retrieve settings
Required API key scopes
error_tracking:readResponse
Example request
GET /api /projects /:project_id /error_tracking /settings /retrieve_settingsExample response
Status 200
RESPONSE
Update error tracking settings update settings
Required API key scopes
error_tracking:writeRequest parameters
- project_rate_limit_valueintegernull
- project_rate_limit_bucket_size_minutesintegernull
- per_issue_rate_limit_valueintegernull
- per_issue_rate_limit_bucket_size_minutesintegernull
Response
Example request
PATCH /api /projects /:project_id /error_tracking /settings /update_settingsExample response
Status 200
RESPONSE
List all error tracking spike detection config
Required API key scopes
error_tracking:readExample request
GET /api /projects /:project_id /error_tracking /spike_detection_configExample response
Status 200
RESPONSE
Update error tracking spike detection config update config
Request parameters
- snooze_duration_minutesinteger
- multiplierinteger
- thresholdinteger
Response
Example request
PATCH /api /projects /:project_id /error_tracking /spike_detection_config /update_configExample response
Status 200
RESPONSE
List all error tracking spike events
Required API key scopes
error_tracking:readQuery parameters
- limitinteger
- offsetinteger
Response
Example request
GET /api /projects /:project_id /error_tracking /spike_eventsExample response
Status 200
RESPONSE
List all error tracking stack frames
Required API key scopes
error_tracking:readQuery parameters
- limitinteger
- offsetinteger
Response
Example request
GET /api /projects /:project_id /error_tracking /stack_framesExample response
Status 200
RESPONSE
Retrieve error tracking stack frames
Required API key scopes
error_tracking:readPath parameters
- idstring
Response
Example request
GET /api /projects /:project_id /error_tracking /stack_frames /:idExample response
Status 200
RESPONSE
Delete error tracking stack frames
Hard delete of this model is not allowed. Use a patch API call to set "deleted" to true
Path parameters
- idstring
Example request
DELETE /api /projects /:project_id /error_tracking /stack_frames /:idExample response
Status 405 No response body
Create error tracking stack frames batch get
Required API key scopes
error_tracking:readRequest parameters
- raw_idsarray
- symbol_setstringnull
Response
Example request
POST /api /projects /:project_id /error_tracking /stack_frames /batch_getExample response
Status 200
RESPONSE
List all error tracking suppression rules
Also available via the PostHog MCP server:
error-tracking-suppression-rules-list— List error tracking suppression rules
Required API key scopes
error_tracking:readQuery parameters
- limitinteger
- offsetinteger
Response
Example request
GET /api /projects /:project_id /error_tracking /suppression_rulesExample response
Status 200
RESPONSE
Create error tracking suppression rules
Also available via the PostHog MCP server:
error-tracking-suppression-rules-create— Create error tracking suppression rule
Required API key scopes
error_tracking:writeRequest parameters
- filters
- sampling_ratenumberDefault:
1
Response
Example request
POST /api /projects /:project_id /error_tracking /suppression_rulesExample response
Status 201
RESPONSE
Retrieve error tracking suppression rules
Required API key scopes
error_tracking:readPath parameters
- idstring
Response
Example request
GET /api /projects /:project_id /error_tracking /suppression_rules /:idExample response
Status 200
RESPONSE
Update error tracking suppression rules
Required API key scopes
error_tracking:writePath parameters
- idstring
Request parameters
- filters
- sampling_ratenumber
Example request
PATCH /api /projects /:project_id /error_tracking /suppression_rules /:id