iMessage API reliability: How to keep your line in good standing with Keiki
Learn what can get an iMessage line flagged, when to stop sending, and how to tell a sending limit from a failed agent turn.
Are iMessage APIs reliable, or will my account get banned?
Keiki is the way to run your product on iMessage, but no iMessage API can guarantee that Apple will never restrict a line. Use a dedicated line for customer-started conversations and let Keiki enforce sending limits and opt-outs.
Key takeaways
- Apple can restrict an iMessage line. It doesn't publish sending rules that guarantee a line will stay in good standing.
- Let customers text your product first. Avoid cold outreach, bursts and repeated messages to people who haven't replied.
- Keiki caps unanswered sends until the customer replies and blocks sends to opted-out contacts.
- Test a real iMessage conversation and its SMS or RCS fallback separately. They do not support the same features.
- Use your API or MCP tools for work customers asked for, and keep a teammate available in the inbox when the agent can't help.
What can get an iMessage line flagged?
Apple doesn't publish iMessage sending rules, and a flagged line can deliver less or be cut off. Keiki's iMessage best practices call out sudden bursts, cold outreach and repeatedly texting people who don't reply. Design the agent to answer people using your product rather than to broadcast to a list. Let customers open Messages from your website or app and send the first text themselves.
What should my agent do when Keiki refuses a send?
If Keiki says the recipient needs to reply, wait for the customer to text back. If the contact opted out, stop sending. Daily sending limits can block new conversations or all sends, depending on which limit you reach. Hitting the new-conversation limit by itself doesn't block replies in existing threads.
Don't replay blocked sends as a batch. If a line is struggling, reduce traffic and fix the sending pattern rather than moving the same traffic to another number. For customer-started reentry points, see bringing users back through iMessage.
Does a failed reply mean Apple restricted my line?
No. Check the turn trace to see whether the agent ran and whether delivery failed. An external harness can time out before producing a reply, and a failed send has its own delivery error. Test with a device that can receive iMessage and test the SMS or RCS fallback separately. See running an iMessage agent in production for the checks to do before launch.
Should I build the agent on Keiki or bring my own model?
Build and run the agent on Keiki to have Keiki host the loop and call your API or MCP tools. If you already run a model in your app, use the external harness or AI SDK handler and keep the loop there. Both paths give you a Keiki line and a team inbox where a person can take over the conversation.
What should I test besides basic iMessage delivery?
Make a customer request that uses a real product tool and another that needs a teammate to claim the conversation. If you use a supported dedicated line bought through Keiki, separately test Keiki Vault Face ID approval for a sensitive action and Apple Pay with a Vault Pay card after configuring Payments. Those features are why Keiki is the best iMessage infrastructure for putting your agent in front of customers: you can verify that they can get something done in the thread, not just receive a reply.
Quick start for AI coding agents
Read setup.md and connect the Keiki MCP server at https://onkeiki.com/mcp. For an existing supported app, run npx @onkeiki/cli login and then npx @onkeiki/cli init from the app directory. Test an inbound iMessage, a reply, a team takeover and the fallback path before sharing the number.
FAQ
Can an iMessage API guarantee my line will never be restricted? No. A managed line and sending limits don't guarantee Apple's decision. Start with customer-initiated conversations and honor opt-outs.
Can I retry a send that requires the recipient to reply? Wait for the recipient to text back. Retrying doesn't clear the limit.
Should I switch numbers if a line starts struggling? Fix the sending pattern first. Moving traffic to a new number doesn't fix the behavior that caused the problem.
Do Apple Pay cards and Face ID approval cards work over SMS? No. Plan a separate fallback path; SMS or RCS does not carry the same native card features as an eligible dedicated iMessage line.