Auth
POST /v1/auth/invitations
Invite an email to the caller's workspace. Caller must be owner or admin. Sends OTP email best-effort.
POST /v1/auth/invitationsInvite an email to the caller's workspace. Caller must be owner or admin. Sends OTP email best-effort.
Required scope: brain:read
Body fields
| Name | Required | Notes |
|---|---|---|
email | yes | |
role | no | admin |
Example
curl -X POST 'https://brain.unisonlabs.ai/v1/auth/invitations' \
-H "Authorization: Bearer $UNISON_TOKEN" \
-H 'content-type: application/json' \
-d '{"email": "...", "role": "..."}'Returns the JSON described above on success, or an error envelope { "error": { "code", "message" } } on failure.