An SMS API for AI agents, on the number that already takes their calls
Point a CallNode number's messaging webhook at your agent. Every text and picture message arrives as JSON, your agent replies in the same thread, and it can start conversations through a signed API. STOP, quiet hours and 10DLC registration are enforced server-side.
- SMS $0.01
- MMS $0.04 on a local number
- One number for calls and texts
- Plain HTTPS and JSON, no SDK
One number, two channels
CallNode is the phone layer under your agent, not the agent itself. A number has a voice setting and a messaging setting, and you can set both when you buy it. From the numbers docs: "Voice handling (a webhook, a realtime WebSocket, or delivery to a SIP trunk) and the messaging webhook can be provisioned in the same call, so the number is fully wired the moment it activates."
So the number a customer calls is the number they text, and your agent answers both. For the voice side, see a phone number for your AI agent.
Texts in: a webhook per number
Set messaging.webhookUrl on the number. The numbers docs describe it as "POSTed for each inbound SMS/MMS to this number". Auth is your choice: none, basic, bearer or a custom header, the same options as the voice webhook.
This is an inbound text as it arrives, from CallNode's n8n guide:
{
"messageId": "1788350712-8f2c1a9e4b7d",
"from": "+14155551234",
"to": "+18005551234",
"body": "What are your hours?",
"media": [],
"messageType": "sms",
"timestamp": "2026-09-02T14:05:12.000Z",
"direction": "inbound"
}
Your agent replies in the same thread by returning reply:
{
"reply": "We're open 9am to 6pm ET, Monday to Friday. How can we help?",
"media": []
}
Picture messages arrive the same way, "with any pictures as links in media".
Texts out: one signed POST
When your agent starts a conversation (a confirmation, a reminder, a follow-up), it calls the messages endpoint. From the messaging docs: POST /api/v1/messages "Sends an SMS or MMS from one of your messaging-enabled numbers. Returns 202 once the carrier accepts it."
{
"to": "+16135551234",
"from": "+15145550199",
"body": "Your demo is confirmed for Wednesday at 10am.",
"media": [],
"statusWebhookUrl": "https://yourcrm.example.com/sms/events",
"tcpaOverride": false,
"metadata": { "leadId": "lead_abc123" }
}
- Base URL and signing:
https://api.callnode.io, signed with theX-Api-Key/X-Timestamp/X-SignatureHMAC scheme. "A single API key works for both" calls and messages. - Pictures: adding
media"makes the message an MMS". Each entry is a public URL or the file itself as a base64 data URL. "JPG, PNG, GIF, WebP, MP4 and PDF; up to 5 MB each." So "an image a model just generated" works without hosting it. - Delivery status: set
statusWebhookUrland CallNode posts a signedmessage.deliveredormessage.failedevent. Yourmetadatacomes back unchanged. - Safe retries: "Reusing an X-Idempotency-Key returns the original message with idempotencyReplay: true and does not send or charge twice."
- Long texts: "SMS segments are billed (160 GSM-7 / 70 Unicode chars each)."
The rules are enforced for you, server-side
From the docs: "You are the sender of record. Every send is gated server-side." Your agent can't text around these, however its prompt is written:
| Rule | What CallNode does | What the API returns |
|---|---|---|
| STOP | "When a recipient texts STOP (or UNSUBSCRIBE, CANCEL, END, QUIT) to your number, they are suppressed … START re-enables them. This cannot be overridden." | 403 recipient_opted_out |
| Quiet hours | Sends are blocked "outside 8 AM–9 PM at the recipient's local time (NPA-NXX → IANA timezone, DST-aware)". tcpaOverride: true is "for permissible transactional messages" only, and it's audited. | 403 tcpa_window_violation |
| 10DLC (local numbers) | "The from number must be associated with an approved 10DLC campaign … This cannot be overridden." | 403 campaign_not_registered |
| Toll-free verification (toll-free numbers) | A toll-free sender that isn't verified is refused. | tollfree_not_verified |
- Registration runs in the background. "Voice is routable on activation; carrier messaging registration (10DLC for local, Toll-Free Verification for toll-free) completes in the background. Poll the number's messaging.ready flag."
- Your own lines are exempt from quiet hours. Up to 10 numbers you certify in the Phone Book "are not subject to the window; STOP and 10DLC still apply to them."
- This isn't legal advice. CallNode enforces these checks; it doesn't make your messages compliant for you. For what each rule means, read SMS compliance explained: 10DLC, quiet hours and STOP.
Build and test without sending real texts
"Send with a cn_test_ key to build without sending real messages or being charged. Every compliance check still runs, and you receive a simulated, signed delivery webhook." Test messages to the sentinel numbers +15005550001 and +15005550002 fail with error codes 4720 and 4406, so you can test your failure handling too.
Plug it into the agent you already have
- Your own code: any service that accepts a JSON POST and returns JSON.
- n8n: a Webhook node in, Respond to Webhook out. See the n8n voice agent tutorial.
- Flowise: the same Agentflow answers calls and texts on one number. See the Flowise Agentflow tutorial.
- Claude, ChatGPT, Cursor or VS Code: the CallNode MCP server sends texts "under the same rules as this API". See the MCP tutorial.
What it costs
Quoted from https://callnode.io/pricing (API plans), checked 2026-11-28:
| Plan | Messaging (quoted) |
|---|---|
| Pay-As-You-Go Local | "SMS $0.01, MMS $0.04 per message" |
| Pay-As-You-Go Toll-Free | "SMS $0.01, MMS $0.05 per message" |
| Pro Bundle ("$40/month") | "100 SMS and 100 MMS included, then $0.008 and $0.025 per message" |
- The number: "Local numbers $2.99 a month, toll-free $4.99 a month".
- Texting works on US and Canada numbers. The pricing page describes the API plans as "US and Canada numbers with calls and texts delivered to your webhook, WebSocket or agent".
- "No setup fees and no contracts." You can create an account without a credit card. Usage is prepaid, so you add funds when you're ready to buy a number.
What it doesn't do
- It won't send to someone who texted STOP, and you can't override that.
- It won't send from an unregistered number. A local number needs an approved 10DLC campaign; a toll-free number needs toll-free verification.
- It won't text the public outside 8 AM–9 PM in their local time, unless the message is a permissible transactional one and you set
tcpaOverride. - It doesn't write your agent's replies. CallNode carries the texts; your agent decides what to say.
FAQ
Can my AI agent text and take calls on the same number?
Yes. A number has a voice webhook and a messaging webhook, and you can set both when you buy it.
How does my agent receive texts?
Set the number's messaging webhook. Each inbound SMS or MMS is posted to it as JSON, and your agent can reply in the same thread.
Do I need an SDK?
No. Texts arrive as JSON over HTTPS, and you send with a signed POST /api/v1/messages. The same API key works for calls and messages.
Does CallNode handle STOP and quiet hours?
Yes. STOP suppression, the 8 AM–9 PM quiet-hours window and 10DLC registration are enforced server-side on every send. That isn't legal advice, and you're still the sender of record.
Can it send pictures?
Yes. Add media and the message becomes an MMS: JPG, PNG, GIF, WebP, MP4 or PDF, up to 5 MB each.
How much does an SMS API cost on CallNode?
On pay as you go, $0.01 per SMS. MMS is $0.04 on a local number and $0.05 on a toll-free number. The Pro Bundle includes 100 SMS and 100 MMS a month.