> ## Documentation Index
> Fetch the complete documentation index at: https://stytch.com/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# One-time passcodes (OTP) overview

> Use SMS or WhatsApp one-time passcodes to verify users during login and signup.

One-time passcodes (OTP) let you verify users by sending a short code over SMS or WhatsApp. OTPs are a good fit for passwordless login, phone verification, and step-up authentication when you need an additional factor.

> [!WARNING]
>
> OTPs can be targeted by toll fraud. Review the [Toll fraud resources](https://stytch.com/docs/resources/policies/messaging/toll-fraud.md) before enabling SMS at scale.

## How OTPs work

1. Collect the user's phone number and request a passcode.
2. The user enters the code they receive.
3. Your app verifies the code and optionally establishes a session.

## Next steps

> [card] [API integration](https://stytch.com/docs/consumer-auth/authentication/otps/api.md)
>
> Send and authenticate OTPs from your backend.

> [card] [SDK integration](https://stytch.com/docs/consumer-auth/authentication/otps/sdk.md)
>
> Add OTPs to Stytch Login with the frontend SDK.
