provider personspersons GET
/api/environments/{environment_id}/persons/properties_at_time/ @utdk/posthog
/api/environments/{environment_id}/persons/properties_at_time/ environments_persons_properties_at_time_retrieve
Get person properties as they existed at a specific point in time.
This endpoint reconstructs person properties by querying ClickHouse events
for $set and $set_once operations up to the specified timestamp.
Query parameters:
- distinct_id: The distinct_id of the person
- timestamp: ISO datetime string for the point in time (e.g., "2023-06-15T14:30:00Z")
- include_set_once: Whether to handle $set_once operations (default: false)
- distinct_id query
- The distinct_id of the person (mutually exclusive with person_id)
- string
- environment_id path required
- Deprecated. Use /api/projects/{project_id}/ instead.
- string
- format query
- enum: csv, json
- include_set_once query
- Whether to handle $set_once operations (default: false)
- boolean
- person_id query
- The person_id (UUID) to build properties for (mutually exclusive with distinct_id)
- string
- timestamp query required
- ISO datetime string for the point in time (e.g., '2023-06-15T14:30:00Z')
- string
Try it
Authentication
Configure credentials for PostHog API
Code snippet
Updates live as you fill in the form above.
TypeScript
import posthog from '@utdk/posthog';
await posthog.environmentsPersonsPropertiesAtTimeRetrieve()