Persons
For instructions on how to authenticate to use this endpoint, see API overview.
To create or update persons, use a PostHog library of your choice and use an identify call. This API endpoint is only for reading and deleting.
Endpoints
List all persons
Path Parameters
- project_idstringProject ID of the project you're trying to access. To find the ID of the project, make a call to /api/projects/. 
Query Parameters
- distinct_idstringFilter list by distinct id. 
- emailstringFilter persons by email (exact match) 
- formatstringOne of:"csv""json"
- limitintegerNumber of results to return per page. 
- offsetintegerThe initial index from which to return the results. 
- propertiesarrayFilter Persons by person properties. 
- searchstringSearch persons, either by email (full text search) or distinct_id (exact match). 
Response
Request
GET 
Response
Status 200
Retrieve persons
Path Parameters
- idintegerA unique integer value identifying this person. 
- project_idstringProject ID of the project you're trying to access. To find the ID of the project, make a call to /api/projects/. 
Query Parameters
- formatstringOne of:"csv""json"
Response
Request
GET 
Response
Status 200
Update persons
Path Parameters
- idintegerA unique integer value identifying this person. 
- project_idstringProject ID of the project you're trying to access. To find the ID of the project, make a call to /api/projects/. 
Query Parameters
- formatstringOne of:"csv""json"
Request Parameters
- propertiesobject
Response
Request
PATCH 
Response
Status 200
Delete persons
Path Parameters
- idintegerA unique integer value identifying this person. 
- project_idstringProject ID of the project you're trying to access. To find the ID of the project, make a call to /api/projects/. 
Query Parameters
- delete_eventsbooleanIf true, a task to delete all events associated with this person will be created and queued. The task does not run immediately and instead is batched together and at 5AM UTC every Sunday (controlled by environment variable CLEAR_CLICKHOUSE_REMOVED_DATA_SCHEDULE_CRON) 
- formatstringOne of:"csv""json"
Request
DELETE 
Response
Status 204 No response body
Retrieve persons activity retrieve
Path Parameters
- idintegerA unique integer value identifying this person. 
- project_idstringProject ID of the project you're trying to access. To find the ID of the project, make a call to /api/projects/. 
Query Parameters
- formatstringOne of:"csv""json"
Response
Request
GET 
Response
Status 200
Create persons delete property
Path Parameters
- idintegerA unique integer value identifying this person. 
- project_idstringProject ID of the project you're trying to access. To find the ID of the project, make a call to /api/projects/. 
Query Parameters
- $unsetstringSpecify the property key to delete 
- formatstringOne of:"csv""json"
Request Parameters
- propertiesobject
Response
Request
POST 
Response
Status 200
Retrieve persons properties timeline
Path Parameters
- idintegerA unique integer value identifying this person. 
- project_idstringProject ID of the project you're trying to access. To find the ID of the project, make a call to /api/projects/. 
Query Parameters
- formatstringOne of:"csv""json"
Response
Request
GET 
Response
Status 200
Create persons split
Path Parameters
- idintegerA unique integer value identifying this person. 
- project_idstringProject ID of the project you're trying to access. To find the ID of the project, make a call to /api/projects/. 
Query Parameters
- formatstringOne of:"csv""json"
Request Parameters
- propertiesobject
Response
Request
POST 
Response
Status 200
Create persons update property
Path Parameters
- idintegerA unique integer value identifying this person. 
- project_idstringProject ID of the project you're trying to access. To find the ID of the project, make a call to /api/projects/. 
Query Parameters
- formatstringOne of:"csv""json"
- keystringSpecify the property key 
- valueSpecify the property value 
Request Parameters
- propertiesobject
Response
Request
POST 
Response
Status 200
Retrieve persons activity
Path Parameters
- project_idstringProject ID of the project you're trying to access. To find the ID of the project, make a call to /api/projects/. 
Query Parameters
- formatstringOne of:"csv""json"
Response
Request
GET 
Response
Status 200
Retrieve persons cohorts
Path Parameters
- project_idstringProject ID of the project you're trying to access. To find the ID of the project, make a call to /api/projects/. 
Query Parameters
- formatstringOne of:"csv""json"
Response
Request
GET 
Response
Status 200
Retrieve persons funnel
Path Parameters
- project_idstringProject ID of the project you're trying to access. To find the ID of the project, make a call to /api/projects/. 
Query Parameters
- formatstringOne of:"csv""json"
Response
Request
GET 
Response
Status 200
Create persons funnel
Path Parameters
- project_idstringProject ID of the project you're trying to access. To find the ID of the project, make a call to /api/projects/. 
Query Parameters
- formatstringOne of:"csv""json"
Request Parameters
- propertiesobject
Response
Request
POST 
Response
Status 200
Retrieve persons funnel correlation
Path Parameters
- project_idstringProject ID of the project you're trying to access. To find the ID of the project, make a call to /api/projects/. 
Query Parameters
- formatstringOne of:"csv""json"
Response
Request
GET 
Response
Status 200
Create persons funnel correlation
Path Parameters
- project_idstringProject ID of the project you're trying to access. To find the ID of the project, make a call to /api/projects/. 
Query Parameters
- formatstringOne of:"csv""json"
Request Parameters
- propertiesobject
Response
Request
POST 
Response
Status 200
Retrieve persons lifecycle
Path Parameters
- project_idstringProject ID of the project you're trying to access. To find the ID of the project, make a call to /api/projects/. 
Query Parameters
- formatstringOne of:"csv""json"
Response
Request
GET 
Response
Status 200
Retrieve persons path
Path Parameters
- project_idstringProject ID of the project you're trying to access. To find the ID of the project, make a call to /api/projects/. 
Query Parameters
- formatstringOne of:"csv""json"
Response
Request
GET 
Response
Status 200
Create persons path
Path Parameters
- project_idstringProject ID of the project you're trying to access. To find the ID of the project, make a call to /api/projects/. 
Query Parameters
- formatstringOne of:"csv""json"
Request Parameters
- propertiesobject
Response
Request
POST 
Response
Status 200
Retrieve persons retention
Path Parameters
- project_idstringProject ID of the project you're trying to access. To find the ID of the project, make a call to /api/projects/. 
Query Parameters
- formatstringOne of:"csv""json"
Response
Request
GET 
Response
Status 200
Retrieve persons stickiness
Path Parameters
- project_idstringProject ID of the project you're trying to access. To find the ID of the project, make a call to /api/projects/. 
Query Parameters
- formatstringOne of:"csv""json"
Response
Request
GET 
Response
Status 200
Retrieve persons trends
Path Parameters
- project_idstringProject ID of the project you're trying to access. To find the ID of the project, make a call to /api/projects/. 
Query Parameters
- formatstringOne of:"csv""json"
Response
Request
GET 
Response
Status 200
Retrieve persons values
Path Parameters
- project_idstringProject ID of the project you're trying to access. To find the ID of the project, make a call to /api/projects/. 
Query Parameters
- formatstringOne of:"csv""json"
Response
Request
GET 
Response
Status 200