Error

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

Endpoints

PATCH
DELETE
GET
PATCH
POST
POST
GET
POST

Update error tracking issues

Also available via the PostHog MCP server:

  • error-tracking-issues-partial-updateUpdate error tracking issue

Required API key scopes

error_tracking:write

Path parameters

  • id
    string

Request parameters

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

Response


Example request

PATCH /api/environments/:project_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/:project_id/error_tracking/issues/:id/\
-d status=undefined

Example response

Status 200
RESPONSE
{
"id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
"status": "archived",
"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": null,
"issue": "984f8aab-1dc8-4804-8ae1-d0944856240b",
"external_url": "string"
}
],
"cohort": {
"id": 0,
"name": "string"
}
}

Update error tracking issues

Also available via the PostHog MCP server:

  • error-tracking-issues-partial-updateUpdate error tracking issue

Required API key scopes

error_tracking:write

Path parameters

  • id
    string

Request parameters

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

Response


Example request

PATCH /api/environments/:project_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/:project_id/error_tracking/issues/:id/\
-d status=undefined

Example response

Status 200
RESPONSE
{
"id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
"status": "archived",
"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": null,
"issue": "984f8aab-1dc8-4804-8ae1-d0944856240b",
"external_url": "string"
}
],
"cohort": {
"id": 0,
"name": "string"
}
}

Delete 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/:project_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/:project_id/error_tracking/issues/:id/

Example response

Status 405 No response body

Delete 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/:project_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/:project_id/error_tracking/issues/:id/

Example response

Status 405 No response body

Retrieve error tracking issues activity

Required API key scopes

activity_log:read

Path parameters

  • id
    string

Example request

GET /api/environments/:project_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/:project_id/error_tracking/issues/:id/activity/

Example response

Status 200 No response body

Retrieve error tracking issues activity

Required API key scopes

activity_log:read

Path parameters

  • id
    string

Example request

GET /api/environments/:project_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/:project_id/error_tracking/issues/:id/activity/

Example response

Status 200 No response body

Update error tracking issues assign

Required API key scopes

error_tracking:write

Path parameters

  • id
    string

Request parameters

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

Example request

PATCH /api/environments/:project_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/:project_id/error_tracking/issues/:id/assign/\
-d status=undefined

Example response

Status 200 No response body

Update error tracking issues assign

Required API key scopes

error_tracking:write

Path parameters

  • id
    string

Request parameters

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

Example request

PATCH /api/environments/:project_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/:project_id/error_tracking/issues/:id/assign/\
-d status=undefined

Example response

Status 200 No response body

Create error tracking issues merge

Also available via the PostHog MCP server:

  • error-tracking-issues-merge-createMerge error tracking issues

Required API key scopes

error_tracking:write

Path parameters

  • id
    string

Request parameters

  • ids
    array

Response


Example request

POST /api/environments/:project_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/:project_id/error_tracking/issues/:id/merge/\
-d ids="array"

Example response

Status 200
RESPONSE
{
"success": true
}

Create error tracking issues merge

Also available via the PostHog MCP server:

  • error-tracking-issues-merge-createMerge error tracking issues

Required API key scopes

error_tracking:write

Path parameters

  • id
    string

Request parameters

  • ids
    array

Response


Example request

POST /api/environments/:project_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/:project_id/error_tracking/issues/:id/merge/\
-d ids="array"

Example response

Status 200
RESPONSE
{
"success": true
}

Create error tracking issues split

Also available via the PostHog MCP server:

  • error-tracking-issues-split-createSplit error tracking issue fingerprints

Required API key scopes

error_tracking:write

Path parameters

  • id
    string

Request parameters

  • fingerprints
    Click to open
    array

Response


Example request

POST /api/environments/:project_id/error_tracking/issues/:id/split
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/:project_id/error_tracking/issues/:id/split/\
-d fingerprints="array"

Example response

Status 200
RESPONSE
{
"success": true,
"new_issue_ids": [
"497f6eca-6276-4993-bfeb-53cbbbba6f08"
]
}

Create error tracking issues split

Also available via the PostHog MCP server:

  • error-tracking-issues-split-createSplit error tracking issue fingerprints

Required API key scopes

error_tracking:write

Path parameters

  • id
    string

Request parameters

  • fingerprints
    Click to open
    array

Response


Example request

POST /api/environments/:project_id/error_tracking/issues/:id/split
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/:project_id/error_tracking/issues/:id/split/\
-d fingerprints="array"

Example response

Status 200
RESPONSE
{
"success": true,
"new_issue_ids": [
"497f6eca-6276-4993-bfeb-53cbbbba6f08"
]
}

Retrieve error tracking issues all activity

Required API key scopes

activity_log:read

Example request

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

Example response

Status 200 No response body

Retrieve error tracking issues all activity

Required API key scopes

activity_log:read

Example request

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

Example response

Status 200 No response body

Create error tracking issues bulk

Required API key scopes

error_tracking:write

Request parameters

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

Example request

POST /api/environments/:project_id/error_tracking/issues/bulk
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/:project_id/error_tracking/issues/bulk/\
-d first_seen="string",\
-d assignee=undefined,\
-d external_issues="array"

Example response

Status 200 No response body

Create error tracking issues bulk

Required API key scopes

error_tracking:write

Request parameters

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

Example request

POST /api/environments/:project_id/error_tracking/issues/bulk
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/:project_id/error_tracking/issues/bulk/\
-d first_seen="string",\
-d assignee=undefined,\
-d external_issues="array"

Example response

Status 200 No response body

Community questions

Questions about this page? or post a community question.