resend.email.send ​
Send a transactional email via Resend
Send a transactional email via the Resend API.
Inputs:
- from_address: Verified sender address (required), e.g. hello@example.com.
- to_addresses: List of recipient email addresses (required).
- subject: Email subject line (required).
- html: HTML email body (optional but recommended).
- text: Plain-text email body (optional).
- reply_to: Reply-to address (optional).
- cc: List of CC addresses (optional).
- bcc: List of BCC addresses (optional).
Outputs (terminal state_data):
- email_id: str — Resend email ID
Plugin required: context.get_plugin("resend") must expose .api_key.
Overview ​
| Property | Value |
|---|---|
| Workflow type | Atomic |
| Library | App-resend |
| Version | 1.0 |
Input Schema ​
| Field | Type | Required | Default | Description |
|---|---|---|---|---|
from_address | string | Yes | — | Verified sender address |
to_addresses | json | Yes | — | List of recipient addresses |
subject | string | Yes | — | Email subject |
html | string | No | — | HTML body |
text | string | No | — | Plain-text body |
reply_to | string | No | — | Reply-to address |
cc | json | No | — | List of CC addresses |
bcc | json | No | — | List of BCC addresses |
Output Schema ​
| Field | Type | Required | Default | Description |
|---|---|---|---|---|
from_address | string | No | — | — |
to_addresses | json | No | — | — |
subject | string | No | — | — |
html | string | No | — | — |
text | string | No | — | — |
reply_to | string | No | — | — |
cc | json | No | — | — |
bcc | json | No | — | — |
email_id | string | No | — | — |
failure_reason | string | No | — | — |
failure_type | string | No | — | — |
failed_action | string | No | — | — |
failed_at_state | string | No | — | — |
failed_step | string | No | — | — |
failed_layer | string | No | — | — |
error | string | No | — | — |
error_type | string | No | — | — |
States ​
| State | Initial | Terminal | Success | Auto-advance | Description |
|---|---|---|---|---|---|
pending | Yes | No | — | execute | — |
completed | No | Yes | Yes | — | — |
failed | No | Yes | No | — | — |
State Diagram ​
Transitions ​
| From | Action | To | Description |
|---|---|---|---|
pending | execute | completed | — |
* (any state) | fail | failed | — |
API Usage ​
bash
POST /api/workflows/start
Content-Type: application/json
{
"workflow_type": "resend.email.send",
"initial_data": {
"from_address": "value",
"to_addresses": "value",
"subject": "value"
}
}