Error tracking

For instructions on how to authenticate to use this endpoint, see API overview.

Endpoints

DELETE
GET
GET
GET
GET
POST
GET
PATCH
DELETE
PATCH
GET
GET
PATCH
DELETE
GET
PATCH
POST

Delete environments error tracking fingerprints

Hard delete of this model is not allowed. Use a patch API call to set "deleted" to true

Path parameters

  • id
    string

Example request

DELETE /api/environments/:environment_id/error_tracking/fingerprints/:id
export POSTHOG_PERSONAL_API_KEY=[your personal api key]
curl -X DELETE \
-H "Authorization: Bearer $POSTHOG_PERSONAL_API_KEY" \
<ph_app_host>/api/environments/:environment_id/error_tracking/fingerprints/:id/

Example response

Status 405 No response body

Retrieve environments error tracking fingerprints resolve

Required API key scopes

error_tracking:read

Query parameters

  • fingerprint
    string

Response


Example request

GET /api/environments/:environment_id/error_tracking/fingerprints/resolve
export POSTHOG_PERSONAL_API_KEY=[your personal api key]
curl \
-H "Authorization: Bearer $POSTHOG_PERSONAL_API_KEY" \
<ph_app_host>/api/environments/:environment_id/error_tracking/fingerprints/resolve/

Example response

Status 200
RESPONSE
{
"id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
"fingerprint": "string",
"issue_id": "117c70c4-891b-49ba-96f2-b7599e2af0f7",
"created_at": "2019-08-24T14:15:22Z"
}



List all environments error tracking grouping rules

Required API key scopes

error_tracking:read

Response


Example request

GET /api/environments/:environment_id/error_tracking/grouping_rules
export POSTHOG_PERSONAL_API_KEY=[your personal api key]
curl \
-H "Authorization: Bearer $POSTHOG_PERSONAL_API_KEY" \
<ph_app_host>/api/environments/:environment_id/error_tracking/grouping_rules/

Example response

Status 200
RESPONSE
{
"results": [
{
"id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
"filters": null,
"assignee": {
"type": "user",
"id": 0
},
"description": "string",
"issue": {
"property1": "string",
"property2": "string"
},
"order_key": 0,
"disabled_data": null,
"created_at": "2019-08-24T14:15:22Z",
"updated_at": "2019-08-24T14:15:22Z"
}
]
}

Create environments error tracking grouping rules

Required API key scopes

error_tracking:write

Request parameters

  • filters
  • assignee
  • description
    stringnull

Response


Example request

POST /api/environments/:environment_id/error_tracking/grouping_rules
export POSTHOG_PERSONAL_API_KEY=[your personal api key]
curl
-H 'Content-Type: application/json'\
-H "Authorization: Bearer $POSTHOG_PERSONAL_API_KEY" \
<ph_app_host>/api/environments/:environment_id/error_tracking/grouping_rules/\
-d filters=undefined

Example response

Status 201
RESPONSE
{
"id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
"filters": null,
"assignee": {
"type": "user",
"id": 0
},
"description": "string",
"issue": {
"property1": "string",
"property2": "string"
},
"order_key": 0,
"disabled_data": null,
"created_at": "2019-08-24T14:15:22Z",
"updated_at": "2019-08-24T14:15:22Z"
}

Retrieve environments error tracking grouping rules

Required API key scopes

error_tracking:read

Path parameters

  • id
    string

Response


Example request

GET /api/environments/:environment_id/error_tracking/grouping_rules/:id
export POSTHOG_PERSONAL_API_KEY=[your personal api key]
curl \
-H "Authorization: Bearer $POSTHOG_PERSONAL_API_KEY" \
<ph_app_host>/api/environments/:environment_id/error_tracking/grouping_rules/:id/

Example response

