First-party app
Sendblue

Sendblue

Send and manage iMessage, SMS, and RCS business messages, contacts, and webhooks through Sendblue.

stable Communication

About

Sendblue ships in the w6w first-party pack. It declares 47 actions, 3 health checks, and the host runs its code in a sandbox that never sees the credential.

App id
io.w6w.sendblue
Version
0.1.1
Author
w6w
Licence
MIT
Categories
Communication

Overview

Sendblue puts business messaging into a workflow — send and manage iMessage, SMS and RCS messages, reactions, read receipts, typing indicators, media and carousel cards, plus the contacts, webhooks, seats, phone lines, TOTP codes, location sharing and phone verification underneath a messaging program. Group messaging, contact bulk import and removal, and per-line health status are all covered alongside the core send and receive surface.

Sendblue’s phone verification works differently from the send-a-code-and-check-it pattern most vendors use: there is no endpoint to submit a code a user typed in. Instead the recipient texts the code back to a pool number, and Sendblue verifies it automatically the moment that reply arrives — a workflow watches verification status rather than submitting an answer. TOTP support goes further, letting a workflow read a rotating two-factor code as if it were the account holder, useful for automations that must clear a 2FA gate on the recipient’s behalf.

Provisioning a new phone line or requesting a subaccount is deliberately left out of this first pass, since both are agency-only operations that charge the card on file; direct raw-file uploads and open-ended event-streaming endpoints are also out of scope since they don’t fit a single request/response call.

Build with Sendblue

Three routes to the same 47 actions. The Workflow tab is generated from Sendblue's own manifest and carries its real ids, so it is copy-pasteable; the Code and CLI examples are the same call for any action on any app, so every app-specific value in them is a blank you fill in.

Send Carousel

carousel-send

Send 2–20 HTTPS images as a swipeable carousel. Requires a V2 (Mac Mini) line.

Bulk Create Contacts

contact-bulk-create

Create multiple contacts in one call.

Bulk Delete Contacts

contact-bulk-delete

Delete multiple contacts by phone number (the field is named `contact_ids` but takes phone numbers).

Get Contact Count

contact-count

Get the total number of contacts on this account.

Create Contact

contact-create

Create a contact, or update it in place when updateIfExists is set.

Delete Contact

contact-delete

Delete a contact by phone number.

Get Contact

contact-get

Retrieve a contact by phone number.

List Contacts

contact-list

List contacts. Returns a bare array (no `data` envelope).

Opt Out Contact

contact-opt-out

Opt a contact out (default) or back in (optedOut = false) from receiving messages.

Update Contact

contact-update

Update a contact. custom_variables merges into the existing map; it does not replace it.

Verify Contact

contact-verify

Send a verification message to a contact (required before messaging them on free shared-line plans).

Modify Group

group-modify

Add or remove an external participant from an existing iMessage group (beta).

Send Group Message

group-send-message

Send a message to an existing group or a fresh list of recipients (beta).

Get Line State

line-state-get

Snapshot of this account's line assignment and health.

Get Shared Location

location-get

Read one contact's currently-shared Find My location, if they already share with a V2 Sendblue line.

List Shared Locations

location-list

Read every Find My location currently shared with a V2 Sendblue line.

Request Location

location-request-create

Send a Find My location request to an iMessage recipient. Requires a V2 line.

Lookup Number

lookup-number

Check whether a phone number supports iMessage or SMS.

Upload Media (from URL)

media-upload-from-url

Download media from a URL and re-host it on Sendblue's CDN.

Update App Card

message-app-card-update

Continue an existing App Card session with a new Apple message.

Delete Message

message-delete

Soft-delete a message from Sendblue's database. Does NOT unsend/recall it on the recipient's device.

Get Message

message-get

Retrieve a single message by its message_handle.

List Messages

message-list

List messages with filtering and pagination. Rate limited to 100 req/10s.

Send Message

message-send

Send an iMessage, SMS, MMS, or Sendblue App Card to a single recipient.

Get Message Status

message-status-get

Retrieve the current status of a message by its handle (avoids duplicate sends).

Send Reaction

reaction-send

Add (or remove, with a `-` prefix) an iMessage tapback on a received message.

Send Read Receipt

read-receipt-send

Mark a conversation as read (iMessage/RCS only). Requires read receipts to be enabled for the account.

Get Seat Count

seat-count

Get the number of seats for this company.

Get Seat

seat-get

Retrieve one seat by its UUID or Firebase Auth subject.

List Seats

seat-list

List seats (users/reps) for this company.

Get Current TOTP Code

totp-get-code

Generate the current TOTP code for a stored secret, and how long until it rotates.

Register TOTP Secret

totp-secret-create

Store a TOTP secret for this account, from either an otpauth:// URI or a base32 secret.

Delete TOTP Secret

totp-secret-delete

Permanently delete a stored TOTP secret.

List TOTP Secrets

totp-secret-list

List stored TOTP secrets. The base32 secret value itself is never included here.

Send Typing Indicator

typing-indicator-send

Show the animated typing indicator to a recipient. iMessage 1:1 only.

Create Pending Verified Contact

verified-contact-create

Create (or return the existing) verified-contact route for the account's shared iMessage line. Becomes verified once the contact texts that line.

