v1
latestOpenAPI 3.1.02026-08-044257268.7 KBAuth
Get the authenticated user and workspace
Returns the authenticated user and (when present) workspace from the auth context. Requires an authenticated user but NOT a workspace — workspace is omitted when the caller has none.
get/v1/auth/whoami
Response
The caller's identity
Example response
{
"user": {
"userId": "user_2abcDEFghiJKLmnop",
"email": "dev@example.com"
},
"workspace": {
"workspaceId": "org_2abcDEFghiJKLmnop",
"slug": "acme-inc"
}
}