provider error_tracking POST /api/projects/{project_id}/error_tracking/query/issue_events/
@utdk/posthog /api/projects/{project_id}/error_tracking/query/issue_events/
List sampled exception events for an error tracking issue
Fetch sampled exception events, stack traces, browser/SDK context, URL, and $session_id values for one issue.
project_id path required
Project ID of the project you're trying to access. To find the ID of the project, make a call to /api/projects/.
string

Try it

Authentication
Configure credentials for PostHog API
errorTrackingQueryIssueEventsCreate
POST/api/projects/{project_id}/error_tracking/query/issue_events/
Fetch sampled exception events, stack traces, browser/SDK context, URL, and $session_id values for one issue.

Parameters

required

Project ID of the project you're trying to access. To find the ID of the project, make a call to /api/projects/.

Input

required

Error tracking issue ID.

Date range for sampled exception events. Defaults to the last 7 days.

When true, exclude internal/test account data from results. Defaults to true.

Advanced flat AND property filters applied to sampled events. HogQL filters are rejected.

Search exception types, exception values, and current URL among sampled events.

Timestamp sort direction. Defaults to DESC. * `ASC` - ASC * `DESC` - DESC

Page size.

Pagination offset.

Controls exception detail size: summary, stack, or raw. Defaults to summary. * `summary` - summary * `stack` - stack * `raw` - raw

When true, include only stack frames marked in_app. Defaults to true.

Configure credentials above to enable sending.

Code snippet
Updates live as you fill in the form above.

TypeScript

import posthog from '@utdk/posthog';

await posthog.errorTrackingQueryIssueEventsCreate({
  "filterTestAccounts": true,
  "orderDirection": "DESC",
  "limit": 1,
  "offset": 0,
  "verbosity": "summary",
  "onlyAppFrames": true
})