provider object_media_previews GET /api/projects/{project_id}/object_media_previews/preferred_for_event/
@utdk/posthog /api/projects/{project_id}/object_media_previews/preferred_for_event/
object_media_previews_preferred_for_event_retrieve
Get the preferred media preview for an event definition. Most recent user-uploaded, then most recent exported asset. Requires event_definition (query param).
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
objectMediaPreviewsPreferredForEventRetrieve
GET/api/projects/{project_id}/object_media_previews/preferred_for_event/
Get the preferred media preview for an event definition. Most recent user-uploaded, then most recent exported asset. Requires event_definition (query param).

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/.

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.objectMediaPreviewsPreferredForEventRetrieve()