Quickstart
Send your first iMessage in under 2 minutes | iMessage for Business
1. Install & set up
Section titled “1. Install & set up”The CLI is the fastest path to a working prototype. It creates a free account, assigns a secure shared Sendblue line, generates API keys, and saves credentials locally. No credit card is required.
npm install -g @sendblue/clisendblue setupFollow the prompts: enter your email, verify it, pick a company name, and add your first contact’s phone number. You’ll get an account, a Sendblue number, and API credentials.
To skip email entirely, verify the primary phone instead. The CLI will show a one-time phrase and wait for that phone to text the phrase to the shared Sendblue number:
sendblue setup --phone +15551234567 --company my-agentPhone-created accounts use the verified phone as the login identity and receive an internal [email protected] account email for future agent email support.
If an AI coding agent is helping you, the phone flow is usually the simplest path: ask for the user’s primary phone number and account name, then run the command above. The user stays in the loop only to send the verification text. Email setup is still available as a two-step flow:
# Check your inbox, then provide the 8-digit verification code.npx -y @sendblue/cli setup --email [email protected] --code 12345678 --company my-agent --contact +15551234567Before sending, make sure the recipient is comfortable using iMessage/SMS for the test. iMessage traffic uses Apple’s end-to-end encryption, and Sendblue is SOC 2 Type II certified.
2. Send a message
Section titled “2. Send a message”Once your contact is verified:
sendblue send +15551234567 'Hello from Sendblue!'Replace +15551234567 with your verified contact’s number.
3. Build something
Section titled “3. Build something”Option A: AI chatbot via iMessage
Section titled “Option A: AI chatbot via iMessage”TextMe turns Claude into an iMessage chatbot. Text your Sendblue number, Claude responds.
git clone https://github.com/njerschow/textme.gitcd textme/daemon && npm install && npm run buildConfigure it (use sendblue show-keys to get your API key and secret):
mkdir -p ~/.config/claude-imessagecat > ~/.config/claude-imessage/config.json << 'EOF'{ "sendblue": { "apiKey": "YOUR_API_KEY", "apiSecret": "YOUR_API_SECRET", "phoneNumber": "+1YOUR_SENDBLUE_NUMBER" }, "whitelist": ["+1YOUR_PHONE_NUMBER"]}EOFThen start it:
npm startOption B: OpenClaw plugin
Section titled “Option B: OpenClaw plugin”OpenClaw-Sendblue adds iMessage as a channel in OpenClaw, an open-source AI agent framework.
git clone https://github.com/njerschow/openclaw-sendblue ~/.openclaw/extensions/sendbluecd ~/.openclaw/extensions/sendbluenpm install && npm run buildThen add your credentials to ~/.openclaw/openclaw.json — see the plugin README for the full config.
Option C: Use the API directly
Section titled “Option C: Use the API directly”sendblue show-keysUse the keys as SB-API-KEY-ID and SB-API-SECRET-KEY headers with any HTTP client:
curl -X POST https://api.sendblue.com/api/send-message \ -H 'Content-Type: application/json' \ -H 'sb-api-key-id: YOUR_API_KEY' \ -H 'sb-api-secret-key: YOUR_API_SECRET' \ -d '{"number": "+15551234567", "from_number": "+1YOUR_SENDBLUE_NUMBER", "content": "Hello from the API!"}'See the API reference for all endpoints.