# How to enroll a disposable with an OTP by SMS

To enroll a lean disposable and send an otp by sms you have to:

* specify the required **mobile** property in the [`DisposableContacts`](/products/leandisposable/enterprise-documentation/developer-documentation/api-references/data-objects#disposablecontacts) object
* (optional) specify **`otpType=SMS`** in the [`DisposableCertificate`](/products/leandisposable/enterprise-documentation/developer-documentation/api-references/data-objects#disposablecertificate)object. If not specified the default otpType is SMS.


Then use these methods:

* [`checkData`](/products/leandisposable/enterprise-documentation/developer-documentation/api-references/lean-checkdata/lean-checkdata-method)/[`checkDataWitheIDAssertion`](/products/leandisposable/enterprise-documentation/developer-documentation/api-references/lean-checkdata/lean-checkdata-eid-assertion-method) (optional) : check the validity of the objects passed to the enroll methods
* [`getDisposableContract`](/products/leandisposable/enterprise-documentation/developer-documentation/api-references/lean-documents/lean-getdisposablecontract-method)/[`getDisposableContractWitheIDAssertion`](/products/leandisposable/enterprise-documentation/developer-documentation/api-references/lean-documents/lean-getdisposablecontractwitheidassertion-method) (optional)
* an [**enroll** method](/products/leandisposable/enterprise-documentation/developer-documentation/api-references/lean-enroll) : enroll the certificate
* [`sendOtp`](/products/leandisposable/enterprise-documentation/developer-documentation/api-references/lean-send-otp/lean-sendotp-method) : send the otp by sms
* `signPKCS1WithSHA256` in the FRA service or use SWS: sign the document
* [`uploadDoc`](/products/leandisposable/enterprise-documentation/developer-documentation/api-references/lean-documents/lean-uploaddoc-method)  to upload the evidence of the otp or the authentication flow (optional)


If you are still using the deprecated [`sendOtpDisposable`](/products/leandisposable/enterprise-documentation/developer-documentation/api-references/lean-send-otp/lean-sendotpdisposable-method) method you should replace it with the **sendOtp** method.