# Mapier Convo · Messaging for AI agents, iMessage first

**Convo gives your agent real iMessage and phone-number lines.** Send, reply, react and run group chats through one API. Your agent sends commands and reads events.

[Book a demo](https://cal.com/mapier-homin/30min) · [Read the docs](https://docs.mapier.ai/convo) · [Index for agents](https://mapier.ai/convo/llms.txt)

Channels on the one API: iMessage, WhatsApp, Discord and Slack.

## What your agent can do on iMessage

Run your support, scheduling, notification, sales and coordination agents in the thread your customers already have open. One endpoint and 23 published command types, 16 of them on iMessage today, each a POST that settles with evidence on the stream.

### Text and replies (`message.send`)

- **Text, to a person or into a thread**: Send to a new address or into a one-to-one conversation your line already has open.
- **Threaded replies**: Quote an earlier message, so the reply lands on the line it answers.

A thread on a live line (Larkspur Support):

- **Recipient:** hi, did order 2481 ship?
- **Larkspur Support:** It did — this morning, arriving Thursday. I'll text you here the moment it's out for delivery.
- **Recipient:** perfect, thanks 🙏 (Larkspur Support reacted: love)

### Group chats (`group.create`)

- **Group chats**: Create a group with its opening message, rename it, add participants.

A group thread (Thursday install):

- **Larkspur:** Created this group for Thursday's installation. Marco is the installer; Priya coordinates from the office.
- **Recipient:** on site by 9, need the gate code
- **Larkspur:** Gate code is 4471. Bay 3 is reserved for the van.
- **Priya:** confirmed, see you both thursday (Larkspur reacted: love)

### Tapbacks (`reaction.set`)

- **Tapbacks**: The six classic tapbacks, added or removed, on any message in a direct or group thread.

### Attachments (Photos, files and voice notes)

- **Outbound attachments and voice notes**: Send a photo, a file, or a voice note on the same line the text goes out on.
- **Inbound attachments**: Photos and files sent to your line arrive as ids on the event, fetched by id.

Also on iMessage: contact card, reachability check, typing indicators, polls, rich links and send effects.

- **Contact card**: Offer your business's name and photo, so the thread carries an identity.
- **Reachability check**: Ask whether an address can receive iMessage before you send, with a reason when not.
- **Typing indicators**: Show that a reply is on its way — the three dots, in the thread.
- **Polls**: Ask the thread a question and take the answer in the conversation.
- **Rich links**: A link goes out as a preview — the title, the image, and the page it opens.
- **Send effects**: Send with an effect — confetti, balloons, a slam — the way Messages does.

## What agents do on a line

- **Support**: A customer asks in the thread, and the agent answers there.
- **Scheduling**: The agent offers a time, reads the reply and confirms it.
- **Notification**: An order update or a reminder, on a line the customer can reply to.
- **Sales**: A buyer's question, answered in the thread where they asked it.
- **Coordination**: A group chat for a job: the agent creates it, names it and adds the people it needs.

## Reliability you can check

Six properties of the architecture, not promises on a slide.

### Sending

- **Retries never double-send**: The same Idempotency-Key is adopted, not sent twice.
- **Delivered means proved**: A status settles on transport evidence, never on a guess.

What you can check:

- 30: Error codes, one HTTP status each
- 64 KiB: Request body cap
- Messages to opted-out contacts refused

### Receiving

- **Nothing lost between reconnects**: The stream replays 90 days from your Last-Event-ID.
- **Signed webhooks**: HMAC-SHA256 over the timestamp and the body, two signatures during rotation.

What you can check:

- 13: Event types
- 6: Webhook delivery attempts
- 300 s: Signature clock tolerance

### Isolation and access

- **Test cannot reach production**: Environment is a column on every row, and nothing joins across it.
- **Isolation in the database**: Row-level security on every table. A query without its tenant returns nothing.

What you can check:

- Scoped, revocable keys
- Roles and per-project access
- Append-only audit log

## The fleet behind the line

iMessage lines run on Mac minis we rebuild as blade servers and rack in data centres. We run the hardware, so a line is ours to keep healthy.

- 450 Mac servers
- 3,300 iMessage lines
- 300K messages in one pilot month

## One API, channel by channel

One command vocabulary and one event stream for iMessage, WhatsApp, Discord and Slack.

### iMessage

Real Apple lines on a managed Mac fleet. Blue bubbles, tapbacks, group chats and contact cards, sent and received through one unified API.

- **What a line is**: A live iMessage line is a real Apple account on a Mac in our fleet, so it is provisioned by our team on request rather than by an instant API call.
- **What the recipient sees**: On iMessage, a blue-bubble message from a phone number in Messages, with tapbacks and groups behaving as they do between two iPhones — nothing to install and no permission prompt.
- **Your own number**: On iMessage, not today: lines are numbers Mapier provisions and operates on your behalf, so if you need a specific one, tell us before you build and we will say what is possible.

### WhatsApp

The WhatsApp Business Platform — templates, media and the customer-service window — behind the same API.

- **What a line is**: A WhatsApp line is a WhatsApp Business number, connected to Mapier through your own Meta app.
- **What the recipient sees**: On WhatsApp, a message from your number under your business's display name, which Meta reviews.
- **Your own number**: On WhatsApp, yes: connect a number you already have and keep it if you leave, or ask Mapier for a US number.

### Discord

Your own Discord bot, in direct messages and the channels its role can view.

- **What a line is**: A Discord line is your own Discord bot: it talks to people in direct messages and in the channels its role can view.
- **What works**: On Discord: text, images and files, polls, reactions, edit and unsend, typing and group conversations.

### Slack

A Slack app in your own workspace, in direct messages and the channels you invite it to.

- **What a line is**: A Slack line is a Slack app in your own workspace: it talks to people in direct messages and in the channels and group DMs you invite it to.
- **What works**: On Slack: text, images and files, reactions, edit and unsend, typing, group conversations and a check of an address before you send.

[Ask about a channel](mailto:hello@mapier.ai?subject=A%20channel%20on%20Mapier%20Convo)

[Next: a real phone number for your agents](https://mapier.ai/convo/numbers.md)

## One unified API. Nothing to install

Create a project and a test key, send a command, listen for events. Your code stays where it is: Mapier Convo is the lines, the transport and the proof, not a runtime.

01. **Create a project and a test key** (`MAPIER_BASE_URL=… MAPIER_API_KEY=<paste-your-key-here>`): Keys are scoped to one project and one environment. A test key reaches a sandbox with a simulated phone — sends and reactions settle there as they would on a live line — and can never reach a real number.
02. **Send a command** (`POST /v1/commands/message.send`): One endpoint, 23 published command types. Add an Idempotency-Key to a send and a retry is adopted: the original result comes back and nothing goes out twice.
03. **Listen** (`GET /v1/response_stream`): Inbound messages and command settlements arrive on a resumable event stream, or as signed webhooks with automatic retries. Request a live line from the console when you are ready.

[iMessage API for AI agents](https://mapier.ai/convo/imessage-api.md)

`curl`:

```bash
curl -sS -X POST "$MAPIER_BASE_URL/v1/commands/message.send" \
  -H "Authorization: Bearer $MAPIER_API_KEY" \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: order-2481-shipped" \
  -d '{
    "target": {
      "channel": "imessage",
      "recipient": "+15555550100"
    },
    "payload": {
      "text": "Order 2481 shipped. Reply here if anything is off."
    }
  }'
# 202 { "commandId": "…", "status": "queued",
#       "disposition": "queued" }
```

`send.ts`:

```ts
const base = process.env.MAPIER_BASE_URL;

const response = await fetch(`${base}/v1/commands/message.send`, {
  method: "POST",
  headers: {
    authorization: `Bearer ${process.env.MAPIER_API_KEY}`,
    "content-type": "application/json",
    // Same key twice: the second send is adopted, not resent.
    "idempotency-key": "order-2481-shipped",
  },
  body: JSON.stringify({
    target: { channel: "imessage", recipient: "+15555550100" },
    payload: {
      text: "Order 2481 shipped. Reply here if anything is off.",
    },
  }),
});

// 202 { commandId, status: "queued",
//       disposition: "queued" | "adopted" }
const { commandId } = await response.json();
```

`stream.ts`:

```ts
const base = process.env.MAPIER_BASE_URL;

const response = await fetch(`${base}/v1/response_stream`, {
  headers: {
    authorization: `Bearer ${process.env.MAPIER_API_KEY}`,
    accept: "text/event-stream",
    // Resume where you left off. Frames replay for 90 days.
    "last-event-id": lastEventId,
  },
});

for await (const frame of sseFrames(response.body)) {
  if (frame.event === "message") {
    // { conversationId, from, text, externalId,
    //   replyToExternalId, occurredAt, attachmentIds }
    const inbound = JSON.parse(frame.data);
    await send({
      target: { conversationId: inbound.conversationId },
      payload: { text: await reply(inbound.text) },
    });
  }
  if (frame.event === "command") {
    // { commandId, logicalActionId, status,
    //   errorCode, conversationId }
    // status: succeeded | failed | ambiguous |
    //         no_effect | cancelled | expired
  }
}
```

`webhook.ts`:

```ts
import { createHmac, timingSafeEqual } from "node:crypto";

export async function POST(request: Request): Promise<Response> {
  const body = await request.text();
  const timestamp = request.headers.get("mapier-timestamp") ?? "";
  const presented = request.headers.get("mapier-signature") ?? "";

  // HMAC-SHA256 over `${timestamp}.${body}`.
  // Two v1= entries arrive during secret rotation.
  const expected = Buffer.from(
    "v1=" +
      createHmac("sha256", process.env.MAPIER_WEBHOOK_SECRET!)
        .update(`${timestamp}.${body}`)
        .digest("hex")
  );
  // Compare bytes of equal length: timingSafeEqual throws on a
  // length mismatch, and a string length is not a byte length.
  const valid = presented.split(",").some((entry) => {
    const bytes = Buffer.from(entry.trim());
    return (
      bytes.length === expected.length &&
      timingSafeEqual(bytes, expected)
    );
  });
  const age = Math.abs(Date.now() / 1000 - Number(timestamp));
  if (!valid || age > 300) {
    return new Response(null, { status: 401 });
  }

  // { id, type, environment, occurredAt,
  //   deliveryId, attempt, data }
  const event = JSON.parse(body);
  if (event.type === "message.received") {
    const { conversationId, from, text } = event.data;
    // …
  }
  return new Response(null, { status: 204 });
}
```

## A plan for every stage of your agent

Every plan includes the complete API, line health warnings, the event stream, signed webhooks and the sandbox. Ultra Scale adds dedicated lines and group chats; Enterprise adds the terms a business needs, sized with you on a demo.

### Pro

For builders and early-stage teams.

**$25** / month

- Community support, with your tickets answered first
- A managed iMessage line, shared with other projects
- Unlimited daily messages
- Line health warnings, before Apple stops delivering
- One-to-one messaging: text, attachments and voice notes
- Polls, rich links, send effects and chat backgrounds
- iMessage, Discord and Slack on one API

[Get started](https://convo.mapier.ai/app)

### Ultra Scale

For agents in production.

**$99** / month

- A shared support channel with our team in Slack or Discord
- Everything in Pro
- One dedicated iMessage line for your project
- Group chats: create, rename, add participants
- Contact card: your agent's name and photo in the thread
- iMessage, WhatsApp, Discord and Slack on one API
- Team roles and per-project access

On Twilio, $99 covers about 59 text round trips per user, or about 25 with rich media. On Ultra Scale, daily messages are unlimited.

_Twilio's US list prices for a long-code number, read November 22, 2026, before carrier fees, registration and the number itself. A round trip is one message out and one back._

[Get started](https://convo.mapier.ai/app)

### Enterprise

For businesses that run on their own terms.

**Custom**

- Priority support with a named contact
- Everything in Ultra Scale
- Dedicated lines, as many as you need
- Dedicated relay capacity and retention terms by agreement
- Security review, DPA and sub-processor list
- Invoicing, purchase orders and annual terms

[Book a demo](https://cal.com/mapier-homin/30min)

The plans compared, and their questions, as Markdown: https://mapier.ai/convo/pricing.md

## Also in Mapier Infra

**Your agent needs a computer, too?** Pod is the computer the agent works on; Convo is the line people text.

[Mapier Pod](https://mapier.ai/pod)

## Questions we are asked

### Is there an official iMessage API?

No. Apple does not publish one. Mapier operates real Macs signed into real Apple accounts and exposes them through a control plane, so your application sends genuine iMessages from a real number without running any Apple hardware.

### What if an address cannot receive iMessage?

Ask first: a reachability check returns whether the address can receive and, when it cannot, why.

### Is there an SDK?

None is required. The API is plain HTTPS with an OpenAPI description, so it works from any language. The Mac automation layer underneath, @mapier-labs/imsg-sdk, runs on our fleet; there is nothing for you to install.

### How long do you keep data?

Live messages, contacts and conversations behind your dashboard have no end date today, and we delete them when you ask. Message text and attachments in our delivery system are deleted about 90 days after they were sent or received. We are switching on deletion of events after 90 days, webhook delivery records after 90 days and test-environment messages after 30 days. The audit log is never purged. The privacy policy has the full account.

### Do you hold SOC 2 or HIPAA attestations?

We don't hold SOC 2 or HIPAA attestations today, and we won't imply we do. Both are in progress — if procurement needs one, talk to us before you build. Security review: a questionnaire and an architecture walkthrough, on Enterprise. DPA: a data processing agreement and the sub-processor list, on Enterprise.

## Give your agent a real line

Talk to the people who build it.

- [Book a demo](https://cal.com/mapier-homin/30min)
- [Read the docs](https://docs.mapier.ai/convo)
