Quick Start

Send SMS Code

  • Request

    curl --request POST \
    --url https://dev.ebaocloud.com/api/two-factor-service/2fa/sendCode \
    --header 'content-type: application/json' \
    --data '{
      "phoneNumber": "+8618101890138"
    }'
    • Response
{
  "message": "",
  "token": "au5k7sedg4m1eou6nafhlvk3i4",
  "successful": true
}

SMS with Code

SMS with Code

Verify the Code

  • Request

    curl --request POST \
    --url https://dev.ebaocloud.com/api/two-factor-service/2fa/verifyCode \
    --header 'content-type: application/json' \
    --header 'sms-token: au5k7sedg4m1eou6nafhlvk3i4' \
    --data '{
      "phoneNumber": "+8618101890138",
      "code": "764683"
    }'
    • Response
    {
    "errorMessage": "",
    "verified": true
    }

results matching ""

    No results matching ""