⚙Tool
Sendblue Tools
Send iMessage/SMS messages and retrieve account messages through the Sendblue API.
Sendblue lets you send and receive iMessage and SMS messages programmatically. Use these tools in a workflow to send an outbound message to a phone number or to pull the list of messages from your Sendblue account.
Overview
| Property | Value |
|---|---|
| Provider | sendblue |
| Category | tools |
| Auth | API Key (API key ID + secret sent as sb-api-key-id and sb-api-secret-key headers) |
Operations
| Operation | Tool ID | Description |
|---|---|---|
| Send message | sendblue_send_message | Send an iMessage or SMS via Sendblue |
| Get messages | sendblue_get_messages | Retrieve messages from a Sendblue account |
Configuration
sendblue_send_message
Send an iMessage or SMS via Sendblue. Calls POST https://api.sendblue.co/api/send-message.
| Parameter | Type | Required | Description |
|---|---|---|---|
apiKeyId | string | Yes | Sendblue API key ID. Secret — user-only visibility, sent as the sb-api-key-id header. |
apiSecret | string | Yes | Sendblue API secret key. Secret — user-only visibility, sent as the sb-api-secret-key header. |
number | string | Yes | Recipient phone number in E.164 format (e.g. +19998887777). Visibility user-or-llm. |
content | string | Yes | Message text content. Visibility user-or-llm. |
sendblue_get_messages
Retrieve messages from a Sendblue account. Calls GET https://api.sendblue.co/api/accounts/messages.
| Parameter | Type | Required | Description |
|---|---|---|---|
apiKeyId | string | Yes | Sendblue API key ID. Secret — user-only visibility, sent as the sb-api-key-id header. |
apiSecret | string | Yes | Sendblue API secret key. Secret — user-only visibility, sent as the sb-api-secret-key header. |
Outputs
sendblue_send_message
data(json) — The Sendblue message object returned by the API.metadata(json) — Message metadata.metadata.status(string) — Message status.
sendblue_get_messages
data(json) — Array of Sendblue message objects.metadata(json) — List metadata.metadata.count(number) — Number of messages returned.
YAML Example
sendblue_1:
type: sendblue
name: "Sendblue"
inputs:
operation: "sendblue_send_message"
number: "+19998887777"
content: "Hello from Zelaxy!"
apiKeyId: "{{SENDBLUE_API_KEY_ID}}"
apiSecret: "{{SENDBLUE_API_SECRET}}"
connections:
outgoing:
- target: next-block-idTips
- Authentication uses two credentials, not one: a Sendblue API key ID (
apiKeyId) and a secret (apiSecret). Both are required for every operation and are sent as thesb-api-key-idandsb-api-secret-keyheaders — store them as environment variables and reference them with{{SENDBLUE_API_KEY_ID}}and{{SENDBLUE_API_SECRET}}. - For
sendblue_send_message, thenumbermust be in E.164 format (leading+and country code, e.g.+19998887777); otherwise Sendblue will reject the request. - Both
numberandcontenthaveuser-or-llmvisibility, so they can be supplied by an upstream block (e.g.{{previousBlock.phone}}) or generated by an agent — handy for dynamic outbound messaging. - The send operation returns the message
statusundermetadata.status; chain a condition block on{{sendblue_1.metadata.status}}to branch on delivery state.