Status 200
RESPONSE
{
"id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
"filters": null,
"assignee": {
"type": "user",
"id": 0
},
"description": "string",
"issue": {
"property1": "string",
"property2": "string"
},
"order_key": 0,
"disabled_data": null,
"created_at": "2019-08-24T14:15:22Z",
"updated_at": "2019-08-24T14:15:22Z"
}

Update environments error tracking grouping rules

Required API key scopes

error_tracking:write

Path parameters

  • id
    string

Request parameters

  • filters

Example request

PATCH /api/environments/:environment_id/error_tracking/grouping_rules/:id
export POSTHOG_PERSONAL_API_KEY=[your personal api key]
curl -X PATCH \
-H "Authorization: Bearer $POSTHOG_PERSONAL_API_KEY" \
<ph_app_host>/api/environments/:environment_id/error_tracking/grouping_rules/:id/\
-d filters=undefined

Example response

Status 204 No response body

Delete environments error tracking grouping rules

Required API key scopes

error_tracking:write

Path parameters

  • id
    string

Example request

DELETE /api/environments/:environment_id/error_tracking/grouping_rules/:id
export POSTHOG_PERSONAL_API_KEY=[your personal api key]
curl -X DELETE \
-H "Authorization: Bearer $POSTHOG_PERSONAL_API_KEY" \
<ph_app_host>/api/environments/:environment_id/error_tracking/grouping_rules/:id/

Example response

Status 204 No response body

Update environments error tracking grouping rules reorder

Request parameters

  • filters
  • description
    stringnull
  • order_key
    integer
  • disabled_data

Example request

PATCH /api/environments/:environment_id/error_tracking/grouping_rules/reorder
export POSTHOG_PERSONAL_API_KEY=[your personal api key]
curl -X PATCH \
-H "Authorization: Bearer $POSTHOG_PERSONAL_API_KEY" \
<ph_app_host>/api/environments/:environment_id/error_tracking/grouping_rules/reorder/\
-d filters=undefined

Example response

Status 200 No response body

List all environments error tracking issues

Required API key scopes

error_tracking:read

Query parameters

  • limit
    integer
  • offset
    integer

Response


Example request

GET /api/environments/:environment_id/error_tracking/issues
export POSTHOG_PERSONAL_API_KEY=[your personal api key]
curl \
-H "Authorization: Bearer $POSTHOG_PERSONAL_API_KEY" \
<ph_app_host>/api/environments/:environment_id/error_tracking/issues/

Example response

Status 200
RESPONSE
{
"count": 123,
"next": "http://api.example.org/accounts/?offset=400&limit=100",
"previous": "http://api.example.org/accounts/?offset=200&limit=100",
"results": [
{
"id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
"status": "string",
"name": "string",
"description": "string",
"first_seen": "2019-08-24T14:15:22Z",
"assignee": {
"id": 0,
"type": "string"
},
"external_issues": [
{
"id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
"integration": {
"id": 0,
"kind": "string",
"display_name": "string"
},
"integration_id": 0,
"config": {
"property1": "string",
"property2": "string"
},
"issue": "984f8aab-1dc8-4804-8ae1-d0944856240b",
"external_url": "string"
}
],
"cohort": {
"id": 0,
"name": "string"
}
}
]
}

Retrieve environments error tracking issues

Required API key scopes

error_tracking:read

Path parameters

  • id
    string

Response


Example request

GET /api/environments/:environment_id/error_tracking/issues/:id
export POSTHOG_PERSONAL_API_KEY=[your personal api key]
curl \
-H "Authorization: Bearer $POSTHOG_PERSONAL_API_KEY" \
<ph_app_host>/api/environments/:environment_id/error_tracking/issues/:id/

Example response

