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.
POST /v1/auth/provisionCreate 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
| Name | Required | Notes |
|---|---|---|
email | yes |
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.