Verify OTP

Översikt

OTP är värdelöst om du inte kan verifiera det, inte sant? Nu ska vi se hur enkelt det faktiskt är att verifiera OTP. Inget lokalt utrymme krävs!

API Endpoint

POST `https://api.nomado.eu/2fa/verify`

Authentication

You can choose one of the authentication methods referenced here.

Body object

The JSON object representing the OTP to verify. Should be included in request body.

options description required default value
number string E164 formatted mobile number Yes
token string The OTP to verify Yes

Response

status code description
200 success Request sent successfully
400 bad request Incorrect or missing parameters
401 unauthorized Invalid credentials or incorrect authentication method

Som namnet antyder, kommer OTP att förstöras när det verifierats eller utgått.


Request example

Headers

Content-type: application/json
Authorization: BASIC base64encodedCredentials

Body

{
  "number": "32412345678",
  "token": "1234"
}

Response example

{
    "code": 200,
    "message": "OK",
    "verify": true
}