Endpoints for obtaining access tokens.
Login (Get Access Token)
Exchange your credentials for a JWT access token.
Endpoint: POST /v1/login/access-token
Request
This endpoint expects multipart/form-data or application/x-www-form-urlencoded.
Parameters:
| Field | Type | Required | Description |
|---|---|---|---|
username |
string | Yes | User's email address or username |
password |
string | Yes | User's password |
Example Request
curl -X 'POST' \
'https://api.fav3.velamobile.com/v1/login/access-token' \
-H 'Content-Type: application/x-www-form-urlencoded' \
-d 'username=admin%40example.com&password=yourpassword'
Response
Success (200 OK):
Session Details:
- Access Token Expiry: 24 hours (configurable)
- Session Tracking: Server-side session validation enabled
Error Responses
400 Bad Request - Incorrect credentials:
429 Too Many Requests - Rate limit exceeded:
Token Expiry
If the access token expires or is invalid, the API returns 403 Forbidden.
Response:
Action: The client must re-authenticate by calling /v1/login/access-token again.