Skip to content

Glossary

One-time password (OTP): the code that works once

The 6 digits a site texts or emails at sign-up are a one-time password. It proves you control the phone or inbox, then it is spent.

A one-time password (OTP) is a short secret that works once, such as a 6-digit code sent by text or email, to prove that a person or program controls an account or device. NIST’s guidance asks for at least 6 digits and says a code sent out of band is invalid unless used within 10 minutes.

On this page
  1. What an OTP is
  2. How OTP codes are made
  3. Why an OTP matters to an AI agent

What an OTP is

NIST’s Digital Identity Guidelines, SP 800-63B-4, define an OTP as a secret generated by an authenticator and used only once to prove possession of the authenticator. In everyday use it is the code a site sends to a phone number or inbox, or the code an authenticator app shows, at sign-up, sign-in or a payment.

How OTP codes are made

  • Sent to you: the site generates a random code and delivers it by text, email or call. NIST asks for at least 6 digits and says the code is invalid unless used within 10 minutes.
  • Counter-based (HOTP): RFC 4226 (December 2005) builds each code from a secret and a counter. It says implementations must extract at least a 6-digit code.
  • Time-based (TOTP): RFC 6238 replaces the counter with elapsed time. Its recommended step is 30 seconds, which is why an authenticator app’s code changes twice a minute.

NIST also notes that OTP devices are not phishing-resistant, and it says email must not be used for out-of-band authentication (it exempts codes that only confirm an email address). Sites still send sign-up codes by email and text, so every agent that signs up for things meets both.

Why an OTP matters to an AI agent

An agent that signs up for a service can fill a form but cannot answer a code sent to a number or inbox it does not own. Without a phone number and inbox of its own, the sign-up stops at the code, or a person has to read it out.

Obsession gives each agent its own phone number and email inbox. Verification codes are pulled out of each text or email, so the agent can finish the sign-up, and every code lands in the event log with its time. The Sign-in code check blueprint runs that test on a schedule, and OTP testing covers the team that sends the codes.

It is set by the site. NIST’s guidance says a code sent out of band is invalid unless used within 10 minutes, and an authenticator app’s time-based code changes about every 30 seconds.

An OTP is a code you type in. A magic link is a single-use link you open. Both prove you control the inbox or phone that received them.

What is a magic link?

Yes, if it has a phone number or inbox of its own. The code is read out of the text or email so the sign-up finishes without a person.

Phone numbers for AI agents

Sources

In the order the page cites them. Every page was read on 24 Nov 2026.

  1. Digital Identity Guidelines: Authentication and Authenticator Management (SP 800-63B-4)NIST
  2. RFC 4226: HOTP: An HMAC-Based One-Time Password AlgorithmRFC Editor (IETF), Dec 2005
  3. RFC 6238: TOTP: Time-Based One-Time Password AlgorithmRFC Editor (IETF)

Related terms

Each defined in a sentence, with where it shows up.

Guides that use it

Step-by-step guides, each with every source linked.

Where this term is used

The comparisons, alternatives and terms that lean on it.

Where to go next

The pieces, use cases and rules this page draws on, each on its own page.

Start with the piece your agent needs, or a ready-made job.

Browse blueprints