beta.users

Return the authenticated caller's identity.

Principal-agnostic: resolves both users and service accounts.

get/v1/whoami

Request

Response

OK

Example response

{
  "principal": {
    "principal_type": "user",
    "id": "8f14e45f-ceea-4e0a-9b0e-8f7d3c2a1b4e",
    "email": "ada@example.com",
    "first_name": "Ada",
    "last_name": "Lovelace"
  },
  "organization": {
    "id": "1a2b3c4d-5e6f-4a8b-9c0d-1e2f3a4b5c6d",
    "name": "Acme Corp",
    "org_tier": "E",
    "kind": "S"
  }
}

Changes