cURL
curl --request POST \ --url https://api.example.com/v1/authenticate \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data ' { "username": "[email protected]", "password": "secure_password" } '
200
tokens
{ "access_token": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9...", "expires_in": 900, "user_id": "123e4567-e89b-12d3-a456-426614174000"}
Authenticate user and get tokens. If MFA is enabled for the user, returns MFA challenge instead of tokens.
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Bearer <token>
<token>
"[email protected]"
"secure_password"
Authentication successful or MFA required
Token expiration in seconds