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.
https://hub.idaria.aisetup 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
setup fields
Values the operator fills in at install-time.
permissions
public_paths
0: /api/imessage
memory
reads: [0] · writes: [0]
graph
reads: [0] · writes: [0]
network
outbound: [2]
filesystem
scratch: false