Authentication

Login or register

Validates the OTP and returns a token to use in the rest of the API

post/auth/login/verify-otp

Request

  • Base URL: https://api.eldorado.io/api
  • URL: https://api.eldorado.io/api/auth/login/verify-otp
  • Auth: none required

Headers

X-Client-IDstring required
X-Referral-IDstring required
User-Agentstring

Request body

otpstring required
otpIdentifierstring required
usernamestring

Example request

{
  "otp": "123456AB",
  "otpIdentifier": "019fa01a-d013-73ca-b66b-81ed52b2ec93",
  "username": "example"
}

Response

Cookie to use in the rest of the API

okboolean required
tokenstring required
expiresAtstring required

Example response

{
  "ok": true,
  "token": "123123123123123123123123",
  "expiresAt": "2023-10-01T00:00:00Z",
  "user": {
    "kyc_status": "started",
    "kyc_level": "L0"
  }
}

Changes

No recorded changes to this operation across all 1 revision of this API.