🔑 AgentVerify OTP

OTP Verification for AI Agents

Provision a phone number. Receive OTPs. Complete 2FA. One API call.

What it does

Give your agent a temporary phone number that can receive SMS messages. Use it to complete OTP/2FA verification flows that would otherwise block autonomous agents. The agent provisions a number, your app triggers the SMS, and the agent reads the code via webhook.

Why agents need this

Get started in 30 seconds

One API call. No SDK. No configuration.

cURL

# 1. Provision a number
curl -X POST https://www.agent-utils.com/api/otp \
  -H "x-api-key: au_your_key" \
  -H "Content-Type: application/json" \
  -d '{"countryCode": "US"}'

# 2. Use the number to trigger SMS
# 3. Read the OTP code
curl https://www.agent-utils.com/api/otp/{sessionId} \
  -H "x-api-key: au_your_key"

Python

import requests

# Provision a number
resp = requests.post(
    "https://www.agent-utils.com/api/otp",
    headers={"x-api-key": "au_your_key"},
    json={"countryCode": "US"},
)
session = resp.json()["data"]
phone_number = session["phoneNumber"]

# Later: check for OTP code
resp = requests.get(
    f"https://www.agent-utils.com/api/otp/{session['id']}",
    headers={"x-api-key": "au_your_key"},
)
code = resp.json()["data"]["code"]

JavaScript

// Provision a number
const res = await fetch("https://www.agent-utils.com/api/otp", {
  method: "POST",
  headers: { "x-api-key": "au_your_key", "Content-Type": "application/json" },
  body: JSON.stringify({ countryCode: "US" }),
});
const { data: session } = await res.json();

// Later: check for OTP code
const otp = await fetch(
  `https://www.agent-utils.com/api/otp/${session.id}`,
  { headers: { "x-api-key": "au_your_key" } }
);
const { data } = await otp.json();
console.log(data.code); // "482917"

Use cases

Account creation

Agent creates accounts on services that require phone verification

Login automation

Agent logs into services protected by SMS-based 2FA

Testing 2FA flows

QA agents test your own product's OTP verification flow end-to-end

Identity verification

Agent completes KYC flows that require phone number confirmation

AgentUtils vs. alternatives

Traditional tools like Twilio Verify, Vonage Verify, Auth0 OTP require SDK integration, credential management, and infrastructure setup. AgentUtils replaces all of that with a single HTTP call.

AgentUtilsAlternatives
Setup time30 secondsHours to days
SDK requiredNo (REST API)Yes
Credentials to manage1 API keyMultiple keys/tokens
InfrastructureZero-configProvision + configure

Related tools

All AgentUtils tools

Start building for free

500 free API calls per month. No credit card required.