Resend Bubble
Email sending service via Resend API
Quick Start
import { ResendBubble } from '@bubblelab/bubble-core';
import { CredentialType } from '@bubblelab/shared-schemas';
const result = await new ResendBubble({
operation: 'send_email',
credentials: {
[CredentialType.RESEND_CRED]: process.env.RESEND_CRED as string,
},
}).action();
Operation Details
send_email
- Input Schema
- Output Schema
operation'send_email' required- Send an email via Resend
fromstring- Sender email address, should not be changed from <[email protected]> if resend account has not been setup with domain verification
tounknown required- Recipient email address(es). For multiple addresses, send as an array of strings. Max 50.
ccunknown- CC email address(es). For multiple addresses, send as an array of strings.
bccunknown- BCC email address(es). For multiple addresses, send as an array of strings.
subjectstring required- Email subject line
textstring- Plain text email content
htmlstring- HTML email content
reply_tounknown- Reply-to email address(es). For multiple addresses, send as an array of strings.
scheduled_atstring- Schedule email to be sent later (ISO 8601 format or natural language like "in 1 hour")
attachmentsobject[]- Array of email attachments (max 40MB total per email)
tagsobject[]- Array of email tags for tracking and analytics
headersRecord<string,string>- Custom email headers (e.g., X-Custom-Header)
credentialsRecord<CredentialType,string>- Object mapping credential types to values (injected at runtime)
operation'send_email' required- Send an email via Resend
successboolean required- Whether the email was sent successfully
email_idstring- Resend email ID if successful
errorstring required- Error message if email sending failed
get_email_status
- Input Schema
- Output Schema
operation'get_email_status' required- Get the status of a sent email
email_idstring required- Resend email ID to check status for
credentialsRecord<CredentialType,string>- Object mapping credential types to values (injected at runtime)
operation'get_email_status' required- Get the status of a sent email
successboolean required- Whether the status request was successful
statusstring- Current status of the email
created_atstring- Timestamp when the email was created
last_eventstring- Last event that occurred with the email
errorstring required- Error message if status request failed