Overview
The UTMStack Authentication API issues JWT tokens to clients who provide valid credentials. Clients must authenticate using this endpoint before calling any protected resource in the UTMStack platform.This endpoint does not require authentication. It returns a JWT access token that must be used for subsequent requests.
Endpoint Details
POST /api/authenticate
Method: POST
Content-Type: application/json
Authentication: Not required
Response: JWT token for API access
Content-Type: application/json
Authentication: Not required
Response: JWT token for API access
Parameters
Request Body
string
required
User login name or email address
string
required
User password
boolean
default:"false"
Optional. Keeps the session active for a longer period
JSON Schema (Request)
Response Examples
Successful Authentication (TFA disabled)
- Response
- Headers
TFA Challenge (TFA enabled)
When
authenticated is false, you need to complete the two-factor authentication process by providing the verification code sent to your email.JSON Schema (Response)
Request & Response Examples
Additional Code Examples
Status Codes
OK
Authentication successful. Token returned.
Unauthorized
Invalid username or password.
Forbidden
Login blocked (too many attempts).
Too Many Requests
Rate limit exceeded.
Internal Server Error
Unexpected issue during authentication.
Error Handling
403 Forbidden
403 Forbidden
Description: Login temporarily blocked due to multiple failed attempts
Resolution: Wait for cooldown period or contact admin.
Resolution: Wait for cooldown period or contact admin.
500 Internal Server Error
500 Internal Server Error
Description: Unexpected backend error
Resolution: Check logs or contact UTMStack support.
Resolution: Check logs or contact UTMStack support.