idariaidaria.ai
registry
channelimessage

iMessage

@omadia/channel-imessage

iMessage channel via the Sendblue REST API; routes iMessage chats to your agents. Users pick their agent with /agent <Name>; choices arrive as a numbered list answered by number.

latest
v0.5.0
license
MIT
versions
2
author
byte5 GmbH

install

In your idaria instance, open Admin → Registries and add this registry, then install iMessage from Admin → Plugins → Store.

registryhttps://hub.idaria.ai

setup guide

Connect iMessage (Sendblue)

This channel uses Sendblue (sendblue.com) — a hosted iMessage relay with a REST API. You need a Sendblue account with a dedicated line (phone number).

1. Create a Sendblue account & get API keys

Sign up at Sendblue and copy the API Key ID and API Secret Key from the dashboard (API settings). Note your Sendblue line number (E.164, e.g. +15122164639).

2. Fill in the fields below

  • API Key ID / API Secret Key: from the Sendblue dashboard.
  • Sender number: your Sendblue line in E.164 format.
  • Webhook secret: generate a long random token yourself (e.g. openssl rand -hex 32) and paste it here. It authenticates inbound webhooks — treat it like a password.

3. Register the webhook in the Sendblue dashboard

Set the receive webhook URL to:

https://<PUBLIC_BASE_URL>/api/imessage/webhook/<webhook_secret>

(replace <webhook_secret> with the exact token from step 2). If the Sendblue dashboard offers a separate webhook secret field, put the same token there too — the plugin also accepts the secret from a request header.

4. Grant the public path

Sendblue and the people tapping an answer link have no omadia login, so this plugin asks to serve /api/imessage without an operator session. The install dialog asks for that grant; if you skipped it, open the plugin page → Grants and grant /api/imessage. Until you do, every route under it — the webhook included — is not reachable at all and Sendblue's deliveries fail. The plugin authenticates each request itself (webhook secret, single-use answer-link token).

5. Answer links (optional, currently inactive)

Answer links are only sent where omadia's decoration registry declares the choice affordance for iMessage. It does not yet, so a choice arrives as a numbered list answered by number and the link is not sent. The setting below takes effect once omadia declares it.

iMessage cannot render choice buttons. When you set Public base URL (the public HTTPS origin of this Omadia instance, e.g. https://omadia.example.com), an answer with a choice card additionally carries a link: it opens a selection page in the browser and the pick flows back into the same iMessage conversation. Leave the field empty to disable — choices then degrade to the plain "reply with one of these" text as before. Answer link TTL controls how long such a link stays answerable (hours, default 24).

⚠️ Open answer links live in memory inside this plugin instance. A restart or redeploy voids every outstanding link before its TTL, and running more than one middleware replica breaks links (a token minted on one replica is unknown to the others) and can process an inbound message twice. Run this channel on a single replica.

6. Sandbox note

On Sendblue's free/sandbox tier you share a line: recipients must have texted the line first / be verified contacts before the API can message them. A paid dedicated line has no such restriction.

7. Privacy note (read before enabling)

All message content transits Sendblue's infrastructure — both directions, including media. Sendblue is a third-party relay, not an Apple-sanctioned API. Enable this channel deliberately (opt-in), inform the people texting the line that a relay provider processes the content, and use the allowlist to keep the audience explicit.

⚠️ Note: Sendblue is an unofficial Apple iMessage relay — Apple offers no public iMessage API, so continuity depends on the provider. This connector is provider-swappable: only the thin REST client is Sendblue-specific.

versions

v0.5.0
>=1.75.0 <2.0124.3 KB2026-11-27
.zip7a58cdaf4a79…
v0.4.1
>=1.75.0 <2.0122.9 KB2026-11-23
.zipd7e8b69a1216…

setup fields

Values the operator fills in at install-time.

api_key_idsecret
Sendblue API Key IDAPI Key ID from the Sendblue dashboard (sent as the sb-api-key-id header).
required
api_secret_keysecret
Sendblue API Secret KeyAPI Secret Key from the Sendblue dashboard (sent as the sb-api-secret-key header).
required
from_numberstring
Sender number (Sendblue line)Your Sendblue line in E.164 format, e.g. +15122164639. The bot sends from this number.
required
webhook_secretsecret
Webhook secretA long random token you generate yourself (e.g. openssl rand -hex 32). It must appear unchanged as the last path segment of the Sendblue webhook URL.
required
api_base_urlurl
API base URL (optional)Sendblue REST API base for send-message. Change it only if Sendblue specifies a different base.
optional
api_v2_base_urlurl
API v2 base URL (optional)Sendblue base for the typing indicator (note: .com, not .co).
optional
allowliststring
Allowed numbers (optional)Comma-separated phone numbers (E.164, e.g. +491701234567) that may chat with the bot. Empty = everyone is allowed.
optional
public_base_urlurl
Public base URL (optional)Public HTTPS origin of this omadia instance (e.g. https://omadia.example.com). Enables answer links for choice questions: the pick happens on a web page instead of a text reply. Empty = disabled.
optional
answer_link_ttl_hoursstring
Answer link TTL in hours (optional)How long an answer link stays answerable. Default: 24.
optional

permissions

public_paths

0: /api/imessage

memory

reads: [0] · writes: [0]

graph

reads: [0] · writes: [0]

network

outbound: [2]

filesystem

scratch: false