Persons-3
For instructions on how to authenticate to use this endpoint, see API overview.
Endpoints
GET | |
POST | |
GET | |
GET | |
POST | |
GET | |
POST | |
GET | |
POST | |
GET | |
GET |
Retrieve persons activity
Required API key scopes
activity_log:readPath parameters
- project_idstring
Query parameters
- formatstringOne of:
"csv""json"
Example request
GET /api /projects /:project_id /persons /activityExample response
Status 200 No response body
Create 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 /projects /:project_id /persons /bulk_deleteExample response
Status 200 No response body
Create 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 /projects /:project_id /persons /bulk_deleteExample response
Status 200 No response body
Retrieve persons cohorts
Required API key scopes
person:readcohort:readPath parameters
- project_idstring
Query parameters
- formatstringOne of:
"csv""json"
Example request
GET /api /projects /:project_id /persons /cohortsExample response
Status 200 No response body
Retrieve persons cohorts
Required API key scopes
person:readcohort:readPath parameters
- project_idstring
Query parameters
- formatstringOne of:
"csv""json"
Example request
GET /api /projects /:project_id /persons /cohortsExample response
Status 200 No response body
Retrieve persons funnel
Path parameters
- project_idstring
Query parameters
- formatstringOne of:
"csv""json"
Example request
GET /api /projects /:project_id /persons /funnelExample response
Status 200 No response body
Retrieve persons funnel
Path parameters
- project_idstring
Query parameters
- formatstringOne of:
"csv""json"
Example request
GET /api /projects /:project_id /persons /funnelExample response
Status 200 No response body
Create persons funnel
Path parameters
- project_idstring
Query parameters
- formatstringOne of:
"csv""json"
Request parameters
- properties
Example request
POST /api /projects /:project_id /persons /funnelExample response
Status 200 No response body
Create persons funnel
Path parameters
- project_idstring
Query parameters
- formatstringOne of:
"csv""json"
Request parameters
- properties
Example request
POST /api /projects /:project_id /persons /funnelExample response
Status 200 No response body
Retrieve persons funnel correlation
Path parameters
- project_idstring
Query parameters
- formatstringOne of:
"csv""json"
Example request
GET /api /projects /:project_id /persons /funnel /correlationExample response
Status 200 No response body
Retrieve persons funnel correlation
Path parameters
- project_idstring
Query parameters
- formatstringOne of:
"csv""json"
Example request
GET /api /projects /:project_id /persons /funnel /correlationExample response
Status 200 No response body
Create persons funnel correlation
Path parameters
- project_idstring
Query parameters
- formatstringOne of:
"csv""json"
Request parameters
- properties
Example request
POST /api /projects /:project_id /persons /funnel /correlationExample response
Status 200 No response body
Create persons funnel correlation
Path parameters
- project_idstring
Query parameters
- formatstringOne of:
"csv""json"
Request parameters
- properties
Example request
POST /api /projects /:project_id /persons /funnel /correlationExample response
Status 200 No response body
Retrieve persons lifecycle
Path parameters
- project_idstring
Query parameters
- formatstringOne of:
"csv""json"
Example request
GET /api /projects /:project_id /persons /lifecycleExample response
Status 200 No response body
Retrieve persons lifecycle
Path parameters
- project_idstring
Query parameters
- formatstringOne of:
"csv""json"
Example request
GET /api /projects /:project_id /persons /lifecycleExample response
Status 200 No response body
Create 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
- project_idstring
Query parameters
- formatstringOne of:
"csv""json"
Request parameters
- properties
Example request
POST /api /projects /:project_id /persons /reset_person_distinct_idExample response
Status 200 No response body
Create 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
- project_idstring
Query parameters
- formatstringOne of:
"csv""json"
Request parameters
- properties
Example request
POST /api /projects /:project_id /persons /reset_person_distinct_idExample response
Status 200 No response body
Retrieve persons stickiness
Path parameters
- project_idstring
Query parameters
- formatstringOne of:
"csv""json"
Example request
GET /api /projects /:project_id /persons /stickinessExample response
Status 200 No response body
Retrieve persons stickiness
Path parameters
- project_idstring
Query parameters
- formatstringOne of:
"csv""json"
Example request
GET /api /projects /:project_id /persons /stickinessExample response
Status 200 No response body
Retrieve persons trends
Path parameters
- project_idstring
Query parameters
- formatstringOne of:
"csv""json"
Example request
GET /api /projects /:project_id /persons /trends