Send login OTPs with Twilio Verify | Zepio Help | Zepio Help Centre
Zepio

How can we help?

How to send login OTPs with Twilio Verify

Let customers log in with a code sent by SMS, using your own Twilio account. Covers creating a Verify service, finding your Account SID, Auth Token and Service SID, and what to check when the code doesn't arrive.

Updated 23 Nov 2026 4 min read


On this page

OTP login lets customers log in with their mobile number. They type their number, get a 6-digit code by SMS and type it in. They don't need a password.

Outside India, Zepio sends these codes through Twilio Verify, using your own Twilio account. Twilio sends the code and checks it, and bills your Twilio account for each verification. Zepio doesn't charge for it.

Where: Admin › Settings › Login

This is for stores outside India. Stores in India use MSG91 instead. In the Philippines you can choose Twilio Verify or Semaphore.

Before you start

  • A Twilio account. Sign up at twilio.com.
  • Credit on that account. A free trial account only sends codes to phone numbers you have verified in Twilio, so your customers wouldn't get them. Upgrade the account and add credit before you switch OTP login on. See Twilio's Verify pricing for what each code costs in your country.

You don't need to buy a phone number or register a sender name. Twilio Verify sends from Twilio's own approved senders.

Step 1: Create a Verify service

A Verify service holds the settings for your codes, such as the name customers see in the SMS.

  1. Log in to Twilio and open Verify › Services.
  2. Click Create new.
  3. For Friendly name, type your store's name. Customers see it in the SMS, for example "Your Fresh Basket verification code is: 482913". Keep it under 30 characters, using letters, numbers, spaces, dashes or underscores.
  4. Under the channels, choose SMS.
  5. Click Create. If Twilio asks more questions, such as whether to turn on Fraud Guard, keep the defaults.
  6. On the service's page, check that Code length is 6. This is Twilio's default. Zepio's login screen takes 6-digit codes, so codes of any other length won't work.
  7. Copy the Service SID. It starts with VA and is 34 characters long.

Step 2: Copy your Account SID and Auth Token

  1. Open the Twilio Console home page.
  2. Under Account Info, copy the Account SID. It starts with AC and is 34 characters long.
  3. In the same place, click Show next to Auth Token and copy it.

Treat the Auth Token like a password. Anyone who has it can use your Twilio account and spend your credit.

Step 3: Add your Twilio details in Zepio

  1. In your Zepio admin, go to Settings › Login.
  2. Set Login method to Otp Login.
  3. In the Philippines only: set SMS provider to Twilio Verify.
  4. Paste your Account SID, Auth Token and Verify Service SID.
  5. Click Apply changes.

Step 4: Test it

  1. Open your store's website or app and log out.
  2. Log in with your own mobile number.
  3. You should get the SMS within a few seconds. Type the code to log in.

The code expires after 10 minutes. Each code works once.

If the code doesn't arrive

"Failed to send OTP" on the login page Twilio turned down the request. Check these in order:

  • One of the three details in Settings › Login is wrong. Copy them from Twilio again and click Apply changes. The Account SID starts with AC and the Service SID starts with VA. It's easy to mix them up.
  • You made a new Auth Token in Twilio, which stops the old one working. Paste the new one into Zepio.
  • Your Twilio balance is empty, or the account is still a free trial.
  • The phone number is incomplete or has no country code.

The login page says the code was sent, but no SMS comes Open Monitor › Logs in Twilio, find the verification sent to that number and look at its status and error message.

If the error says the country is blocked, find Geo permissions under Verify in Twilio and allow SMS to that country. Twilio blocks some countries by default to protect accounts from SMS fraud.

"Invalid OTP or OTP expired" The customer typed a wrong code, or used one that was more than 10 minutes old or already used. Ask them to request a new code. If it happens with every code, check that Code length in your Verify service is 6 (Step 1).

Countries Twilio can't send to

Twilio doesn't deliver SMS to Cuba, Iran, North Korea or Syria. Stores in these countries can't use OTP login and should keep email and password login.

Did this answer your question?