Skip to main content
🚨 All authorized endpoints require the Authorization: Bearer <ACCESS_TOKEN> header in every request.
Without it, the API responds with 401 - Unauthorized and blocks the call.
Example header:

1. Login Operation

🔐 Login operations always use a username and password pair.
API Endpoint: /v1/auth/login
Example Request Payload:
Example Success Response:
⏳ Access tokens stay valid for 1 hour, while refresh tokens live for 1 full day.
Possible Error Responses:

2. Authentication Token Refresh Operation

🔁 When the access token expires, renew it with the refresh token.
API Endpoint: /v1/auth/refresh
Example Request Payload:
✅ Responses mirror the payload returned by the Login Operation.
⚠️ If you receive a 401 - Unauthorized response, refresh your access token and retry.
🔁 Should refresh attempts also fail with 401, perform a fresh login before proceeding.