sendblue
sendblue
¶
SendBlue channel — iMessage/SMS API adapter.
Sends and receives iMessages (blue bubbles!) and SMS via the SendBlue API. The agent gets a dedicated phone number; users text that number to interact.
API reference: https://docs.sendblue.com/api-v2/
Classes¶
SendBlueChannel
¶
SendBlueChannel(*, api_key_id: str = '', api_secret_key: str = '', from_number: str = '', webhook_secret: str = '', bus: Optional[EventBus] = None)
Bases: BaseChannel
SendBlue iMessage/SMS channel adapter.
| PARAMETER | DESCRIPTION |
|---|---|
api_key_id
|
SendBlue API key ID. Falls back to
TYPE:
|
api_secret_key
|
SendBlue API secret key. Falls back to
TYPE:
|
from_number
|
The SendBlue phone number to send from (E.164 format).
Falls back to
TYPE:
|
webhook_secret
|
Optional secret for verifying incoming webhook requests.
TYPE:
|
bus
|
Optional event bus for publishing channel events.
TYPE:
|
Source code in src/openjarvis/channels/sendblue.py
Attributes¶
Functions¶
connect
¶
Validate credentials and mark as connected.
Source code in src/openjarvis/channels/sendblue.py
disconnect
¶
send
¶
send(channel: str, content: str, *, conversation_id: str = '', metadata: Dict[str, Any] | None = None) -> bool
Send an iMessage/SMS via SendBlue.
| PARAMETER | DESCRIPTION |
|---|---|
channel
|
Recipient phone number in E.164 format (e.g. "+15551234567").
TYPE:
|
content
|
Message text to send.
TYPE:
|
Source code in src/openjarvis/channels/sendblue.py
handle_webhook
¶
Process an incoming webhook payload from SendBlue.
Expected fields: from_number, content, to_number, message_handle, is_outbound, status, service.
Source code in src/openjarvis/channels/sendblue.py
status
¶
status() -> ChannelStatus