Skip to main content
POST
Sign in with an existing admin email and password to receive a JWT access token. Use this token in the Authorization header when calling admin-only endpoints such as Create Service Token, Rotate Service Token, and Reset Admin Password.
Self-Hosted Only: This endpoint is available only on self-hosted Databrain instances.

Headers

string
required
Must be application/json when sending a JSON body.

Request Body

string
required
Admin user’s email address. Must be a valid email with at least two domain segments.
string
required
Admin user’s password.

Response

On success, the API returns 200 with a JSON object:
object
Wrapper object for the response payload.
string
JWT access token. Use as Authorization: Bearer <accessToken> for admin and service-token APIs.
On error, the API returns a JSON object with error.code and error.message and an appropriate HTTP status (400 or 500).

Examples

HTTP Status Code Summary

Possible Errors