# Send OTP methods

Use these methods to send an OTP code to the holder after enrollment.

The OTP delivery channel depends on the `otpType` set during enrollment:

- **SMS** — OTP sent via SMS to the holder's mobile number
- **EMAIL** — OTP sent via email
- **WHATSAPP** — OTP sent via WhatsApp to the holder's mobile number (requires LRA authorization and template configuration)


Methods:

- [**sendOtp**](/products/leandisposable/enterprise-documentation/developer-documentation/api-references/lean-send-otp/lean-sendotp-method) — standard method
- [**sendOtpDisposable**](/products/leandisposable/enterprise-documentation/developer-documentation/api-references/lean-send-otp/lean-sendotpdisposable-method) — deprecated, use `sendOtp` instead


## Response

Both methods return an empty body on success.

| HTTP Status | Description |
|  --- | --- |
| `200` | OTP sent successfully. Response body is empty |


## Errors

All errors below return HTTP `500`.

| Error code | Description |
|  --- | --- |
| [2](/products/leandisposable/enterprise-documentation/developer-documentation/integration-guide/lean-ig-how-to-handle-errors#error-2-empty-field) | Some required fields are missing |
| [6](/products/leandisposable/enterprise-documentation/developer-documentation/integration-guide/lean-ig-how-to-handle-errors#error-6-generic-exception---internal-exception) | Generic exception — internal exception |
| 62 | The `certIdOtp` is not valid |
| 66 | The device OTP is not active |
| 71 | The device OTP is disabled |
| [85](/products/leandisposable/enterprise-documentation/developer-documentation/integration-guide/lean-ig-how-to-handle-errors#error-85-device-type-missing-or-not-allowed) | The `deviceCode` is not valid |
| [99](/products/leandisposable/enterprise-documentation/developer-documentation/integration-guide/lean-ig-how-to-handle-errors#error-99-otp-was-not-sent) | OTP was not sent |
| [100](/products/leandisposable/enterprise-documentation/developer-documentation/integration-guide/lean-ig-how-to-handle-errors#error-100-the-mobile-phone-number-is-not-valid) | The mobile phone number is not valid |
| [101](/products/leandisposable/enterprise-documentation/developer-documentation/integration-guide/lean-ig-how-to-handle-errors#error-101-sms-blocked-by-the-watchlist) | SMS blocked by the watchlist |
| [102](/products/leandisposable/enterprise-documentation/developer-documentation/integration-guide/lean-ig-how-to-handle-errors#error-102-the-email-address-is-not-valid) | The email address is not valid |
| [103](/products/leandisposable/enterprise-documentation/developer-documentation/integration-guide/lean-ig-how-to-handle-errors#error-103-the-otp-service-has-exceeded-the-timeout) | The OTP service has exceeded the timeout |
| 138 | The device OTP is not an SMS OTP device |
| [231](/products/leandisposable/enterprise-documentation/developer-documentation/integration-guide/lean-ig-how-to-handle-errors#error-231-otp-is-blocked) | OTP is blocked |
| [241](/products/leandisposable/enterprise-documentation/developer-documentation/integration-guide/lean-ig-how-to-handle-errors#error-241-lra-not-authorized-to-use-this-type-of-otp) | LRA not authorized to use this OTP type |
| 240 | No email template configured for this LRA |


For authentication errors, see [Authentication](/products/leandisposable/enterprise-documentation/developer-documentation/authentication).
For details on how to handle errors, see [How to handle errors](/products/leandisposable/enterprise-documentation/developer-documentation/integration-guide/lean-ig-how-to-handle-errors).