All How to guides
APIIntermediate7 min

Send and verify OTP codes

One-time codes for login and verification — send, store the reference, verify.

For App and web developers

  1. 1

    Send the code

    POST /otp/send with the recipient number and your Sender ID. Store the returned reference on your server, not in the browser.

  2. 2

    Collect the code

    The user types the SMS code in your app. Do not log the code in client analytics.

  3. 3

    Verify

    POST /otp/verify with the reference and the code. Treat a successful verify as one-time — do not reuse the same reference.

Newsletter

Subscribe to our newsletter

Delivery tips, SmartForms, and product updates from SplitSMS. No daily spam.

Occasional updates only. Unsubscribe any time.