Self-Hosted APIs
Create Admin JWT (Self-Hosted)
Sign in as an admin and receive a JWT access token for self-hosted Databrain. Use this token for service token and admin APIs. Self-hosted only.
POST
Sign in with an existing admin email and password to receive a JWT access token. Use this token in the
On error, the API returns a JSON object with
Authorization header when calling admin-only endpoints such as Create Service Token, Rotate Service Token, and Reset Admin Password.
Headers
Request Body
Response
On success, the API returns 200 with a JSON object:JWT access token. Use as
Authorization: Bearer <accessToken> for admin and service-token APIs.error.code and error.message and an appropriate HTTP status (400 or 500).
Examples
HTTP Status Code Summary
Possible Errors
Related
- Create Admin Account – Create the first admin account
- Create Service Token – Create a service token (requires this JWT)
- Reset Admin Password – Change admin password (requires this JWT)

