Auth
GET /v1/auth/whoami
Return the authenticated user, workspace, and scopes for the presented key. When delegated (X-Unison-Actor), includes actedAs: { externalId, userId }.
GET /v1/auth/whoamiReturn the authenticated user, workspace, and scopes for the presented key. When delegated (X-Unison-Actor), includes actedAs: { externalId, userId }.
Required scope: brain:read
Example
curl -X GET 'https://brain.unisonlabs.ai/v1/auth/whoami' \
-H "Authorization: Bearer $UNISON_TOKEN"Returns the JSON described above on success, or an error envelope { "error": { "code", "message" } } on failure.