Wait (blocking, up to 90s) for an SMS verification code / OTP to arrive on a phone number
Wait (blocking, up to 90s) for an SMS verification code / OTP to arrive on a phone number you own, and return the parsed code. Body (all optional): { timeout_s (default 60, max 90), lookback_s (default 10; pass 0 for reused numbers), pattern (custom regex, max 256 chars) }
20000 (raw units)
price
14
calls / 30d
2
unique payers
2026-09-17
updated
Provider
palmyr.ai · discovered, not yet claimed by its owner
Payment (x402 accepts[])
[
{
"scheme": "exact",
"network": "solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp",
"payTo": "GqSs5L9aPWGJwyRQe35YKQaWMDPh3R1dMqfSEPhSgkM",
"asset": "EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v",
"amount": "20000",
"maxTimeoutSeconds": 60
},
{
"scheme": "exact",
"network": "eip155:8453",
"payTo": "0x79e999e2f9d5417F2803f1d88602aB1EA4323881",
"asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
"amount": "20000",
"maxTimeoutSeconds": 60
}
]Output schema
{
"bazaar": {
"category": "communications",
"discoverable": false,
"info": {
"input": {
"body": {},
"bodyType": "json",
"method": "POST",
"pathParams": {
"id": "Unique identifier (UUID format)"
},
"type": "http"
},
"inputSchema": {
"properties": {
"body": {
"additionalProperties": true,
"type": "object"
}
},
"required": []
},
"output": {
"example": {}
}
},
"routeTemplate": "/phone/numbers/:id/wait-otp",
"schema": {
"properties": {
"input": {
"properties": {
"body": {
"additionalProperties": true,
"type": "object"
}
}
},
"output": {
"properties": {
"example": {
"additionalProperties": true,
"type": "object"
}
}
}
}
},
"tags": [
"phone",
"sms",
"otp",
"verification",
"code",
"wait",
"2fa"
]
}
}Use it
curl
curl "https://palmyr.ai/phone/numbers/:id/wait-otp" # -> 402 Payment Required, accepts[] lists how to pay # retry with a PAYMENT-SIGNATURE (or PAYMENT header) once paid
JavaScript
const res = await fetch("https://palmyr.ai/phone/numbers/:id/wait-otp");
if (res.status === 402) {
const { accepts } = await res.json();
// pay one of accepts[] via an x402 client, then retry with the payment header
}Python
import httpx
res = httpx.get("https://palmyr.ai/phone/numbers/:id/wait-otp")
if res.status_code == 402:
accepts = res.json()["accepts"]
# pay one of accepts[] via an x402 client, then retry with the payment headerMachine-readable
Everything on this page is also available as clean JSON at /resources/2621.json, and this resource appears in /discovery/resources and /discovery/search.