Note: Username and password are generated in the BizMail Portal. Please log in to your account at the portal to obtain your credentials before calling these APIs.
POST /api/1.0/auth/refresh
Use the refresh_token to get a new pair of access token and refresh token without re-entering credentials.
200 OK — Success
400 Bad Request — Missing field
401 Unauthorized — Token expired
401 Unauthorized — Invalid token
401 Unauthorized — User not found
500 Internal Server Error
Use the new access_token in subsequent requests via the Authorization header:
When the refresh_token also expires (after 90 days), call POST /api/1.0/auth/token again to get a new pair.
Lưu ý: Username và password được tạo trên BizMail Portal. Vui lòng đăng nhập vào tài khoản của bạn trên portal để lấy thông tin đăng nhập trước khi gọi các API này.
POST /api/1.0/auth/refresh
Dùng refresh_token để lấy cặp token mới mà không cần nhập lại username/password.
200 OK — Thành công
400 Bad Request — Thiếu tham số
401 Unauthorized — Token hết hạn
401 Unauthorized — Token không hợp lệ
401 Unauthorized — Không tìm thấy user
500 Internal Server Error
Dùng access_token mới trong header Authorization của các request tiếp theo:
Khi refresh_token cũng hết hạn (sau 90 ngày), gọi lại POST /api/1.0/auth/token để lấy cặp token mới.