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.
Authorization header when calling admin-only endpoints such as Create Service Token, Rotate Service Token, and Reset Admin Password.
application/json when sending a JSON body.Authorization: Bearer <accessToken> for admin and service-token APIs.error.code and error.message and an appropriate HTTP status (400 or 500).
| Status Code | Description |
|---|---|
200 | OK – Access token returned in data.accessToken |
400 | Bad Request – Invalid credentials or validation error |
500 | Internal Server Error – Server error or self-hosted-only error |
| Code | Message | HTTP Status |
|---|---|---|
USER_NOT_FOUND | No User found with the given email | 400 |
Invalid credentials | Invalid credentials (when password is incorrect or login fails) | 400 |
SELFHOSTED_APP_ERROR | This feature is only available for self-hosted instances | 500 |
INTERNAL SERVER ERROR | Connection Failure | 500 |