Users-2
For instructions on how to authenticate to use this endpoint, see API overview.
Endpoints
Retrieve users two factor start setup
Path parameters
- uuidstring
Request
GET
/api /users /:uuid /two_factor_start_setup
export POSTHOG_PERSONAL_API_KEY=[your personal api key]curl \-H "Authorization: Bearer $POSTHOG_PERSONAL_API_KEY" \<ph_app_host>/api/users/:uuid/two_factor_start_setup/
Response
Status 200 No response body
Retrieve users two factor start setup
Path parameters
- uuidstring
Request
GET
/api /users /:uuid /two_factor_start_setup
export POSTHOG_PERSONAL_API_KEY=[your personal api key]curl \-H "Authorization: Bearer $POSTHOG_PERSONAL_API_KEY" \<ph_app_host>/api/users/:uuid/two_factor_start_setup/
Response
Status 200 No response body
Retrieve users two factor status
Get current 2FA status including backup codes if enabled
Path parameters
- uuidstring
Request
GET
/api /users /:uuid /two_factor_status
export POSTHOG_PERSONAL_API_KEY=[your personal api key]curl \-H "Authorization: Bearer $POSTHOG_PERSONAL_API_KEY" \<ph_app_host>/api/users/:uuid/two_factor_status/
Response
Status 200 No response body
Retrieve users two factor status
Get current 2FA status including backup codes if enabled
Path parameters
- uuidstring
Request
GET
/api /users /:uuid /two_factor_status
export POSTHOG_PERSONAL_API_KEY=[your personal api key]curl \-H "Authorization: Bearer $POSTHOG_PERSONAL_API_KEY" \<ph_app_host>/api/users/:uuid/two_factor_status/
Response
Status 200 No response body
Create users two factor validate
Path parameters
- uuidstring
Request parameters
- first_namestring
- last_namestring
- emailstring
- notification_settingsobject
- anonymize_databoolean
- toolbar_mode
- is_staffboolean
Designates whether the user can log into this admin site.
- set_current_organizationstring
- set_current_teamstring
- passwordstring
- current_passwordstring
- events_column_config
- has_seen_product_intro_for
- theme_mode
- hedgehog_config
- role_at_organization
Request
POST
/api /users /:uuid /two_factor_validate
export POSTHOG_PERSONAL_API_KEY=[your personal api key]curl-H 'Content-Type: application/json'\-H "Authorization: Bearer $POSTHOG_PERSONAL_API_KEY" \<ph_app_host>/api/users/:uuid/two_factor_validate/\-d email="string",\-d password="string"
Response
Status 200 No response body
Create users two factor validate
Path parameters
- uuidstring
Request parameters
- first_namestring
- last_namestring
- emailstring
- notification_settingsobject
- anonymize_databoolean
- toolbar_mode
- is_staffboolean
Designates whether the user can log into this admin site.
- set_current_organizationstring
- set_current_teamstring
- passwordstring
- current_passwordstring
- events_column_config
- has_seen_product_intro_for
- theme_mode
- hedgehog_config
- role_at_organization
Request
POST
/api /users /:uuid /two_factor_validate
export POSTHOG_PERSONAL_API_KEY=[your personal api key]curl-H 'Content-Type: application/json'\-H "Authorization: Bearer $POSTHOG_PERSONAL_API_KEY" \<ph_app_host>/api/users/:uuid/two_factor_validate/\-d email="string",\-d password="string"
Response
Status 200 No response body
Create users validate 2fa
Path parameters
- uuidstring
Request parameters
- first_namestring
- last_namestring
- emailstring
- notification_settingsobject
- anonymize_databoolean
- toolbar_mode
- is_staffboolean
Designates whether the user can log into this admin site.
- set_current_organizationstring
- set_current_teamstring
- passwordstring
- current_passwordstring
- events_column_config
- has_seen_product_intro_for
- theme_mode
- hedgehog_config
- role_at_organization
Request
POST
/api /users /:uuid /validate_2fa
export POSTHOG_PERSONAL_API_KEY=[your personal api key]curl-H 'Content-Type: application/json'\-H "Authorization: Bearer $POSTHOG_PERSONAL_API_KEY" \<ph_app_host>/api/users/:uuid/validate_2fa/\-d email="string",\-d password="string"
Response
Status 200 No response body
Create users validate 2fa
Path parameters
- uuidstring
Request parameters
- first_namestring
- last_namestring
- emailstring
- notification_settingsobject
- anonymize_databoolean
- toolbar_mode
- is_staffboolean
Designates whether the user can log into this admin site.
- set_current_organizationstring
- set_current_teamstring
- passwordstring
- current_passwordstring
- events_column_config
- has_seen_product_intro_for
- theme_mode
- hedgehog_config
- role_at_organization
Request
POST
/api /users /:uuid /validate_2fa
export POSTHOG_PERSONAL_API_KEY=[your personal api key]curl-H 'Content-Type: application/json'\-H "Authorization: Bearer $POSTHOG_PERSONAL_API_KEY" \<ph_app_host>/api/users/:uuid/validate_2fa/\-d email="string",\-d password="string"
Response
Status 200 No response body
Create users request email verification
Request parameters
- first_namestring
- last_namestring
- emailstring
- notification_settingsobject
- anonymize_databoolean
- toolbar_mode
- is_staffboolean
Designates whether the user can log into this admin site.
- set_current_organizationstring
- set_current_teamstring
- passwordstring
- current_passwordstring
- events_column_config
- has_seen_product_intro_for
- theme_mode
- hedgehog_config
- role_at_organization
Request
POST
/api /users /request_email_verification
export POSTHOG_PERSONAL_API_KEY=[your personal api key]curl-H 'Content-Type: application/json'\-H "Authorization: Bearer $POSTHOG_PERSONAL_API_KEY" \<ph_app_host>/api/users/request_email_verification/\-d email="string",\-d password="string"
Response
Status 200 No response body
Create users request email verification
Request parameters
- first_namestring
- last_namestring
- emailstring
- notification_settingsobject
- anonymize_databoolean
- toolbar_mode
- is_staffboolean
Designates whether the user can log into this admin site.
- set_current_organizationstring
- set_current_teamstring
- passwordstring
- current_passwordstring
- events_column_config
- has_seen_product_intro_for
- theme_mode
- hedgehog_config
- role_at_organization
Request
POST
/api /users /request_email_verification
export POSTHOG_PERSONAL_API_KEY=[your personal api key]curl-H 'Content-Type: application/json'\-H "Authorization: Bearer $POSTHOG_PERSONAL_API_KEY" \<ph_app_host>/api/users/request_email_verification/\-d email="string",\-d password="string"
Response
Status 200 No response body
Create users verify email
Request parameters
- first_namestring
- last_namestring
- emailstring
- notification_settingsobject
- anonymize_databoolean
- toolbar_mode
- is_staffboolean
Designates whether the user can log into this admin site.
- set_current_organizationstring
- set_current_teamstring
- passwordstring
- current_passwordstring
- events_column_config
- has_seen_product_intro_for
- theme_mode
- hedgehog_config
- role_at_organization
Request
POST
/api /users /verify_email
export POSTHOG_PERSONAL_API_KEY=[your personal api key]curl-H 'Content-Type: application/json'\-H "Authorization: Bearer $POSTHOG_PERSONAL_API_KEY" \<ph_app_host>/api/users/verify_email/\-d email="string",\-d password="string"
Response
Status 200 No response body
Create users verify email
Request parameters
- first_namestring
- last_namestring
- emailstring
- notification_settingsobject
- anonymize_databoolean
- toolbar_mode
- is_staffboolean
Designates whether the user can log into this admin site.
- set_current_organizationstring
- set_current_teamstring
- passwordstring
- current_passwordstring
- events_column_config
- has_seen_product_intro_for
- theme_mode
- hedgehog_config
- role_at_organization
Request
POST
/api /users /verify_email
export POSTHOG_PERSONAL_API_KEY=[your personal api key]curl-H 'Content-Type: application/json'\-H "Authorization: Bearer $POSTHOG_PERSONAL_API_KEY" \<ph_app_host>/api/users/verify_email/\-d email="string",\-d password="string"