New260+ blocks and 240+ tools are now fully documented
DocumentationReferenceTool IntegrationsCommunication & Chat
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

PropertyValue
Providersendblue
Categorytools
AuthAPI Key (API key ID + secret sent as sb-api-key-id and sb-api-secret-key headers)

Operations

OperationTool IDDescription
Send messagesendblue_send_messageSend an iMessage or SMS via Sendblue
Get messagessendblue_get_messagesRetrieve 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.

ParameterTypeRequiredDescription
apiKeyIdstringYesSendblue API key ID. Secretuser-only visibility, sent as the sb-api-key-id header.
apiSecretstringYesSendblue API secret key. Secretuser-only visibility, sent as the sb-api-secret-key header.
numberstringYesRecipient phone number in E.164 format (e.g. +19998887777). Visibility user-or-llm.
contentstringYesMessage text content. Visibility user-or-llm.

sendblue_get_messages

Retrieve messages from a Sendblue account. Calls GET https://api.sendblue.co/api/accounts/messages.

ParameterTypeRequiredDescription
apiKeyIdstringYesSendblue API key ID. Secretuser-only visibility, sent as the sb-api-key-id header.
apiSecretstringYesSendblue API secret key. Secretuser-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-id

Tips

  • 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 the sb-api-key-id and sb-api-secret-key headers — store them as environment variables and reference them with {{SENDBLUE_API_KEY_ID}} and {{SENDBLUE_API_SECRET}}.
  • For sendblue_send_message, the number must be in E.164 format (leading + and country code, e.g. +19998887777); otherwise Sendblue will reject the request.
  • Both number and content have user-or-llm visibility, 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 status under metadata.status; chain a condition block on {{sendblue_1.metadata.status}} to branch on delivery state.