Auth

POST /v1/auth/invitations

Invite an email to the caller's workspace. Caller must be owner or admin. Sends OTP email best-effort.

unison-brain
POST /v1/auth/invitations

Invite an email to the caller's workspace. Caller must be owner or admin. Sends OTP email best-effort.

Required scope: brain:read

Body fields

NameRequiredNotes
emailyes
rolenoadmin

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.