v1
authentication
User Authentication Login
Authenticate user credentials and obtain access token for ReelAPI.
Returns JWT access token along with user information for authentication and authorization.
Response Information
- access_token: JWT Bearer token for API authentication
- token_type: Token type (always "bearer")
- user_role: User's assigned role (operator, admin, or sys_admin)
- username: Authenticated username for display and identification
Token Details
- Type: Bearer token for Authorization header
- Lifespan: 24 hours from generation
- Usage Pattern: Authorization: Bearer <access_token>
Frontend Usage
Use the user_role field to control UI element visibility and provide role-appropriate user experiences.
post/api/v1/login
Response
JWT access token and user information for authenticated API access
Example response
{
"description": "Standard operator user authentication",
"summary": "Operator Login",
"value": {
"access_token": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiJvcGVyYXRvcl8xIiwiZXhwIjoxNjM5NTg0MDAwfQ.signature",
"token_type": "bearer",
"user_role": "operator",
"username": "operator_1"
}
}