Persons-3
For instructions on how to authenticate to use this endpoint, see API overview.
Endpoints
GET | |
POST | |
GET | |
GET | |
GET | |
GET | |
PATCH | |
GET | |
POST |
Retrieve environments persons properties at time
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)
- debug: Whether to include debug information with raw events (default: false)
Required API key scopes
person:readPath parameters
- environment_idstring
Query parameters
- debugboolean
- distinct_idstring
- formatstringOne of:
"csv""json" - include_set_onceboolean
- person_idstring
- timestampstring
Response
Example request
GET /api /environments /:environment_id /persons /properties_at_timeExample response
Status 200
Status 400
Status 404
Status 500
Retrieve environments persons properties at time
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)
- debug: Whether to include debug information with raw events (default: false)
Required API key scopes
person:readPath parameters
- environment_idstring
Query parameters
- debugboolean
- distinct_idstring
- formatstringOne of:
"csv""json" - include_set_onceboolean
- person_idstring
- timestampstring
Response
Example request
GET /api /environments /:environment_id /persons /properties_at_timeExample response
Status 200
Status 400
Status 404
Status 500
Create environments persons reset person distinct id
Reset a distinct_id for a deleted person. This allows the distinct_id to be used again.
Required API key scopes
person:writePath parameters
- environment_idstring
Query parameters
- formatstringOne of:
"csv""json"
Request parameters
- properties
Example request
POST /api /environments /:environment_id /persons /reset_person_distinct_idExample response
Status 200 No response body
Create environments persons reset person distinct id
Reset a distinct_id for a deleted person. This allows the distinct_id to be used again.
Required API key scopes
person:writePath parameters
- environment_idstring
Query parameters
- formatstringOne of:
"csv""json"
Request parameters
- properties
Example request
POST /api /environments /:environment_id /persons /reset_person_distinct_idExample response
Status 200 No response body
Retrieve environments persons trends
This endpoint is meant for reading and deleting persons. To create or update persons, we recommend using the capture API, the $set and $unset properties, or one of our SDKs.
Path parameters
- environment_idstring
Query parameters
- formatstringOne of:
"csv""json"
Example request
GET /api /environments /:environment_id /persons /trendsExample response
Status 200 No response body
Retrieve environments persons trends
This endpoint is meant for reading and deleting persons. To create or update persons, we recommend using the capture API, the $set and $unset properties, or one of our SDKs.
Path parameters
- environment_idstring
Query parameters
- formatstringOne of:
"csv""json"
Example request
GET /api /environments /:environment_id /persons /trendsExample response
Status 200 No response body
Retrieve environments persons values
This endpoint is meant for reading and deleting persons. To create or update persons, we recommend using the capture API, the $set and $unset properties, or one of our SDKs.
Required API key scopes
person:readPath parameters
- environment_idstring
Query parameters
- formatstringOne of:
"csv""json" - keystring
- valuestring
Example request
GET /api /environments /:environment_id /persons /valuesExample response
Status 200 No response body
Retrieve environments persons values
This endpoint is meant for reading and deleting persons. To create or update persons, we recommend using the capture API, the $set and $unset properties, or one of our SDKs.
Required API key scopes
person:readPath parameters
- environment_idstring
Query parameters
- formatstringOne of:
"csv""json" - keystring
- valuestring
Example request
GET /api /environments /:environment_id /persons /valuesExample response
Status 200 No response body
List all persons
This endpoint is meant for reading and deleting persons. To create or update persons, we recommend using the capture API, the $set and $unset properties, or one of our SDKs.
Required API key scopes
person:readPath parameters
- project_idstring
Query parameters
- distinct_idstring
- emailstring
- formatstringOne of:
"csv""json" - limitinteger
- offsetinteger
- propertiesarray
- searchstring
Response
Example request
GET /api /projects /:project_id /personsExample response
Status 200
List all persons
This endpoint is meant for reading and deleting persons. To create or update persons, we recommend using the capture API, the $set and $unset properties, or one of our SDKs.
Required API key scopes
person:readPath parameters
- project_idstring
Query parameters
- distinct_idstring
- emailstring
- formatstringOne of:
"csv""json" - limitinteger
- offsetinteger
- propertiesarray
- searchstring
Response
Example request
GET /api /projects /:project_id /personsExample response
Status 200
Retrieve persons
This endpoint is meant for reading and deleting persons. To create or update persons, we recommend using the capture API, the $set and $unset properties, or one of our SDKs.
Required API key scopes
person:readPath parameters
- idstring
- project_idstring
Query parameters
- formatstringOne of:
"csv""json"
Response
Example request
GET /api /projects /:project_id /persons /:idExample response
Status 200
Retrieve persons
This endpoint is meant for reading and deleting persons. To create or update persons, we recommend using the capture API, the $set and $unset properties, or one of our SDKs.
Required API key scopes
person:readPath parameters
- idstring
- project_idstring
Query parameters
- formatstringOne of:
"csv""json"
Response
Example request
GET /api /projects /:project_id /persons /:idExample response
Status 200
Update persons
This endpoint is meant for reading and deleting persons. To create or update persons, we recommend using the capture API, the $set and $unset properties, or one of our SDKs.
Required API key scopes
person:writePath parameters
- idstring
- project_idstring
Query parameters
- formatstringOne of:
"csv""json"
Request parameters
- properties
Response
Example request
PATCH /api /projects /:project_id /persons /:idExample response
Status 200
Update persons
This endpoint is meant for reading and deleting persons. To create or update persons, we recommend using the capture API, the $set and $unset properties, or one of our SDKs.
Required API key scopes
person:writePath parameters
- idstring
- project_idstring
Query parameters
- formatstringOne of:
"csv""json"
Request parameters
- properties
Response
Example request
PATCH /api /projects /:project_id /persons /:idExample response
Status 200
Retrieve persons activity retrieve
This endpoint is meant for reading and deleting persons. To create or update persons, we recommend using the capture API, the $set and $unset properties, or one of our SDKs.
Required API key scopes
activity_log:readPath parameters
- idinteger
- project_idstring
Query parameters
- formatstringOne of:
"csv""json"
Example request
GET /api /projects /:project_id /persons /:id /activityExample response
Status 200 No response body
Retrieve persons activity retrieve
This endpoint is meant for reading and deleting persons. To create or update persons, we recommend using the capture API, the $set and $unset properties, or one of our SDKs.
Required API key scopes
activity_log:readPath parameters
- idinteger
- project_idstring
Query parameters
- formatstringOne of:
"csv""json"
Example request
GET /api /projects /:project_id /persons /:id /activityExample response
Status 200 No response body
Create persons delete property
This endpoint is meant for reading and deleting persons. To create or update persons, we recommend using the capture API, the $set and $unset properties, or one of our SDKs.
Required API key scopes
person:writePath parameters
- idstring
- project_idstring
Query parameters
- formatstringOne of:
"csv""json"
Request parameters
- $unsetstring
Example request
POST /api /projects /:project_id /persons /:id /delete_propertyExample response
Status 200 No response body
Create persons delete property
This endpoint is meant for reading and deleting persons. To create or update persons, we recommend using the capture API, the $set and $unset properties, or one of our SDKs.
Required API key scopes
person:writePath parameters
- idstring
- project_idstring
Query parameters
- formatstringOne of:
"csv""json"
Request parameters
- $unsetstring
Example request
POST /api /projects /:project_id /persons /:id /delete_property