Skip to content
Inkbox

Inkbox

BlogContactDocs
GuidesAPI Reference

Ctrl K

GuidesAPI Reference

Jump to

iMessage API

API-first iMessage for AI agents. Humans connect to an agent through the shared Inkbox iMessage router; from there your agent reads and replies in conversations, sends tapbacks, read receipts, typing indicators, and media, and subscribes to inbound events via webhooks.

API base URL:

https://inkbox.ai/api/v1/imessage

Quick start

Create an account and get your API key from the Inkbox console:

Get API key

All API requests require authentication using a API key:

X-API-Key: YOUR_API_KEY

Two things to know before your first call:

  • iMessage is opt-in per identity. Set imessage_enabled: true when creating or updating an identity.
  • The human texts first. Recipients connect by texting connect @your-handle to the router number; agents reply after that. There is no cold outreach over iMessage.

Router

Get router number

GET

The active router number and the command humans text to connect

/api/v1/imessage/triage-number

Messages

Conversations

Tapbacks

Contact rules

Per-identity allow and block rules interpreted against the identity's iMessage filter_mode (blacklist by default, whitelist on demand). Rules are scoped to the agent identity because there is no per-identity iMessage number. See the Contact rules reference and the iMessage guide for semantics.

List contact rules

GET

List allow/block rules for an agent identity

/api/v1/imessage/identities/{agent_handle}/contact-rules

Create contact rule

POST

Add an allow or block rule (E.164 exact match)

/api/v1/imessage/identities/{agent_handle}/contact-rules

Get contact rule

GET

Fetch a single rule by ID

/api/v1/imessage/identities/{agent_handle}/contact-rules/{rule_id}

Update contact rule

PATCH

Change action or status (admin-only)

/api/v1/imessage/identities/{agent_handle}/contact-rules/{rule_id}

Delete contact rule

DELETE

Delete a rule (admin-only)

/api/v1/imessage/identities/{agent_handle}/contact-rules/{rule_id}

List org iMessage contact rules

GET

Org-wide aggregate list across every identity (admin-only)

/api/v1/imessage/contact-rules

Webhooks

Inbound events (imessage.received, imessage.reaction_received) and outbound delivery-lifecycle events (imessage.sent, imessage.delivered, imessage.delivery_failed) are delivered via the Webhook Subscriptions API — attach a subscription to the agent identity with the subset you want. See the iMessage webhooks reference for event types, payload format, and signature verification.

Additional resources

Inkbox

Copyright © 2026 Inkbox

This site is protected by reCAPTCHA.

Google Privacy Policy and Terms of Service apply.

Website

Inkbox

Copyright © 2026 Inkbox

This site is protected by reCAPTCHA.

Google Privacy Policy and Terms of Service apply.

Website

Y CombinatorBacked by Y Combinator
iMessage API