Auth
DELETE /v1/auth/keys/:id
Revoke one of the caller's own keys (sets revokedAt). Revoking the currently-used key is allowed.
DELETE /v1/auth/keys/:idRevoke one of the caller's own keys (sets revokedAt). Revoking the currently-used key is allowed.
Required scope: brain:read
Path parameters
| Name | Required | Notes |
|---|---|---|
id | yes |
Example
curl -X DELETE 'https://brain.unisonlabs.ai/v1/auth/keys/:id' \
-H "Authorization: Bearer $UNISON_TOKEN"Returns the JSON described above on success, or an error envelope { "error": { "code", "message" } } on failure.
POST /v1/auth/keys
Mint an additional usk_ key for the caller. Scopes must be a subset of the caller's scopes. brain:act-as requires owner/admin role. Optional body.workspaceId mints a key bound to a different member workspace.
POST /v1/auth/invitations
Invite an email to the caller's workspace. Caller must be owner or admin. Sends OTP email best-effort.