v4.0 vs v4.1
What changed between the v4.0 and v4.1 APIs, and which release to call.
v4.0 and v4.1 are both the current Blooio API. They share authentication, ids, pagination, errors, and the same resources — chats, contacts, channels, webhooks, and the rest. What changes is the base URL, and how a send describes anything richer than text and attachments.
The version menu at the top of the sidebar switches the API reference between the two releases. v2 is a separate API; see Migrating from v2 to v4.
Both releases are live. A v4.0 integration keeps working. Use v4.1 when one payload should work across channels.
Base URL
| Release | Base URL | OpenAPI |
|---|---|---|
| v4.0 | https://api.blooio.com/v4 |
/v4/openapi.json |
| v4.1 | https://api.blooio.com/v4.1 |
/v4.1/openapi.json |
Authentication is the same bearer token (Authorization: Bearer bl_live_...) on both. You can call both from the same API key. They are separate base URLs, not a flag on one request.
What stayed the same
- Plain text and attachments.
POST /messageswithtoandtext, plus optionalattachments, is the same shape. Only the base URL changes. - Routing. Omit
fromto use the API key's priority, or pass onefromstring — a phone number, an alias, or a channel id. - Conventions. Prefixed ids, cursor pagination, and the error envelope
{ "error": { "code", "message", "details" } }are unchanged. - The rest of the API. Reading chats, contacts, channels, and webhooks uses the same request and response shapes under the other base URL.
v4.0
curl -X POST https://api.blooio.com/v4/messages \
-H "Authorization: Bearer bl_live_..." \
-H "Content-Type: application/json" \
-d '{
"to": "+15551234567",
"text": "Hello!"
}'Try itv4.1
curl -X POST https://api.blooio.com/v4.1/messages \
-H "Authorization: Bearer bl_live_..." \
-H "Content-Type: application/json" \
-d '{
"to": "+15551234567",
"text": "Hello!"
}'Rich messages
v4.0 takes the channel's own fields. A menu is an interactive object, a poll is poll, an iMessage effect is effect, and a WhatsApp Business template is template.
v4.1 replaces those with one template object. Blooio adapts it to the channel that delivers the message — a native Apple Messages card, RCS chips, a WhatsApp button, or a numbered list on iMessage and SMS. Approved WhatsApp Business templates moved to whatsapp_template, so the name template is free for that channel-agnostic object.
v4.0 — a channel-specific quick reply:
curl -X POST https://api.blooio.com/v4/messages \
-H "Authorization: Bearer bl_live_..." \
-H "Content-Type: application/json" \
-d '{
"to": "+15551234567",
"interactive": {
"kind": "quick_reply",
"summary_text": "Pick one",
"items": [
{ "id": "yes", "title": "Yes" },
{ "id": "no", "title": "No" }
]
}
}'Try itv4.1 — the same prompt as a template. text is an optional lead-in:
curl -X POST https://api.blooio.com/v4.1/messages \
-H "Authorization: Bearer bl_live_..." \
-H "Content-Type: application/json" \
-d '{
"to": "+15551234567",
"text": "Pick one",
"template": {
"kind": "choices",
"title": "Options",
"options": [{ "label": "Yes" }, { "label": "No" }]
}
}'v4.1 rejects a v4.0 channel-specific field with 422 and error.code of channel_specific_field_unsupported. The error names the fields. Call /v4 when you need to send those payloads as-is.
| You want to send | v4.0 | v4.1 |
|---|---|---|
| Text or attachments | text, attachments |
same |
| A menu, time picker, form, payment, link, sign-in, or location request | interactive |
template |
| WhatsApp Business HSM | template |
whatsapp_template |
Poll, sticker, invitation, rich link, app clip, iMessage app, multipart parts, effect, badge, markdown format, link preview, contact share, RCS rich card, or suggestion chips |
that field | not accepted — stay on v4.0 |
The fields v4.1 rejects on a send are interactive, rich_card, suggestions, rich_link, app_clip, imessage_app, poll, sticker, invitation, parts, badge, effect, format, link_preview, and share_contact.
Template kinds
A v4.1 template is one of these kind values. Lead-in text can sit beside a template. template cannot be combined with attachments or with whatsapp_template.
kind |
Asks the recipient to |
|---|---|
choices |
Pick one or more labeled options |
time_slots |
Pick a time |
form |
Fill in fields |
payment_request |
Pay an amount (apple_pay or link) |
link |
Open a URL |
confirm |
Confirm or cancel |
authenticate |
Sign in |
location_request |
Share a location |
A WhatsApp Business HSM uses whatsapp_template and cannot be combined with text or attachments:
curl -X POST https://api.blooio.com/v4.1/messages \
-H "Authorization: Bearer bl_live_..." \
-H "Content-Type: application/json" \
-d '{
"to": "+15551234567",
"whatsapp_template": { "name": "order_update", "language": "en_US" }
}'Fallback and carousels
On v4.1, fallback applies only to a template. auto (the default) sends the closest thing the device can show when it lacks a native capability. reject fails the whole send with 422 before anything goes out.
carousel applies only alongside attachments. false sends each attachment as its own message where the channel would otherwise group them. true keeps that channel's default.
What a v4.1 template send returns
The message object can include three extra fields:
rendered_as— how the channel showed the template, such asamb:quick_reply,whatsapp_business:button, orblooio:numbered_text.messages— present when the template went out as more than one message, in send order. The top-level fields describe the last message. Sending stops at the first failure, so an earlier entry that is notfailedmeans the contact already received part of the send.reply_options— present forchoices,time_slots, andconfirm. It maps a reply back to the option the customer picked. On iMessage and SMS the options go out as a numbered list, and a reply of2is the entry withindex2.
Which release to call
Use v4.1 for a new integration, and whenever the same menu, form, payment, or link should work on more than one channel. The reference is Send a message.
Stay on v4.0 when you already send channel-specific payloads, or you need a field from the table above that v4.1 does not accept. The reference is Send a message.