Skip to content

Send OTP

Request

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

Security
basicAuth and sslCertificate
Bodyapplication/json
certIdOtpinteger, (int32)required

OTP certificate identifier returned by enroll (certIdOtp).

Example:1234567
deviceCodestringrequired

Device code returned by enroll (deviceCode).

Example:"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$"
    }
  }'

Responses

OTP sent successfully. Response body is empty.

Response
No content