What is an iMessage API? How businesses send iMessages from code
Kinds of iMessage API
- Managed
- The provider runs the number for you
- Your own Apple phone
- A service connects it
- Self-hosted
- Software on your own Mac
- Apple's official API for a server
- None
An iMessage API is a web API that lets your server send and receive iMessages from a real phone number. Apple publishes no API that lets a server send or receive iMessages, so providers such as ZeroSettle run a number on Apple's consumer iMessage service and put endpoints and webhooks on top. With ZeroSettle's iMessage API, that is a bearer token to send and a signed webhook that receives each reply about 1–2 seconds after it reaches your number.
Key takeaways
- What it is: HTTPS endpoints that send blue-bubble iMessages from a phone number, plus webhooks that deliver the replies to your server.
- Official option: Apple publishes no API for sending iMessages from a server. Apple Messages for Business is a different channel that identifies a business by a Business ID, not a phone number.
- Price (ZeroSettle): Pro is $49/month for one number, for people who text you first. Growth starts at $199/month. Enterprise has custom pricing through sales.
- Main limit (ZeroSettle): each number allows up to 10,000 messages a day, sent and received. Pro is built for people who text you first; Growth sends the first text to up to 500 opted-in new contacts a day as you add numbers.
- Android reach: SMS fallback can reach phones without iMessage with eligible one-to-one texts from the same ZeroSettle number.
What does an iMessage API do?
An iMessage API turns iMessage into calls your server can make: an HTTPS request sends a message from your number, and a webhook tells your server when someone answers. ZeroSettle is an iMessage API: a real phone number on real iMessage, running on Apple hardware we operate for you, that your code texts customers from and hears back on through a bearer token and signed webhooks (what ZeroSettle is, in full).
| Capability | ZeroSettle endpoint or webhook event |
|---|---|
| Send a text (1–4,000 characters) | POST /api/imessage/send with text |
| Send a photo (up to 5 MB, caption in the same bubble) | The same call with image_b64 |
| Send a voice message (up to 6 MB, native audio bubble) | The same call with audio_b64 |
| Receive replies, photos and voice messages | message.received |
| Tapbacks, both ways | POST /api/imessage/reactions; reaction.received |
| Typing indicator, both ways | POST /api/imessage/typing; opt-in typing.started / typing.stopped |
| A shared brand name and photo | PUT /api/imessage/profile |
An SMS API is a different thing. Twilio's Programmable Messaging sends SMS, MMS, RCS and WhatsApp, and on an Apple phone, Apple says, "RCS and MMS/SMS messages appear in green text bubbles." With ZeroSettle, customers on Apple phones see blue bubbles, your brand name and photo, typing indicators, and tapbacks when the message uses iMessage. SMS fallback can deliver eligible one-to-one plain text from the same ZeroSettle number when iMessage is unavailable. The photos, voice and tapbacks explainer covers each capability.
Does Apple offer an official iMessage API?
No. Apple publishes no API that lets a server send or receive iMessages. Apple's developer framework for Messages is for app extensions that "allow users to send text, stickers, media files, and interactive messages" themselves. Apple's official business channel, Apple Messages for Business, does not give a business a phone number. Apple's FAQ says: "Your business is identified by a Business ID assigned by Apple during registration — not a phone number," a business "requires the services of an Apple-approved Messaging Service Provider (MSP)," and customers "initiate a conversation by tapping a Messages button."
Every option that sends iMessage from an ordinary phone number depends on Apple's consumer iMessage service, ZeroSettle included. ZeroSettle is not affiliated with, endorsed by, or sponsored by Apple Inc. Apple Messages for Business vs an iMessage number compares the two routes.
Platform risk is therefore shared by every phone-number provider: Apple can filter a number that behaves like spam. ZeroSettle's docs: "Repeated messages to people who never answer are the fastest way to get a number flagged by Apple: when that happens every send fails, to everyone." ZeroSettle caps new contacts per number for that reason, and if Apple flags a number, ZeroSettle replaces it at no extra charge.
What kinds of iMessage API are there?
There are three kinds of iMessage API: managed APIs that run the number for you, services that connect your own Apple phone, and software you host on your own Mac. The official alternatives, Apple Messages for Business and SMS or RCS through a provider such as Twilio, do not send iMessage from an ordinary phone number.
| Kind | Examples | What you keep running | What to know |
|---|---|---|---|
| Managed iMessage API | ZeroSettle, Sendblue, Linq, LoopMessage, Blooio, Project Blue | Only your own server | They differ on price, who can message first, SMS fallback and webhook signing; the checklist below covers each. |
| Your own Apple phone | Texting Blue, myCRMSIM | Your Apple phone (myCRMSIM also needs a Mac or a hosted virtual machine) | Texting Blue: "install our lightweight extension on your Apple phone". myCRMSIM's specifications say both must stay "on and connected to the internet". |
| Self-hosted on a Mac | BlueBubbles, OpenClaw (imsg) | A Mac signed into Messages | BlueBubbles' FAQ explains keeping the Mac awake and says SMS is not supported "at this time". OpenClaw runs imsg on "the same signed-in macOS Messages host". |
| Official alternatives, not iMessage from a number | Apple Messages for Business; Twilio (SMS, MMS, RCS, WhatsApp) | An account with an Apple-approved provider, or with Twilio | Apple's channel uses a Business ID, and SMS, MMS and RCS show as green bubbles on an Apple phone. |
Best iMessage API providers in 2026 covers 14 options one by one, and the comparisons hub sets each against ZeroSettle.
How does a managed iMessage API work end to end?
A managed iMessage API sits between your server and Apple's iMessage network: your server calls the provider, the provider hands the message to Apple, and replies come back as webhooks. On ZeroSettle the path runs like this:
- Your server calls
POST https://portal.zerosettle.io/api/imessage/sendwith a bearer token, atohandle and a text, photo or voice message. - ZeroSettle passes it to your line: a real phone number on real iMessage, running on Apple hardware we operate for you.
- The line hands the message to Apple's iMessage network, and only then does the call return: "normally 2–5 seconds and at most about 75 for a text (about 105 for a voice message or photo, which ZeroSettle converts first)".
- The same message reaches your webhook as
message.sent, your record that it left the line. - The customer replies. ZeroSettle POSTs a signed
message.receivedevent to your webhook about 1–2 seconds after the line receives it. Inbound is pushed; nothing polls for it, so inbound never delays a send. - If your webhook does not answer
2xxwithin 10 seconds, ZeroSettle retries 3 more times, after 1, 5 and 20 seconds.
A line sends one message at a time: a send that queues for about 12 seconds returns 429 line_busy, to retry after 2 seconds. How to send an iMessage from code without a Mac covers the other errors.
What should you check before choosing an iMessage API?
Before you compare prices, check the number model, who can message first, and what happens when something fails. Ask every provider these questions; ZeroSettle's answers give you a baseline.
| Question | ZeroSettle's answer |
|---|---|
| A dedicated number, or a shared pool? | A dedicated US (+1) number for iMessage, with plain-text SMS fallback. Number porting is unavailable. |
| Who can message first, and how many a day? | Pro is built for people who text you first. Growth sends the first text to up to 500 opted-in new contacts a day as you add numbers, and Enterprise volume is custom. Every plan: at most 2 unanswered messages to a contact, and photos or voice messages only after the contact has replied. People who text first don't count; each number handles up to 10,000 messages a day, sent and received. |
| Are webhooks signed? | Yes: X-ZeroSettle-Signature: t=<unix>,v1=<hex>, an HMAC-SHA256 of "<t>." + raw body with your secret, 300-second tolerance. The secret is shown once and rotates when you re-register. |
| SMS fallback for Android? | Yes. With SMS fallback, eligible one-to-one texts can reach Android phones from the same ZeroSettle number. No MMS, RCS, groups or attachments over SMS. |
| Your brand name and photo? | Yes, shared automatically; the exact display depends on the recipient's device and contact settings. |
| Hosted AI agent, or bring your own? | Both: your webhook can call your own model, or the hosted AI agent answers with no server, at one credit per text it sends. |
| What if Apple flags the number? | ZeroSettle replaces flagged numbers at no extra charge, and your API token, webhook and code stay the same. Recipients see the replacement number. |
| Published uptime or SLA? | ZeroSettle reports "99.9% uptime" on its homepage; that is a published figure, not an SLA. |
| Price of a dedicated number? | Pro is $49/month, for people who text you first. To start conversations, Growth starts at $199/month. |
What does a send look like?
On ZeroSettle a send is one HTTPS POST with a bearer token and a JSON body ("Send a message" docs). Text only people who gave you their number for this purpose; ZeroSettle enforces STOP for you.
export BASE=https://portal.zerosettle.io # ZEROSETTLE_TOKEN holds your API token
curl -s -X POST -H "Authorization: Bearer $ZEROSETTLE_TOKEN" -H 'Content-Type: application/json' \
-d '{"to":"+18055559876","text":"Hi Sam, this is Spoke & Chain. Your bike is ready for pickup today until 6 PM. Reply if you want us to hold it."}' \
$BASE/api/imessage/send
A 200 response carries "status": "message_sent" and the message id. When Sam answers, your webhook receives compact JSON with sorted keys:
POST https://your-server.example.com/webhook
Content-Type: application/json
User-Agent: ZeroSettle-iMessage/1
X-ZeroSettle-Event: message.received
X-ZeroSettle-Signature: t=1757400012,v1=3f0c…(64 hex chars)
{"event":"message.received","message":{"direction":"in","guid":"5A6F…","handle":"+18055559876","id":44,"status":"received","text":"Can you hold it until tomorrow?","ts_ms":1757400012000}}
Verify the signature over the raw bytes before parsing, compare it in constant time, and reject a t more than 300 seconds from now; the webhook docs have ready-made Python and Node verifiers, and how to receive iMessages with a webhook covers retries and dedupe. The other events include message.sent, message.failed, message.read, reaction.received, reaction.sent / reaction.failed, and the opt-in typing.started / typing.stopped. Act only on message.received in an auto-responder, because your own sends echo back as message.sent.
- Today 10:02 AM
- Business: Hi Sam, this is Spoke & Chain. Your bike is ready for pickup today until 6 PM. Reply if you want us to hold it.
- Customer: Can you hold it until tomorrow?
- Business: Done. It is held for you until 6 PM tomorrow.
- Customer is typing
message.sent; the first is the curl call above. Sam's reply is message.received, the heart is reaction.received, and the typing bubble is typing.started if you opt in.What can't any iMessage API do?
No iMessage API can reach Android phones over iMessage, make a link tappable in a cold first text, or guarantee that a particular message is delivered. These limits come from iMessage, iOS and Apple's control of the network, so they apply to every provider.
- Check which fallback you need. ZeroSettle supports SMS fallback for eligible one-to-one plain text. If you need rich messages on Android, check providers' RCS and MMS support.
- Make a link tappable in a cold first text. Until the recipient replies or saves your number, Messages shows the link as plain text. ZeroSettle still sends the message and returns
warning.code: "link_not_tappable". See why links in a first iMessage aren't tappable. - Guarantee delivery. Every phone-number provider depends on Apple's service. ZeroSettle's terms say the services "depend on third-party platforms, including Apple's iMessage service, that may change without notice, and delivery of any particular message or feature is not guaranteed". On ZeroSettle,
message.sentmeans the line accepted the message; for one-to-one iMessages,GET /api/imessage/messages/deliverythen reports delivered, failed, delivered as junk or unconfirmed, and a signedmessage.readwebhook fires when the recipient shares a read receipt.
Where ZeroSettle stops short
Some gaps are ZeroSettle's own: no documents or other file attachments, no MMS or RCS, no contractual SLA, and no protected health information without a signed Business Associate Agreement.
What does ZeroSettle's iMessage API cost?
ZeroSettle Pro is $49/month for one number, Growth starts at $199/month, and Enterprise has custom pricing through sales. No plan charges per message. Each number allows up to 10,000 messages a day, sent and received; new contacts are capped per number per day; and credits pay for the hosted AI agent's texts (one each) and videos (one per 3 MB).
New contacts a day on Growth, as you add numbers
Messages a day per number, sent and received
Free credits on Pro, granted once
| Plan | Includes |
|---|---|
| Pro | $49/month for one number, built for people who text you first; 10,000 messages a day, sent and received; 500 free credits, granted once; self-serve. No setup fee; cancel anytime. |
| Growth | From $199/month; the first text to up to 500 opted-in new contacts a day as you add numbers; 1,000 free credits; book a 15-minute demo. |
| Enterprise | Custom pricing through sales, for high volume and compliance needs. |
Pro has a 30-day refund guarantee, no questions asked. Numbers can sell out, with a waitlist when they do. Start from Get started or through ZeroSettle's MCP connector. The plans on zerosettle.io and ZeroSettle pricing have the details, and the How it works hub lists every explainer.
Frequently asked questions
Is using an iMessage API allowed by Apple?
Apple does not approve phone-number iMessage providers; its approved-provider program covers Apple Messages for Business, a different channel. ZeroSettle is not affiliated with Apple, and its terms make "no representation that any use of the Services complies with any Apple agreement, policy, or guideline." ZeroSettle also suspends lines used for unsolicited messaging.
Do I need an SDK to use ZeroSettle's iMessage API?
No. ZeroSettle is plain HTTPS and JSON, so any language that can make an HTTPS request works. The docs' examples use curl, Python requests and httpx, Node fetch and Swift URLSession.
Can I check if someone has iMessage before texting?
Yes. GET /api/imessage/availability checks whether a phone number or email address is registered with iMessage, without sending anything. The check is optional. SMS fallback can deliver eligible one-to-one plain text from the same ZeroSettle number when iMessage is unavailable.
Can I send to an email address instead of a phone number?
Yes, if that address is registered with iMessage. ZeroSettle's to field takes a phone number or an iMessage email address, and a phone number without a country code is treated as a US number.
Sources
- Why are my Apple phone messages green?, Apple Support. Checked October 8, 2026.
- Messages, Apple Developer Documentation. Checked October 8, 2026.
- Apple Messages for Business FAQ, Apple, version 3.1. Last updated July 21, 2026; checked October 8, 2026.
- Programmable Messaging, Twilio Docs. Checked October 8, 2026.
- FAQ, Sendblue Docs. Checked October 8, 2026.
- iMessage API, Linq. Checked October 8, 2026.
- LoopMessage home page, LoopMessage. Checked October 8, 2026.
- Blooio home page, Blooio. Checked October 8, 2026.
- Project Blue developer resources, Project Blue. Checked October 8, 2026.
- Texting Blue home page, Texting Blue. Checked October 8, 2026.
- iMessage specifications, myCRMSIM Support. Checked October 8, 2026.
- FAQ, BlueBubbles. Checked October 8, 2026.
- iMessage channel, OpenClaw Docs. Checked October 8, 2026.
- ZeroSettle iMessage API docs: "Send a message", "Webhooks, step by step" and "Errors, limits, and compliance". Checked October 12, 2026.
- ZeroSettle iMessage API Terms of Service, sections 2 and 5. Last modified October 22, 2026.
