Who a key is
The team, the key and its grants. A provider calls this once to learn the team slug (for the default route
<project>.<slug>.sproutboat.app) and to check that the key can do what it needs.
/v1/whoamiAuthorizationBearer token · headerrequiredA team API key, sbk_..., from Settings, API keys.
x-api-keyAPI key · headerrequiredThe same key, in a header of its own.
The key's identity.
kindstringrequiredorganizationstringrequiredThe team's id.
organization_slugstring | nullThe <team> in <project>.<team>.sproutboat.app.
organization_namestring | nullkeyobjectShow propertiesHide properties
idstringnamestring | nullstartstring | nullThe first characters of the key, for recognition.
permissionsobject | nullGrants by resource, for example {"app": ["read", "write"], "secret": ["list", "write"]}.
expires_atstring<date-time> | nullcreated_byobject | nullThe team member who created the key.
Show propertiesHide properties
idstringnamestringemailstringNo key, or an invalid, expired or revoked key (unknown or missing API token, invalid, expired or revoked API key). No reason.
errorstringrequiredA message for people. Do not parse it.
reasonstringA stable, machine-readable cause, when there is one.
pathstringThe request field at fault.
needstringThe grant a 403 asks for, app:write for example.
retry_after_sintegerThe key is over its requests a minute (600, or 2,000 with app:write; reason: key-rate-limited, retry_after_s, Retry-After). Wait that long and retry.
errorstringrequiredA message for people. Do not parse it.
reasonstringrequiredkey-rate-limitedretry_after_sintegerrequiredSeconds to wait; also the Retry-After header.