Error

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

Endpoints

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

Retrieve environments error tracking symbol sets download

Also available via the PostHog MCP server:

  • error-tracking-symbol-sets-download-retrieveDownload error tracking symbol set

Return a presigned URL for downloading the symbol set's source map.

Required API key scopes

error_tracking:read

Path parameters

  • id
    string

Response


Example request

GET /api/environments/:environment_id/error_tracking/symbol_sets/:id/download
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/symbol_sets/:id/download/

Example response

Status 200
RESPONSE
{
"url": "http://example.com"
}

Retrieve environments error tracking symbol sets download

Also available via the PostHog MCP server:

  • error-tracking-symbol-sets-download-retrieveDownload error tracking symbol set

Return a presigned URL for downloading the symbol set's source map.

Required API key scopes

error_tracking:read

Path parameters

  • id
    string

Response


Example request

GET /api/environments/:environment_id/error_tracking/symbol_sets/:id/download
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/symbol_sets/:id/download/

Example response

Status 200
RESPONSE
{
"url": "http://example.com"
}

Create environments error tracking symbol sets bulk delete

Required API key scopes

error_tracking:write

Request parameters

  • ids
    array

Example request

POST /api/environments/:environment_id/error_tracking/symbol_sets/bulk_delete
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/symbol_sets/bulk_delete/\
-d ids="array"

Example response

Status 200 No response body

Create environments error tracking symbol sets bulk delete

Required API key scopes

error_tracking:write

Request parameters

  • ids
    array

Example request

POST /api/environments/:environment_id/error_tracking/symbol_sets/bulk_delete
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/symbol_sets/bulk_delete/\
-d ids="array"

Example response

Status 200 No response body

Create environments error tracking symbol sets bulk finish upload

Required API key scopes

error_tracking:write

Request parameters

  • content_hashes
    object

Example request

POST /api/environments/:environment_id/error_tracking/symbol_sets/bulk_finish_upload
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/symbol_sets/bulk_finish_upload/\
-d content_hashes="object"

Example response

Status 200 No response body

Create environments error tracking symbol sets bulk finish upload

Required API key scopes

error_tracking:write

Request parameters

  • content_hashes
    object

Example request

POST /api/environments/:environment_id/error_tracking/symbol_sets/bulk_finish_upload
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/symbol_sets/bulk_finish_upload/\
-d content_hashes="object"

Example response

Status 200 No response body

Create environments error tracking symbol sets bulk start upload

Required API key scopes

error_tracking:write

Request parameters

  • chunk_ids
    array
  • release_id
    stringnull
  • symbol_sets
    Click to open
    array
  • force
    boolean
    Default: false
  • skip_on_conflict
    boolean
    Default: false

Example request

POST /api/environments/:environment_id/error_tracking/symbol_sets/bulk_start_upload
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/symbol_sets/bulk_start_upload/\
-d chunk_ids="array"

Example response

Status 200 No response body

Create environments error tracking symbol sets bulk start upload

Required API key scopes

error_tracking:write

Request parameters

  • chunk_ids
    array
  • release_id
    stringnull
  • symbol_sets
    Click to open
    array
  • force
    boolean
    Default: false
  • skip_on_conflict
    boolean
    Default: false

Example request

POST /api/environments/:environment_id/error_tracking/symbol_sets/bulk_start_upload
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/symbol_sets/bulk_start_upload/\
-d chunk_ids="array"

Example response

Status 200 No response body

List all error tracking assignment rules

Also available via the PostHog MCP server:

  • error-tracking-assignment-rules-listList error tracking assignment rules

Required API key scopes

error_tracking:read

Query parameters

  • limit
    integer
  • offset
    integer

Response


Example request

GET /api/environments/:project_id/error_tracking/assignment_rules
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/assignment_rules/

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",
"filters": null,
"assignee": {
"type": "user",
"id": 0
},
"order_key": -2147483648,
"disabled_data": null,
"created_at": "2019-08-24T14:15:22Z",
"updated_at": "2019-08-24T14:15:22Z"
}
]
}

Create error tracking assignment rules

Also available via the PostHog MCP server:

  • error-tracking-assignment-rules-createCreate error tracking assignment rule

Required API key scopes

error_tracking:write

Request parameters

  • filters
  • assignee

Response


Example request

POST /api/environments/:project_id/error_tracking/assignment_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/:project_id/error_tracking/assignment_rules/\
-d filters=undefined,\
-d assignee=undefined

Example response

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

Retrieve error tracking assignment rules

Required API key scopes

error_tracking:read

Path parameters

  • id
    string

Response


Example request

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

Example response

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

Update error tracking assignment rules

Required API key scopes

error_tracking:write

Path parameters

  • id
    string

Request parameters

  • filters
  • assignee

Example request

PATCH /api/environments/:project_id/error_tracking/assignment_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/:project_id/error_tracking/assignment_rules/:id/\
-d filters=undefined

Example response

Status 204 No response body

Delete error tracking assignment rules

Required API key scopes

error_tracking:write

Path parameters

  • id
    string

Example request

DELETE /api/environments/:project_id/error_tracking/assignment_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/:project_id/error_tracking/assignment_rules/:id/

Example response

Status 204 No response body

Update error tracking assignment rules reorder

Request parameters

  • filters
  • order_key
    integer
  • disabled_data

Example request

PATCH /api/environments/:project_id/error_tracking/assignment_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/:project_id/error_tracking/assignment_rules/reorder/\
-d filters=undefined

Example response

Status 200 No response body

List all error tracking fingerprints

Required API key scopes

error_tracking:read

Query parameters

  • limit
    integer
  • offset
    integer

Response


Example request

GET /api/environments/:project_id/error_tracking/fingerprints
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/fingerprints/

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",
"fingerprint": "string",
"issue_id": "117c70c4-891b-49ba-96f2-b7599e2af0f7",
"created_at": "2019-08-24T14:15:22Z"
}
]
}

List all error tracking fingerprints

Required API key scopes

error_tracking:read

Query parameters

  • limit
    integer
  • offset
    integer

Response


Example request

GET /api/environments/:project_id/error_tracking/fingerprints
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/fingerprints/

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",
"fingerprint": "string",
"issue_id": "117c70c4-891b-49ba-96f2-b7599e2af0f7",
"created_at": "2019-08-24T14:15:22Z"
}
]
}

Retrieve error tracking fingerprints

Required API key scopes

error_tracking:read

Path parameters

  • id
    string

Response


Example request

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

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"
}

Community questions

Questions about this page? or post a community question.