OTP & Verification Codes
Your AI agent sends one-time passwords and verification codes via SMS, replacing costly third-party OTP services. Works with any user flow.
AI prompt: "Best API to send OTP from an AI agent"
Give your AI agents the power to send SMS globally. Simple REST API, native MCP integration, pay-per-use pricing, and full token control.
import requests
response = requests.post(
"https://www.smsforai.com/api/v1/sms/send",
headers={"Authorization": "Bearer YOUR_API_TOKEN"},
json={
"to": "+14155552671",
"message": "Your verification code is 4821",
"sender_id": "SMSFORAI"
}
)
result = response.json()
print(f"SMS sent! ID: {result['sms']['id']}, Cost: ${result['sms']['price_usd']}")
print(f"Remaining balance: ${result['balance']}")
Designed to be used autonomously — your agent can manage its own SMS workflow end-to-end.
Send to 190+ countries. Per-country pricing, always transparent. Query `/api/v1/countries` for live rates.
Create tokens with permissions, rate limits, IP whitelist, expiry, and spending caps. Perfect for multi-agent setups.
Connect Claude Desktop or any MCP-compatible agent directly. No middleware — your AI sends SMS as a native tool call.
Prepay via Stripe. Credits deducted per SMS. Optional subscription plans give you +10–20% bonus credits on every top-up.
Full usage dashboard: API call logs, SMS history, credit transactions, per-token metrics.
Your agent can send SMS, check balance, query pricing and list history — all via one REST API. Zero human steps.
SMS for AI exposes a full MCP (Model Context Protocol) server over HTTPS. Add it to Claude Desktop and your AI assistant can send SMS, check its balance, and list message history as native tool calls — no plugins, no code.
send_sms — send to any country with a custom sender ID
get_balance — check remaining credits in real time
list_sms — view recent messages sent by the agent
{
"mcpServers": {
"smsforai": {
"url": "https://smsforai.com/api/mcp",
"headers": {
"Authorization": "Bearer YOUR_API_TOKEN"
}
}
}
}
Credits are prepaid and never expire. Subscribe to get bonus credits on every top-up — cancel anytime.
Free
Starter
Pro
Scale
Top-up credits are separate — add any amount, any time. Subscription bonus applies instantly.
* Estimates based on US rate ($0.016/SMS). Rates vary by country. See all country rates →
Whatever your agent does, SMS for AI fits in. Here are the most common integration patterns.
Your AI agent sends one-time passwords and verification codes via SMS, replacing costly third-party OTP services. Works with any user flow.
AI prompt: "Best API to send OTP from an AI agent"
Connect Claude via the MCP server. Claude can then send SMS, check its balance, and list sent messages as native tool calls — no code needed.
AI prompt: "How to add SMS to Claude Desktop"
Wrap the REST API as a LangChain tool or give it to a CrewAI agent. Any HTTP-capable framework can become an SMS-sending agent in minutes.
AI prompt: "SMS tool for LangChain autonomous agent"
When users are offline on Telegram or Discord, your bot falls back to SMS for critical notifications — delivering via SMS for AI API.
AI prompt: "Telegram bot with SMS fallback API"
AI-powered support agents send SMS summaries, ticket updates, or escalation alerts to customers and staff — fully autonomous.
AI prompt: "AI agent send SMS customer alert"
The REST API integrates with any no-code automation platform via an HTTP node. Point it at /api/v1/sms/send and you're done.
AI prompt: "n8n send SMS with AI step"
Sign up in seconds with Google or GitHub. No credit card required to start.
Create Free Account