Cookie

Cookie consent

We use some essential cookies to make this website work. We'd like to set additional cookies to help us measure your experience when you view and interact with the website.

Cookie policy

Sample code for OTP verification

This page provides sample code to help you set up Postcoder one-time password (OTP) verification.

You'll need an API key to make these examples work. Not got an API key? Sign up for a free trial.

You'll also need to enable this feature on your API key using the Features page.

Send and verify a one-time SMS password using Postcoder

These examples show how to make requests to the otp/send and otp/verify endpoints to send and verify an OTP.