Skip to main content
Generates an access token, refresh token, and OTP token for an underlying account.

Endpoint

Required body parameters

  • username — Account username. Example: 022C099995
  • password — Account password. Example: 123456aA@

Response fields

  • access_token (string) — Access token for authenticated requests.
  • refresh_token (string) — Refresh token for renewing the session.
  • expires_in (number) — Access token lifetime in seconds.
  • otp_token (string) — OTP token returned by the authentication flow.
  • token_type (string) — Token type. Example: Bearer

cURL

Python

Example response

Error response

Replace BASE_URL with your API host. Upstream error messages can be returned in Vietnamese.