user

get current global whoami (if logged in)

Changed on
get/users/whoami

Request

  • Base URL: /api (relative, and the document was published on a file host, not at the API’s origin)
  • URL: /api/users/whoami
  • Auth: one of:
    • HTTP bearer
    • API key in cookie token

Response

user email

emailstring required
login_type'password' | 'github' | 'service_account' | 'pending_oauth' required
super_adminboolean required
devopsboolean
verifiedboolean required
namestring
companystring
usernamestring
operator_onlyboolean
is_workspace_adminboolean

Populated only for service accounts. True if the service account has workspace admin in its (single) workspace.

first_time_userboolean required
role_source'manual' | 'instance_group' | 'service_account' required
disabledboolean required
workspace_idstring

Changes

    • warning

      added the new pending_oauth enum value to the response property for the response status