Get Verified Contact

verified-contact-get

Retrieve one verified-contact route by phone number.

List Verified Contacts

verified-contact-list

List every verified-contact route attached to the account's shared line.

Create Verify Service

verify-service-create

Create a Sendblue Verify service — configuration shared by the Verifications created against it.

List Verify Services

verify-service-list

List Verify services on this account.

Create Verification

verify-verification-create

Start an inverted-OTP verification: the recipient must TEXT the returned code back to Sendblue — there is no separate "check code" call.

Get Verification Status

verify-verification-get

Poll one Verification's authoritative status.

List Verifications

verify-verification-list

Account-scoped verification state, for recovering terminal Verify events.

Add Webhook

webhook-create

Add a webhook URL. Appended to any existing webhooks of the same type.

Delete Webhooks

webhook-delete

Remove specific webhook URLs from the account.

List Webhooks

webhook-list

Get every webhook configured for this account, across all event types.

Replace Webhooks

webhook-update

Replace ALL webhooks for the account. This overwrites the existing configuration — read webhook-list first if you only want to add or remove one entry.

A workflow step names the app and the action, and the editor fills in the connection when you pick one. This is the Step shape from the workflow spec, carrying Sendblue's real ids.

{
  "manifestVersion": "2",
  "name": "sendblue-example",
  "steps": [
    {
      "id": "carousel-send",
      "uses": {
        "app": "io.w6w.sendblue",
        "action": "carousel-send",
        "connection": "conn_YOUR_CONNECTION_ID"
      },
      "with": {
        "fromNumber": "<fromNumber>",
        "number": "<number>",
        "mediaUrls": "<mediaUrls>"
      }
    }
  ]
}

Here are some of the things you can do

  • Send Carousel

    perform
    carousel-send
  • Bulk Create Contacts

    perform
    contact-bulk-create
  • Get Contact Count

    read
    contact-count
  • Create Contact

    perform
    contact-create
  • Get Contact

    read
    contact-get

+42 more actions available

Every app-specific value here is a blank you have to fill in. An app action is reached through the connection that authenticates it, so the address is a connection id, not the app id — and connections belong to your account, so a public page cannot know yours. Create one for Sendblue, then fill in the three blanks: conn_YOUR_CONNECTION_ID, the action key, and the parameters that action declares. The call itself is real — the shape is transcribed from the studio's own snippet builder, which prints the same kind of blanks — but nothing in it is specific to Sendblue. The Workflow tab is where this app's real ids are.

Install
npm install @w6w/sdk
yarn add @w6w/sdk
pnpm add @w6w/sdk
deno add npm:@w6w/sdk
Code
import { W6wClient, isActionRun } from "@w6w/sdk";

// Reads W6W_BASE_URL and W6W_TOKEN from the environment when omitted.
const client = new W6wClient();

const envelope = await client.run({
  urn: "conn_YOUR_CONNECTION_ID",
  action: "carousel-send",
  payload: {
    fromNumber: "<value>",
    number: "<value>",
    mediaUrls: "<value>",
    // sendStyle: "<value>",
    // seatId: "<value>",
    // statusCallback: "<value>",
  },
});

if (isActionRun(envelope)) console.log(envelope.value);
Install the CLI
npm install -g @w6w/cli
CLI
w6w run conn_YOUR_CONNECTION_ID --action carousel-send --payload '{"fromNumber":"<value>","number":"<value>","mediaUrls":"<value>"}'

Give an AI agent Sendblue — without giving it Sendblue's credentials. One MCP endpoint exposes every app, function and workflow the caller is entitled to, as tools it can discover and run. Access is granted per team while we onboard.

One tool call
{
  "name": "w6w_invoke",
  "arguments": {
    "ref": "app:io.w6w.sendblue#carousel-send",
    "input": {
      "fromNumber": "<fromNumber>",
      "number": "<number>",
      "mediaUrls": "<mediaUrls>"
    }
  }
}

Every tool names its target with a single ref. The app: form above doesn't name a connection at all — the host resolves which of the caller's Sendblue connections to sign with, and refuses rather than guesses when the answer is ambiguous.

What the agent gets

Credentials it can't read

The token is attached host-side, at the moment of the call. It is never a tool argument, never in the model's context, and never in a transcript — so a prompt injection has nothing to exfiltrate.

A tool surface scoped to the caller

Tools are derived per end user from what that person has actually connected and is entitled to — not one shared bot identity carrying the union of everyone's access.

A durable workflow in one call

Multi-step work runs on the workflow engine and returns a run handle the agent can poll — retries, branching and state survive the conversation that started them.

Health-aware discovery

Sendblue's declared health checks are on the surface too, so an agent can tell "the vendor is down" from "your credential expired" before it burns a retry on either.

The MCP surface is part of the hosted platform. Sendblue itself is MIT, and the runtime that executes it is source-available (FSL).

Request MCP access

Health checks

Sendblue declares its own checks, so its health is a property of the app rather than something the host guesses at.

service

Sendblue platform status

quota

Rate-limit headroom

dependency

Assigned line health

Per-line ONLINE/OFFLINE/DEGRADED status for this account's Sendblue numbers, from GET /api/v2/lines/state.