Get API key details
GET/v2/auth/whoami
Describes the key, not a person. Branch on grant.restricted: true means the key reaches only the spaces in spaces; false means every space, either an all-spaces grant or a legacy key with no grant. An all-spaces grant reports space_count and lists its spaces only when spaces is true.
Requestโ
Responsesโ
- 200
- 400
- 401
- 403
The key's grant, as it is enforced
Invalid path, query or request input
Missing, unknown, revoked or expired key; shared authentication envelope
The shared key-scope gate uses the legacy envelope; an operation-specific refusal may use the v2 error envelope