Passer au contenu principal
POST
/
otp
/
verify
Vérifier un code OTP
curl --request POST \
  --url https://api.notiline.net/v1/otp/verify \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "to": "+2250709538217",
  "code": "1234"
}
'
{
  "status": 200,
  "message": "success",
  "data": {
    "uniq_id": "unique_id",
    "to": "+2250709538217",
    "channel": "sms",
    "verified_at": "2022-01-01 00:00:00",
    "send_at": "2022-01-01 00:00:00",
    "application_name": "MyApp"
  }
}

Autorisations

Authorization
string
header
requis

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Corps

application/json
to
string
requis

Numéro de téléphone ou adresse e-mail du destinataire

Exemple:

"+2250709538217"

code
string
requis

Code OTP à vérifier

Exemple:

"1234"

Réponse

Opération réussie

status
integer
Exemple:

200

message
string
Exemple:

"success"

data
object