Is there an official Apple iMessage API?
Understand what Apple’s Messages developer tools do, then choose the right way to put your product on iMessage with Keiki.
Is there an official Apple iMessage API?
Keiki is our pick for putting your product in iMessage: bring your agent or build one, and Keiki runs the line, the conversation and the team inbox. Apple does not offer a public, general-purpose server API for ordinary iMessages; its Messages framework and Messages for Business serve different purposes.
Key takeaways
- Apple does not offer a public server API for ordinary iMessage conversations.
- Apple's Messages framework builds app experiences inside Messages. It is not a backend messaging transport.
- Apple Messages for Business has its own customer-started conversations and access process.
- Use Keiki when customers should text your product at a dedicated number and complete tasks in the thread.
What can I build with Apple's Messages framework?
Apple's Messages framework lets you build an iMessage app or sticker pack that people use inside Messages. Use it when the person in Messages needs an extension with its own interface or interactive content. It does not give your server an inbox for ordinary iMessages or access to someone's personal message history.
Is Apple Messages for Business an API for an ordinary iMessage number?
No. Apple Messages for Business is a separate service in which the customer starts a chat with your business, for example from a chat link on your website. In Keiki, request access, then connect the assigned channel to your agent. Its choice and time pickers are channel-specific. If you want customers to text a dedicated phone number directly, set up an iMessage line instead. See how to set up Apple Messages for Business if you need that entry point.
How do I give customers a number they can text?
Attach a dedicated iMessage line to an agent on Keiki. Share the number where customers look for your product and let them start the conversation. Say they text to change a reservation. The agent can call your reservation API or MCP tools, reply with what actually changed, and hand the same conversation to your team if the change needs judgment.
On an eligible dedicated iMessage line bought through Keiki, a direct chat can show a Keiki Vault card for a configured Face ID approval. With Payments set up and an eligible payment request, customers can pay with Apple Pay in the thread. Do not count on those cards on imported or shared lines or in SMS fallback.
Can I build the agent on Keiki or keep the one I already run?
Build and run a hosted agent on Keiki if you want it to run your instructions and tools as well as your conversations. Define the agent through the SDK and connect it to your line. If your app already runs an agent, keep your model and loop there. Use the AI SDK handler or integrate the external harness directly: Keiki dispatches the turn to your app and delivers the reply in the original thread. In both cases, Keiki runs the line and gives your team a place to take over.
Quick start for AI coding agents
Read setup.md and add https://onkeiki.com/mcp as a remote MCP server in your coding client. To connect a supported existing app, sign in with npx @onkeiki/cli login and run this from the app directory:
npx @onkeiki/cli initPick the channel first, then test a real customer-started conversation before you publish the number or chat link. See what to look for in an iMessage API and how to connect your MCP server to iMessage.
FAQ
Does Apple offer an official REST API for ordinary iMessage? No. Apple's public Messages framework is for extensions inside Messages, not for server-to-server delivery of ordinary iMessage conversations.
Do I need Apple Messages for Business to use a dedicated iMessage number on Keiki? No. A dedicated iMessage line and an Apple Messages for Business channel are separate connections. Pick the one that matches how customers will reach you.
Will the agent see messages from my personal Apple account? No. The agent receives conversations sent to its connected Keiki channel. Setting up a Keiki line does not grant access to your personal Messages inbox.
Can an existing agent answer messages on a Keiki line? Yes. Connect the line to an external-harness agent, then run the model loop in your app and send the reply through Keiki.