> ## Documentation Index
> Fetch the complete documentation index at: https://omni-docs.sendblue.com/llms.txt
> Use this file to discover all available pages before exploring further.

# P2P iMessage

> Request Sendblue-managed US iMessage lines, send messages and attachments, and receive signed webhooks.

Send and receive messages over Sendblue-managed US iMessage lines through the same messaging and webhook surface you use for the rest of the Omni API. Instead of registering a 10DLC campaign, you submit a number order for iMessage lines; once Sendblue sets them up, they appear directly on your account ready to send from `POST /messages`.

## Guides

> [card] [Request iMessage numbers](https://omni-docs.sendblue.com/quickstart/imessage-numbers.md)
>
> Check pricing, submit an order with `POST /numbers/orders`, and track fulfillment.

> [card] [Upload and send media](https://omni-docs.sendblue.com/quickstart/media.md)
>
> Upload a file with `POST /media` and attach it to an outbound iMessage.

> [card] [Receive messages](https://omni-docs.sendblue.com/quickstart/receive-sms.md)
>
> Receive signed `message.received` webhook events and poll inbound messages.

> [card] [Authentication](https://omni-docs.sendblue.com/authentication.md)
>
> Use API key pairs, existing Sendblue API keys, or scoped keys.

## How P2P iMessage works on Omni

**1. Check your iMessage number price**

Call `GET /prices` and check for `number.imessage.request`. If it is absent, contact Sendblue to have a rate assigned to your account.

**2. Request iMessage lines**

Submit `POST /numbers/orders` with `"channel": "imessage"` and your desired `quantity` (`1`–`100`), plus optional `area_code` and `note` preferences. Recording and fulfilling an order do not debit your balance.

**3. Send and receive**

Once the order status reaches `fulfilled`, your lines appear in `GET /numbers` with `source: "requested"` and `"imessage"` in `channels`. Pass an assigned number as `from` in `POST /messages` and subscribe a [webhook](https://omni-docs.sendblue.com/webhooks.md) to `message.sent`, `message.delivered`, `message.failed`, and `message.received`.

## At a glance

| Capability | Details |
| - | - |
| **Provisioning** | Requested via `POST /numbers/orders` (`channel: "imessage"`, quantity `1`–`100`). Cancel pending orders with `DELETE /numbers/orders/{order_id}`. |
| **Line management** | Managed by Sendblue — fulfilled iMessage lines cannot be configured, assigned to a 10DLC campaign, or released through the API. |
| **Sending** | Pass an assigned iMessage number as `from` in `POST /messages` with an `Idempotency-Key`. |
| **Attachments** | Attach **1** uploaded file per message using `media_ids` (JPEG, PNG, GIF, MP4, MP3, or PDF up to 4 MiB). |
| **Delivery evidence** | `Message` records `delivery_evidence` (`verified`, `reported`, `reported_unconfirmed`, or `unknown`), `billing_status` (`held`, `charged`, `uncharged`, or `review`), and `channel` (`imessage` or `sms`) on lines that can fall back to device SMS. |
| **Permissions** | `number_orders:create`, `number_orders:read`, `number_orders:cancel`, `messages:send`, and `messages:read`. |


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.