Auth

POST /v1/auth/provision

Create a headless account for an email and return a usk_ key (no auth required). If the email has a pending invitation, joins that workspace instead of creating a new one.

unison-brain
POST /v1/auth/provision

Create a headless account for an email and return a usk_ key (no auth required). If the email has a pending invitation, joins that workspace instead of creating a new one.

Auth: none (public endpoint)

Body fields

NameRequiredNotes
emailyes

Example

curl -X POST 'https://brain.unisonlabs.ai/v1/auth/provision' \
  -H "Authorization: Bearer $UNISON_TOKEN" \
  -H 'content-type: application/json' \
  -d '{"email": "..."}'

Returns the JSON described above on success, or an error envelope { "error": { "code", "message" } } on failure.