Create the first admin account for your self-hosted Databrain instance. Returns an access token for the new admin. Self-hosted only.
application/json when sending a JSON body.user@example.com). Some common consumer email domains may be blocked (e.g. gmail, yahoo, outlook).Authorization: Bearer <accessToken> header for admin APIs (e.g. Create Service Token, Reset Admin Password).error.code and error.message and an appropriate HTTP status (400 or 500).
| Status Code | Description |
|---|---|
200 | OK – Admin account created; data.accessToken returned |
400 | Bad Request – Validation error (invalid email, weak password, missing fields) or company already exists |
500 | Internal Server Error – Server error or self-hosted-only error |
| Code | Message | HTTP Status |
|---|---|---|
INVALID REQUEST BODY | Joi validation message (e.g. "firstName" is required, "password" should contain at least 1 uppercase character) | 400 |
INVALID_REQUEST | Your company account is already created, please sign in | 400 |
SELFHOSTED_APP_ERROR | This feature is only available for self-hosted instances | 500 |
INTERNAL_SERVER_ERROR | INTERNAL_SERVER_ERROR | 500 |