Passer au contenu

Send OTP

Requête

Sends an OTP code to the holder via SMS or email. Use certIdOtp and deviceCode returned by enroll. See sendOtp.

Sécurité
basicAuth and sslCertificate
Corpsapplication/json
certIdOtpinteger, (int32)obligatoire

OTP certificate identifier returned by enroll (certIdOtp).

Exemple:1234567
deviceCodestringobligatoire

Device code returned by enroll (deviceCode).

Exemple:"RHIDP0000000000000"
smsOptionsobject(SmsOptions)

Required if otpType=SMS.

emailOptionsobject(EmailOptions)

Required if otpType=EMAIL.

curl -i -X POST \
  -u '<username>:<password>' \
  https://lean.namirialtsp.com/RAWS_DISPOSABLE/api/certificate/sendOtp \
  -H 'Content-Type: application/json' \
  -d '{
    "certIdOtp": 1234567,
    "deviceCode": "RHIDP0000000000000",
    "smsOptions": {
      "textSMS": "Your OTP code is: $OTP$"
    }
  }'

Réponses

OTP sent successfully. Response body is empty.

Réponse
Aucun contenu