Get the current identity
Returns the user, their teams and the active team for the calling credential.
/meAuthorizationBearer token (varsafe CLI grant) · headerrequiredAn opaque, database-backed credential obtained through the device authorization grant (POST /auth/cli/device) and revocable on the spot. Presented as Authorization: Bearer <token>. A route accepts it only when it declares CLI access; the scopes it must hold are listed per operation under x-varsafe-cli-scopes.
__Secure-varsafe.session_tokenAPI key · cookierequiredThe browser session cookie issued to the dashboard (named varsafe.session_token without the __Secure- prefix on non-production deployments). Listed for completeness: it authorizes the same routes, but programmatic callers should use an API token or a CLI grant.
Success.
userobjectrequiredShow propertiesHide properties
idstringrequiredemailstring<email>requirednamestringrequiredcreatedAtstringrequiredemailVerifiedbooleanhasPasswordbooleantwoFactorEnabledbooleanpasskeyOnlyModebooleanisPlatformAdminbooleanteamsobject[]requiredShow propertiesHide properties
objectidstring<uuid>requirednamestringrequiredrolestringrequiredowneradmindeveloperoperatorviewerbillingmaxActiveSessionsnumberrequiredactiveSessionCountnumberrequiredThe request failed validation. field names the offending input.
statusCodeintegerrequiredHTTP status code, repeated in the body.
codestringrequiredStable machine-readable error code, e.g. SECRET_NOT_FOUND or FORBIDDEN. Branch on this, never on the message.
messagestringrequiredHuman-readable explanation. Wording may change.
fieldstringThe offending request field, present on validation failures.
No credential was presented, or it is invalid or revoked.
statusCodeintegerrequiredHTTP status code, repeated in the body.
codestringrequiredStable machine-readable error code, e.g. SECRET_NOT_FOUND or FORBIDDEN. Branch on this, never on the message.
messagestringrequiredHuman-readable explanation. Wording may change.
fieldstringThe offending request field, present on validation failures.
The credential is valid but lacks the required scope, role or team access.
statusCodeintegerrequiredHTTP status code, repeated in the body.
codestringrequiredStable machine-readable error code, e.g. SECRET_NOT_FOUND or FORBIDDEN. Branch on this, never on the message.
messagestringrequiredHuman-readable explanation. Wording may change.
fieldstringThe offending request field, present on validation failures.
The resource does not exist, or is not visible to this credential.
statusCodeintegerrequiredHTTP status code, repeated in the body.
codestringrequiredStable machine-readable error code, e.g. SECRET_NOT_FOUND or FORBIDDEN. Branch on this, never on the message.
messagestringrequiredHuman-readable explanation. Wording may change.
fieldstringThe offending request field, present on validation failures.
Rate limited. Retry after the interval named in the response.
statusCodeintegerrequiredHTTP status code, repeated in the body.
codestringrequiredStable machine-readable error code, e.g. SECRET_NOT_FOUND or FORBIDDEN. Branch on this, never on the message.
messagestringrequiredHuman-readable explanation. Wording may change.
fieldstringThe offending request field, present on validation failures.
Unexpected server error. The body never carries internal detail.
statusCodeintegerrequiredHTTP status code, repeated in the body.
codestringrequiredStable machine-readable error code, e.g. SECRET_NOT_FOUND or FORBIDDEN. Branch on this, never on the message.
messagestringrequiredHuman-readable explanation. Wording may change.
fieldstringThe offending request field, present on validation failures.