Users
For instructions on how to authenticate to use this endpoint, see API overview.
Endpoints
GET | |
GET | |
PATCH | |
DELETE | |
GET | |
PATCH | |
POST | |
GET | |
POST |
List all users
Required API key scopes
user:readQuery parameters
- emailstring
- is_staffboolean
- limitinteger
- offsetinteger
Response
Example request
GET /api /usersExample response
Status 200
RESPONSE
List all users
Required API key scopes
user:readQuery parameters
- emailstring
- is_staffboolean
- limitinteger
- offsetinteger
Response
Example request
GET /api /usersExample response
Status 200
RESPONSE
Retrieve users
Required API key scopes
user:readPath parameters
- uuidstring
Response
Example request
GET /api /users /:uuidExample response
Status 200
RESPONSE
Retrieve users
Required API key scopes
user:readPath parameters
- uuidstring
Response
Example request
GET /api /users /:uuidExample response
Status 200
RESPONSE
Update users
Required API key scopes
user:writePath parameters
- uuidstring
Request parameters
- first_namestring
- last_namestring
- emailstring
- notification_settingsobject
- anonymize_databoolean
- toolbar_mode
- is_staffboolean
- set_current_organizationstring
- set_current_teamstring
- passwordstring
- current_passwordstring
- events_column_config
- has_seen_product_intro_for
- theme_mode
- hedgehog_config
- allow_sidebar_suggestionsboolean
- shortcut_position
- role_at_organization
Response
Example request
PATCH /api /users /:uuidExample response
Status 200
RESPONSE
Update users
Required API key scopes
user:writePath parameters
- uuidstring
Request parameters
- first_namestring
- last_namestring
- emailstring
- notification_settingsobject
- anonymize_databoolean
- toolbar_mode
- is_staffboolean
- set_current_organizationstring
- set_current_teamstring
- passwordstring
- current_passwordstring
- events_column_config
- has_seen_product_intro_for
- theme_mode
- hedgehog_config
- allow_sidebar_suggestionsboolean
- shortcut_position
- role_at_organization
Response
Example request
PATCH /api /users /:uuidExample response
Status 200
RESPONSE
Delete users
Path parameters
- uuidstring
Example request
DELETE /api /users /:uuidExample response
Status 204 No response body
Delete users
Path parameters
- uuidstring
Example request
DELETE /api /users /:uuidExample response
Status 204 No response body
Retrieve users hedgehog config
Path parameters
- uuidstring
Example request
GET /api /users /:uuid /hedgehog_configExample response
Status 200 No response body
Retrieve users hedgehog config
Path parameters
- uuidstring
Example request
GET /api /users /:uuid /hedgehog_configExample response
Status 200 No response body
Update users hedgehog config
Path parameters
- uuidstring
Request parameters
- first_namestring
- last_namestring
- emailstring
- notification_settingsobject
- anonymize_databoolean
- toolbar_mode
- is_staffboolean
- set_current_organizationstring
- set_current_teamstring
- passwordstring
- current_passwordstring
- events_column_config
- has_seen_product_intro_for
- theme_mode
- hedgehog_config
- allow_sidebar_suggestionsboolean
- shortcut_position
- role_at_organization
Example request
PATCH /api /users /:uuid /hedgehog_configExample response
Status 200 No response body
Update users hedgehog config
Path parameters
- uuidstring
Request parameters
- first_namestring
- last_namestring
- emailstring
- notification_settingsobject
- anonymize_databoolean
- toolbar_mode
- is_staffboolean
- set_current_organizationstring
- set_current_teamstring
- passwordstring
- current_passwordstring
- events_column_config
- has_seen_product_intro_for
- theme_mode
- hedgehog_config
- allow_sidebar_suggestionsboolean
- shortcut_position
- role_at_organization
Example request
PATCH /api /users /:uuid /hedgehog_configExample response
Status 200 No response body
Create users scene personalisation
Path parameters
- uuidstring
Request parameters
- first_namestring
- last_namestring
- emailstring
- notification_settingsobject
- anonymize_databoolean
- toolbar_mode
- is_staffboolean
- set_current_organizationstring
- set_current_teamstring
- passwordstring
- current_passwordstring
- events_column_config
- has_seen_product_intro_for
- theme_mode
- hedgehog_config
- allow_sidebar_suggestionsboolean
- shortcut_position
- role_at_organization
Example request
POST /api /users /:uuid /scene_personalisationExample response
Status 200 No response body
Create users scene personalisation
Path parameters
- uuidstring
Request parameters
- first_namestring
- last_namestring
- emailstring
- notification_settingsobject
- anonymize_databoolean
- toolbar_mode
- is_staffboolean
- set_current_organizationstring
- set_current_teamstring
- passwordstring
- current_passwordstring
- events_column_config
- has_seen_product_intro_for
- theme_mode
- hedgehog_config
- allow_sidebar_suggestionsboolean
- shortcut_position
- role_at_organization
Example request
POST /api /users /:uuid /scene_personalisationExample response
Status 200 No response body
Retrieve users start 2fa setup
Path parameters
- uuidstring
Example request
GET /api /users /:uuid /start_2fa_setupExample response
Status 200 No response body
Retrieve users start 2fa setup
Path parameters
- uuidstring
Example request
GET /api /users /:uuid /start_2fa_setupExample response
Status 200 No response body
Create users two factor backup codes
Generate new backup codes, invalidating any existing ones
Path parameters
- uuidstring
Request parameters
- first_namestring
- last_namestring
- emailstring
- notification_settingsobject
- anonymize_databoolean
- toolbar_mode
- is_staffboolean
- set_current_organizationstring
- set_current_teamstring
- passwordstring
- current_passwordstring
- events_column_config
- has_seen_product_intro_for
- theme_mode
- hedgehog_config
- allow_sidebar_suggestionsboolean
- shortcut_position
- role_at_organization
Example request
POST /api /users /:uuid /two_factor_backup_codesExample response
Status 200 No response body
Create users two factor backup codes
Generate new backup codes, invalidating any existing ones
Path parameters
- uuidstring
Request parameters
- first_namestring
- last_namestring
- emailstring
- notification_settingsobject
- anonymize_databoolean
- toolbar_mode
- is_staffboolean
- set_current_organizationstring
- set_current_teamstring
- passwordstring
- current_passwordstring
- events_column_config
- has_seen_product_intro_for
- theme_mode
- hedgehog_config
- allow_sidebar_suggestionsboolean
- shortcut_position
- role_at_organization
Example request
POST /api /users /:uuid /two_factor_backup_codesExample response
Status 200 No response body
PostHog is an all-in-one developer platform for building successful products. We provide product analytics, web analytics, session replay, error tracking, feature flags, experiments, surveys, LLM analytics, data warehouse, CDP, and an AI product assistant to help debug your code, ship features faster, and keep all your usage and customer data in one stack.