Blooio
Community Blooio adapter for Chat SDK. Send and receive iMessage, RCS, and SMS through Blooio's hosted gateway, with native tapback reactions, typing indicators, and capability checks.
Install
pnpm add chat-adapter-blooio @chat-adapter/state-memoryQuick start
The memory state adapter keeps subscriptions and locks in process memory, which suits local development. Use Redis or PostgreSQL in production.
Configuration
createBlooioAdapter() reads credentials from environment variables by default. You can also pass them explicitly:
Environment variables
| Variable | Required | Description |
|---|---|---|
BLOOIO_API_KEY | Yes | Blooio API key (Bearer token) |
BLOOIO_FROM_NUMBER | No | Default sending phone number (E.164) for multi-number accounts |
BLOOIO_WEBHOOK_SECRET | No | Webhook signing secret for HMAC-SHA256 verification |
BLOOIO_BASE_URL | No | Override the API base URL (default: https://backend.blooio.com/v2/api) |
Webhooks
Point your Blooio webhook URL at your server. The adapter handles these event types:
message.received: incoming iMessage, RCS, or SMS messages, routed to your botmessage.sent,message.delivered,message.failed,message.read: delivery lifecyclemessage.reaction: tapback reactions on messages
Signature verification
Blooio signs webhooks with HMAC-SHA256. The adapter verifies the X-Blooio-Signature header automatically when webhookSecret is configured. The signature format is:
The adapter rejects stale timestamps, with a default tolerance of 300 seconds. To change it, set timestampToleranceSec:
Sending messages
Outbound messages go through Chat SDK's standard postMessage interface. The adapter strips Markdown to plain text, because iMessage does not render it.
Protocol filtering
By default the adapter processes inbound messages from all protocols (iMessage, RCS, SMS). To restrict it to specific protocols, set allowedProtocols:
Attachments
Send media with sendMediaMessage:
Inbound attachment URLs from Blooio webhooks are parsed into Chat SDK attachment objects with auto-detected MIME types.
Reactions (tapbacks)
addReaction and removeReaction send iMessage tapbacks. The adapter maps common emoji names to Blooio's six tapback types:
| Tapback | Aliases |
|---|---|
love | heart |
like | thumbs_up, thumbsup, +1 |
dislike | thumbs_down, thumbsdown, -1 |
laugh | haha |
emphasize | exclamation, !! |
question | ? |
Typing indicators
startTyping() sends the animated "..." bubble to the recipient, in both 1:1 and group conversations.
Message history
fetchMessages() retrieves conversation history from the Blooio API with cursor-based pagination (backed by offset/limit).
Read receipts
Send read receipts for a conversation:
Contact capabilities
Check whether a contact supports iMessage or SMS:
Direct API access
Reach any Blooio v2 endpoint that isn't covered by the adapter interface:
Thread IDs
Thread IDs encode the Blooio device number and chat target so conversations are sticky to a specific phone line:
Use encodeThreadId / decodeThreadId to work with them programmatically.
Limitations
- iMessage does not support editing sent messages via API, so
editMessagethrows. - iMessage messages cannot be unsent via API, so
deleteMessageis a no-op. - Inbound attachment URLs from webhooks may expire. Persist them if you need them long-term.
Feature support
Messaging
| Feature | Supported |
|---|---|
| Post message | |
| Message replies | |
| Edit message | |
| Delete message | |
| File uploads | |
| Streaming | |
| Scheduled messages |
Rich content
| Feature | Supported |
|---|---|
| Card format | |
| Buttons | |
| Link buttons | |
| Select menus | |
| Tables | |
| Charts | |
| Fields | |
| Images in cards | |
| Modals |
Conversations
| Feature | Supported |
|---|---|
| Slash commands | |
| Mentions | |
| Add reactions | Tapbacks |
| Remove reactions | Tapbacks |
| Typing indicator | |
| Mark as read | |
| Message edit events | |
| Message delete events | |
| DMs | |
| Ephemeral messages | |
| User lookup | checkCapabilities |
| Parent subject | |
| Native client | |
| Custom API endpoint | baseUrl |
Message history
| Feature | Supported |
|---|---|
| Fetch messages | |
| Fetch single message | |
| Fetch thread info | |
| Fetch channel messages | |
| List threads | |
| Fetch channel info | |
| Post channel message |