Inspect a credential
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.
Request
Query parameters
websitestringoptional1–253 characters
Headers
AuthorizationstringrequiredBearer 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
| Field | Type | Description |
|---|---|---|
| status | "ok" | |
| data | object | |
| data.type | string | |
| data.userId | string | null | null | |
| data.siteIds | "all" | string[] | |
| data.scopes | string[] | |
| data.website | object | null | null | |
| data.website.id | string | |
| data.website.domain | string | |
| data.website.role | string | null | null | |
| data.website.effectiveScopes | string[] |