Status 200
RESPONSE
{
"id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
"status": "string",
"name": "string",
"description": "string",
"first_seen": "2019-08-24T14:15:22Z",
"assignee": {
"id": 0,
"type": "string"
},
"external_issues": [
{
"id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
"integration": {
"id": 0,
"kind": "string",
"display_name": "string"
},
"integration_id": 0,
"config": {
"property1": "string",
"property2": "string"
},
"issue": "984f8aab-1dc8-4804-8ae1-d0944856240b",
"external_url": "string"
}
],
"cohort": {
"id": 0,
"name": "string"
}
}

Update environments error tracking issues

Required API key scopes

error_tracking:write

Path parameters

  • id
    string

Request parameters

  • status
  • name
    stringnull
  • description
    stringnull

Response


Example request

PATCH /api/environments/:environment_id/error_tracking/issues/:id
export POSTHOG_PERSONAL_API_KEY=[your personal api key]
curl -X PATCH \
-H "Authorization: Bearer $POSTHOG_PERSONAL_API_KEY" \
<ph_app_host>/api/environments/:environment_id/error_tracking/issues/:id/\
-d status=undefined

Example response

Status 200
RESPONSE
{
"id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
"status": "string",
"name": "string",
"description": "string",
"first_seen": "2019-08-24T14:15:22Z",
"assignee": {
"id": 0,
"type": "string"
},
"external_issues": [
{
"id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
"integration": {
"id": 0,
"kind": "string",
"display_name": "string"
},
"integration_id": 0,
"config": {
"property1": "string",
"property2": "string"
},
"issue": "984f8aab-1dc8-4804-8ae1-d0944856240b",
"external_url": "string"
}
],
"cohort": {
"id": 0,
"name": "string"
}
}

Delete environments error tracking issues

Hard delete of this model is not allowed. Use a patch API call to set "deleted" to true

Required API key scopes

error_tracking:write

Path parameters

  • id
    string

Example request

DELETE /api/environments/:environment_id/error_tracking/issues/:id
export POSTHOG_PERSONAL_API_KEY=[your personal api key]
curl -X DELETE \
-H "Authorization: Bearer $POSTHOG_PERSONAL_API_KEY" \
<ph_app_host>/api/environments/:environment_id/error_tracking/issues/:id/

Example response

Status 405 No response body

Retrieve environments error tracking issues activity

Required API key scopes

activity_log:read

Path parameters

  • id
    string

Example request

GET /api/environments/:environment_id/error_tracking/issues/:id/activity
export POSTHOG_PERSONAL_API_KEY=[your personal api key]
curl \
-H "Authorization: Bearer $POSTHOG_PERSONAL_API_KEY" \
<ph_app_host>/api/environments/:environment_id/error_tracking/issues/:id/activity/

Example response

Status 200 No response body

Update environments error tracking issues assign

Required API key scopes

error_tracking:write

Path parameters

  • id
    string

Request parameters

  • id
    string
  • status
    string
  • name
    stringnull
  • description
    stringnull
  • first_seen
    stringnull
  • assignee
  • external_issues
    Click to open
    array
  • cohort

Example request

PATCH /api/environments/:environment_id/error_tracking/issues/:id/assign
export POSTHOG_PERSONAL_API_KEY=[your personal api key]
curl -X PATCH \
-H "Authorization: Bearer $POSTHOG_PERSONAL_API_KEY" \
<ph_app_host>/api/environments/:environment_id/error_tracking/issues/:id/assign/\
-d status="string"

Example response

Status 200 No response body

Create environments error tracking issues merge

Required API key scopes

error_tracking:write

Path parameters

  • id
    string

Request parameters

  • ids
    array

Response


Example request

POST /api/environments/:environment_id/error_tracking/issues/:id/merge
export POSTHOG_PERSONAL_API_KEY=[your personal api key]
curl
-H 'Content-Type: application/json'\
-H "Authorization: Bearer $POSTHOG_PERSONAL_API_KEY" \
<ph_app_host>/api/environments/:environment_id/error_tracking/issues/:id/merge/\
-d ids="array"

Example response

Status 200
RESPONSE
{
"success": true
}

Community questions