Environments-21
For instructions on how to authenticate to use this endpoint, see API overview.
Endpoints
PATCH | |
DELETE | |
GET | |
GET | |
PATCH | |
GET | |
POST | |
GET | |
POST | |
POST | |
GET | |
POST | |
GET | |
GET | |
POST | |
GET | |
POST | |
GET |
Update environments persisted folder
Required API key scopes
persisted_folder:writePath parameters
- idstring
- project_idstring
Request parameters
- type
- protocolstring
- pathstring
Response
Example request
PATCH /api /environments /:project_id /persisted_folder /:idExample response
Status 200
Delete environments persisted folder
Required API key scopes
persisted_folder:writePath parameters
- idstring
- project_idstring
Example request
DELETE /api /environments /:project_id /persisted_folder /:idExample response
Status 204 No response body
Delete environments persisted folder
Required API key scopes
persisted_folder:writePath parameters
- idstring
- project_idstring
Example request
DELETE /api /environments /:project_id /persisted_folder /:idExample response
Status 204 No response body
List all environments 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 /environments /:project_id /personsExample response
Status 200
Retrieve environments 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
- idinteger
- project_idstring
Query parameters
- formatstringOne of:
"csv""json"
Response
Example request
GET /api /environments /:project_id /persons /:idExample response
Status 200
Update environments 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
- idinteger
- project_idstring
Query parameters
- formatstringOne of:
"csv""json"
Request parameters
- properties
Response
Example request
PATCH /api /environments /:project_id /persons /:idExample response
Status 200
Retrieve environments 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 /environments /:project_id /persons /:id /activityExample response
Status 200 No response body
Create environments 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
- idinteger
- project_idstring
Query parameters
- $unsetstring
- formatstringOne of:
"csv""json"
Request parameters
- properties
Example request
POST /api /environments /:project_id /persons /:id /delete_propertyExample response
Status 200 No response body
Retrieve environments persons properties timeline
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
- idinteger
- project_idstring
Query parameters
- formatstringOne of:
"csv""json"
Example request
GET /api /environments /:project_id /persons /:id /properties_timelineExample response
Status 200 No response body
Create environments persons split
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
- idinteger
- project_idstring
Query parameters
- formatstringOne of:
"csv""json"
Request parameters
- properties
Example request
POST /api /environments /:project_id /persons /:id /splitExample response
Status 200 No response body
Create environments persons update 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
- idinteger
- project_idstring
Query parameters
- formatstringOne of:
"csv""json" - keystring
- value
Request parameters
- properties
Example request
POST /api /environments /:project_id /persons /:id /update_propertyExample response
Status 200 No response body
Retrieve environments persons activity
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
- project_idstring
Query parameters
- formatstringOne of:
"csv""json"
Example request
GET /api /environments /:project_id /persons /activityExample response
Status 200 No response body
Create environments persons bulk delete
This endpoint allows you to bulk delete persons, either by the PostHog person IDs or by distinct IDs. You can pass in a maximum of 1000 IDs per call. Only events captured before the request will be deleted.
Required API key scopes
person:writePath parameters
- project_idstring
Query parameters
- delete_eventsbooleanDefault:
false - delete_recordingsbooleanDefault:
false - distinct_idsobject
- formatstringOne of:
"csv""json" - idsobject
- keep_personbooleanDefault:
false
Request parameters
- properties
Example request
POST /api /environments /:project_id /persons /bulk_deleteExample response
Status 200 No response body
Retrieve environments persons cohorts
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:readcohort:readPath parameters
- project_idstring
Query parameters
- formatstringOne of:
"csv""json"
Example request
GET /api /environments /:project_id /persons /cohortsExample response
Status 200 No response body
Retrieve environments persons funnel
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
- project_idstring
Query parameters
- formatstringOne of:
"csv""json"
Example request
GET /api /environments /:project_id /persons /funnelExample response
Status 200 No response body
Create environments persons funnel
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
- project_idstring
Query parameters
- formatstringOne of:
"csv""json"
Request parameters
- properties
Example request
POST /api /environments /:project_id /persons /funnelExample response
Status 200 No response body
Retrieve environments persons funnel correlation
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
- project_idstring
Query parameters
- formatstringOne of:
"csv""json"
Example request
GET /api /environments /:project_id /persons /funnel /correlationExample response
Status 200 No response body
Create environments persons funnel correlation
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
- project_idstring
Query parameters
- formatstringOne of:
"csv""json"
Request parameters
- properties
Example request
POST /api /environments /:project_id /persons /funnel /correlationExample response
Status 200 No response body
Retrieve environments persons lifecycle
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
- project_idstring
Query parameters
- formatstringOne of:
"csv""json"
Example request
GET /api /environments /:project_id /persons /lifecycle