Skip to content
Account API / Account

Inspect a credential

GEThttps://<your Reveata origin>/api/v1/whoami

Returns the credential type, its scopes and website scope. Pass website to see the role and the scopes that actually work on that website right now (scopes are capped by your current role).

Related: Get your account and Update your account in Account.

Try in playground

Request

Query parameters

websitestringoptional

1–253 characters

Headers

Authorizationstringrequired

Bearer followed by a site key, an account token or an OAuth access token.

Response

The credential.

{
  "status": "string",
  "data": {
    "type": "session",
    "userId": "string",
    "siteIds": [],
    "scopes": [],
    "website": {
      "id": "string",
      "domain": "string",
      "role": "viewer",
      "effectiveScopes": []
    }
  }
}

Response fields

FieldTypeDescription
status"ok"
dataobject
data.typestring
data.userIdstring | null | null
data.siteIds"all" | string[]
data.scopesstring[]
data.websiteobject | null | null
data.website.idstring
data.website.domainstring
data.website.rolestring | null | null
data.website.effectiveScopesstring[]