Auth
GET /v1/auth/workspaces
List all workspaces the caller is a member of, with their role and which is active.
GET /v1/auth/workspacesList all workspaces the caller is a member of, with their role and which is active.
Required scope: brain:read
Example
curl -X GET 'https://brain.unisonlabs.ai/v1/auth/workspaces' \
-H "Authorization: Bearer $UNISON_TOKEN"Returns the JSON described above on success, or an error envelope { "error": { "code", "message" } } on failure.
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/keys
List the caller's API keys (id, name, keyPrefix, scopes, createdAt, expiresAt, revokedAt). Optional ?workspaceId= to list keys scoped to a member workspace.