resend

v1.0.2
com.mcparmory/resend Checked 3 days ago Published 6 months ago

Send, track, and manage transactional emails at scale

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

list_emails List Emails

Retrieve a paginated list of emails. Use the limit parameter to control how many emails are returned in a single request.

ParameterTypeDescription
limitintegerMaximum number of emails to return in this request. Must be between 1 and 100 items.

send_email Send Email

Send an email to one or more recipients with optional scheduling, attachments, and custom headers. Supports templating and topic-based subscription management for opt-in/opt-out compliance.

ParameterTypeDescription
from *stringSender email address. Include a friendly name using the format 'Your Name <sender@domain.com>' to display a custom sender name.
subject *stringEmail subject line.
to *Recipient email address or array of addresses. Supports up to 50 recipients; provide as a single string for one recipient or an array of strings for multiple.
attachmentsarrayArray of file attachments to include with the email. Each attachment should specify the file content and metadata.
bccBlind carbon copy recipient email address or array of addresses. Provide as a single string or array of strings for multiple recipients.
ccCarbon copy recipient email address or array of addresses. Provide as a single string or array of strings for multiple recipients.
headersobjectCustom HTTP headers to include in the email message. Provide as key-value pairs.
htmlstringThe HTML version of the message.
reply_toReply-to email address or array of addresses. Provide as a single string or array of strings for multiple addresses. Overrides the sender address for reply routing.
scheduled_atstringSchedule the email to be sent at a future date and time. Specify the date in ISO 8601 format (e.g., 2024-12-25T10:30:00Z). If omitted, the email is sent immediately.
tagsarrayArray of tags to categorize or label the email for tracking and organization purposes.
templateobjectEmail template identifier to use for rendering the email body. If specified, the template content is used instead of a raw body parameter.
textstringThe plain text version of the message.
topic_idstringTopic ID to enforce subscription-based delivery rules. If the recipient is a contact, the email is sent only if they're opted-in to the topic; if opted-out, it's blocked. For non-contacts, delivery fo…

get_email Get Email

Retrieve a single email message by its unique identifier. Returns the complete email record including headers, body, and metadata.

ParameterTypeDescription
email_id *stringThe unique identifier of the email to retrieve.

cancel_email Cancel Email

Cancel the scheduled delivery of an email. This prevents a scheduled email from being sent.

ParameterTypeDescription
email_id *stringThe unique identifier of the email to cancel.

send_emails_batch Send Emails Batch

Send up to 100 emails in a single batch request. This operation allows efficient bulk email delivery by processing multiple email configurations simultaneously.

ParameterTypeDescription
bodyarrayArray of email objects to send, with a maximum of 100 items per request. Each item in the array represents a single email configuration with its own recipient, subject, and content details.

list_attachments_for_email List Attachments for Email

Retrieve all attachments associated with a specific sent email. Use this to access files that were included when the email was sent.

ParameterTypeDescription
email_id *stringThe unique identifier of the email, formatted as a UUID.
limitintegerThe maximum number of attachments to return in the response. Useful for pagination or limiting results.

get_email_attachment Get Email Attachment

Retrieve a specific attachment from a sent email by providing both the email ID and attachment ID.

ParameterTypeDescription
attachment_id *stringThe unique identifier of the attachment to retrieve. Must be a valid UUID.
email_id *stringThe unique identifier of the email containing the attachment. Must be a valid UUID.

list_emails_receiving List Receiving Emails

Retrieve a list of received emails from your inbox. Use the limit parameter to control how many emails are returned in the response.

ParameterTypeDescription
limitintegerMaximum number of received emails to return in a single response. Limits the size of the result set to improve performance and reduce payload size.

get_received_email Get Received Email

Retrieve a single received email by its unique identifier. Use this to fetch the full details of a specific email in your inbox.

ParameterTypeDescription
email_id *stringThe unique identifier of the received email, formatted as a UUID.

list_email_attachments List Email Attachments

Retrieve all attachments associated with a received email. Use this to access files that were included with an incoming message.

ParameterTypeDescription
email_id *stringThe unique identifier of the received email, formatted as a UUID.
limitintegerThe maximum number of attachments to return in the response. Useful for pagination or limiting results when dealing with emails containing many files.

get_received_email_attachment Get Received Email Attachment

Retrieve a specific attachment from a received email by providing both the email ID and attachment ID. Returns the attachment file and metadata.

ParameterTypeDescription
attachment_id *stringThe unique identifier (UUID) of the attachment to retrieve.
email_id *stringThe unique identifier (UUID) of the received email containing the attachment.

list_domains List Domains

Retrieve a paginated list of domains. Use the limit parameter to control the number of results returned in a single request.

ParameterTypeDescription
limitintegerMaximum number of domains to return in this request. Must be between 1 and 100 items.

create_domain Create Domain

Create a new domain for sending emails. Configure the domain with optional settings for region, tracking, TLS security, and custom return path.

ParameterTypeDescription
name *stringThe domain name to create (e.g., mail.example.com). This will be used as your sending domain.
click_trackingbooleanEnable click tracking to monitor links clicked within HTML email bodies. Disabled by default.
custom_return_pathstringA custom subdomain for the Return-Path address used in bounce handling. Defaults to 'send' (resulting in send.yourdomain.tld). Use this for advanced routing scenarios.
open_trackingbooleanEnable open rate tracking by injecting a tracking pixel into each email. Disabled by default.
regionstringThe AWS region where emails will be sent from. Defaults to us-east-1 if not specified. Choose from: us-east-1 (N. Virginia), eu-west-1 (Ireland), sa-east-1 (São Paulo), or ap-northeast-1 (Tokyo).
tlsstringTLS encryption mode for outbound emails. 'Opportunistic' attempts a secure connection but falls back to unencrypted if unavailable. 'Enforced' requires TLS or the email will not be sent. Defaults to o…

get_domain Get Domain

Retrieve detailed information about a specific domain by its unique identifier.

ParameterTypeDescription
domain_id *stringThe unique identifier of the domain to retrieve.

update_domain Update Domain

Update email tracking and TLS security settings for an existing domain. Modify open rate tracking, click tracking, and TLS enforcement preferences.

ParameterTypeDescription
domain_id *stringThe unique identifier of the domain to update.
click_trackingbooleanEnable or disable tracking of link clicks within HTML email bodies. When enabled, the system monitors which links recipients click in emails from this domain.
open_trackingbooleanEnable or disable tracking of email open rates. When enabled, the system monitors whether recipients open emails sent from this domain.
tlsstringSet the TLS security mode for outgoing emails: use 'enforced' to require TLS encryption for all connections, or 'opportunistic' to use TLS when available but allow unencrypted fallback. Defaults to 'o…

delete_domain Delete Domain

Permanently remove a domain from the system. This action cannot be undone.

ParameterTypeDescription
domain_id *stringThe unique identifier of the domain to be deleted.

verify_domain Verify Domain

Verify ownership or configuration of an existing domain by triggering validation checks against the specified domain.

ParameterTypeDescription
domain_id *stringThe unique identifier of the domain to verify.

list_api_keys List API Keys

Retrieve a paginated list of API keys for the authenticated user or organization. Use the limit parameter to control the number of results returned.

ParameterTypeDescription
limitintegerMaximum number of API keys to return in the response. Must be between 1 and 100 items.

create_api_key Create API Key

Create a new API key for authenticating requests to the Resend API. The key can be configured with either full access to all resources or restricted to sending emails only.

ParameterTypeDescription
name *stringA descriptive name for the API key to help identify its purpose and usage.
domain_idstringWhen using sending_access permission, optionally restrict the API key to send emails only from a specific domain by providing its domain ID.
permissionstringThe access level for the API key: full_access grants permissions to create, delete, get, and update any resource, while sending_access restricts the key to only sending emails.

delete_api_key Delete API Key

Permanently remove an API key by its ID. Once deleted, the key can no longer be used for authentication and cannot be recovered.

ParameterTypeDescription
api_key_id *stringThe unique identifier of the API key to delete.

list_templates List Templates

Retrieve a paginated list of available templates. Use the limit parameter to control the number of results returned.

ParameterTypeDescription
limitintegerMaximum number of templates to return in the response. Must be between 1 and 100 items.

create_template Create Template

Create a new email template with HTML content and optional configuration for sender, subject, and reply-to addresses. Templates can be referenced by name or alias for sending emails.

ParameterTypeDescription
html *stringThe HTML content of the template. This is the main body rendered in email clients that support HTML. Supports variable substitution using defined variables.
name *stringThe display name for this template. Used to identify and reference the template when sending emails.
aliasstringAn alternative identifier for the template. Useful for programmatic references or shorter naming conventions.
fromstringThe sender's email address, optionally formatted with a friendly name using the format 'Display Name <email@domain.com>'.
reply_toarrayOne or more email addresses where recipients can reply. Specify as an array of email addresses.
subjectstringThe subject line for emails sent using this template. Supports variable substitution if variables are defined.
variablesarrayTemplate variables that can be dynamically substituted in the subject, HTML content, and sender field. Specify as an array of variable definitions.

get_template Get Template

Retrieve a single template by its ID or alias. Use this operation to fetch the full details of a specific template for viewing or further processing.

ParameterTypeDescription
id *stringThe unique identifier or alias of the template to retrieve. Can be either the template's ID or a human-readable alias if supported by the API.

update_template Update Template

Update an existing email template by modifying its name, alias, sender information, subject, reply-to addresses, or variables.

ParameterTypeDescription
id *stringThe unique identifier or alias of the template to update.
aliasstringA unique alias or slug for referencing the template programmatically.
fromstringThe sender's email address; optionally include a friendly name using the format 'Display Name <email@domain.com>'.
namestringThe display name for the template.
reply_toarrayOne or more email addresses to set as reply-to destinations for responses to emails sent with this template.
subjectstringThe subject line for emails sent using this template.
variablesarrayTemplate variables that can be dynamically substituted when sending emails; specify as an array of variable definitions.

delete_template Delete Template

Permanently remove a template by its ID or alias. This action cannot be undone.

ParameterTypeDescription
id *stringThe unique identifier or alias of the template to delete. Can be either the template's ID or a configured alias.

publish_template Publish Template

Publish a template to make it available for use. Once published, the template can be accessed and utilized by users or systems.

ParameterTypeDescription
id *stringThe unique identifier or alias of the template to publish. Can be either the template's ID or a configured alias.

duplicate_template Duplicate Template

Creates a copy of an existing template, allowing you to reuse template configurations with a new instance.

ParameterTypeDescription
id *stringThe unique identifier or alias of the template to duplicate. Can be either the template's ID or a configured alias.

list_contacts List Contacts

Retrieve a list of contacts, optionally filtered by segment and limited to a specific number of results.

ParameterTypeDescription
limitintegerMaximum number of contacts to return in the response. Must be between 1 and 100 items.
segment_idstringFilter the returned contacts to only those belonging to a specific segment. Omit to retrieve contacts from all segments.

create_contact Create Contact

Create a new contact in the system with email as the required identifier. Optionally include personal details, custom properties, segment assignments, and topic subscriptions.

ParameterTypeDescription
email *stringEmail address uniquely identifying the contact (e.g., steve.wozniak@gmail.com). Required to create the contact.
first_namestringFirst name of the contact for personalization and identification purposes.
last_namestringLast name of the contact for personalization and identification purposes.
propertiesobjectCustom key-value pairs to store additional contact attributes beyond standard fields. Values can be strings, numbers, or other JSON-compatible types.
segmentsarrayList of segment IDs to automatically add this contact to upon creation. Segments organize contacts into groups for targeted campaigns.
topicsarrayList of topic IDs representing the contact's subscription preferences. Topics control which types of communications the contact receives.
unsubscribedbooleanGlobal subscription status for the contact. When set to true, the contact is unsubscribed from all broadcasts and communications.

get_contact Get Contact

Retrieve a single contact by its unique identifier or email address. Use this operation to fetch detailed information about a specific contact.

ParameterTypeDescription
id *stringThe unique identifier for the contact or the contact's email address. Either format is accepted to retrieve the contact record.

update_contact Update Contact

Update contact details by ID or email address. Modify any combination of email, name, subscription status, or custom properties for an existing contact.

ParameterTypeDescription
id *stringThe unique identifier for the contact, either as a Contact ID or email address.
emailstringThe contact's email address in standard email format (e.g., user@example.com).
first_namestringThe contact's first name.
last_namestringThe contact's last name.
propertiesobjectA map of custom property keys and their values to update or add to the contact's profile.
unsubscribedbooleanGlobal subscription status for the contact. Set to true to unsubscribe the contact from all Broadcasts; false to maintain or restore subscription.

delete_contact Delete Contact

Permanently remove a contact from the system by specifying either its unique ID or email address.

ParameterTypeDescription
id *stringThe unique identifier for the contact, provided as either the contact ID or the email address associated with the contact.

list_broadcasts List Broadcasts

Retrieve a paginated list of broadcasts. Use the limit parameter to control how many broadcasts are returned in a single request.

ParameterTypeDescription
limitintegerMaximum number of broadcasts to return in the response. Must be between 1 and 100 items.

create_broadcast Create Broadcast

Create an email broadcast to be sent to a specific audience segment. The broadcast can be sent immediately or scheduled for a future time, or saved as a draft for later editing.

ParameterTypeDescription
from *stringThe email address that will appear as the sender of this broadcast.
segment_id *stringThe unique identifier of the audience segment that will receive this broadcast. This parameter determines who the email will be sent to.
subject *stringThe subject line displayed to recipients when they receive the email.
htmlstringThe HTML version of the message.
namestringA human-readable name to identify this broadcast for internal reference.
preview_textstringA short preview or snippet of the email content that appears in email clients before the full message is opened.
reply_toarrayOne or more email addresses where recipient replies should be directed. Provide as an array of email addresses.
scheduled_atstringThe date and time when the broadcast should be sent, specified in ISO 8601 format. This can only be used when send is set to true.
sendbooleanSet to true to send the broadcast immediately, or false to save it as a draft. If true, you can optionally use scheduled_at to send at a future time.
textstringThe plain text version of the message.
topic_idstringThe unique identifier of a topic to scope this broadcast to, allowing you to organize broadcasts by topic.

get_broadcast Get Broadcast

Retrieve detailed information about a specific broadcast by its unique identifier.

ParameterTypeDescription
id *stringThe unique identifier of the broadcast to retrieve.

update_broadcast Update Broadcast

Update an existing broadcast's configuration including name, recipient segment, sender details, subject line, and topic association.

ParameterTypeDescription
id *stringThe unique identifier of the broadcast to update.
fromstringThe email address that will appear as the sender of the broadcast.
namestringThe display name for the broadcast.
preview_textstringThe preview text shown in email clients before the recipient opens the message.
reply_toarrayOne or more email addresses where replies to this broadcast should be directed. Specify as an array of email addresses.
segment_idstringThe unique identifier of the audience segment that will receive this broadcast.
subjectstringThe subject line displayed in recipients' email clients.
topic_idstringThe unique identifier of the topic this broadcast is associated with for organizational and filtering purposes.

delete_broadcast Delete Broadcast

Permanently remove a broadcast that is currently in draft status. Only draft broadcasts can be deleted; published or scheduled broadcasts cannot be removed through this operation.

ParameterTypeDescription
id *stringThe unique identifier of the broadcast to delete. Must reference a broadcast in draft status.

send_broadcast Send Broadcast

Send a broadcast immediately or schedule it to be sent at a specified future time. Use the scheduled_at parameter to defer delivery, or omit it to send right away.

ParameterTypeDescription
id *stringThe unique identifier of the broadcast to send or schedule.
scheduled_atstringOptional ISO 8601 formatted date and time to schedule the broadcast for future delivery. If omitted, the broadcast will be sent immediately.

list_webhooks List Webhooks

Retrieve a paginated list of webhooks configured for this API. Use the limit parameter to control the maximum number of results returned.

ParameterTypeDescription
limitintegerMaximum number of webhooks to return in the response. Useful for pagination and controlling response size.

create_webhook Create Webhook

Create a new webhook subscription to receive HTTP POST notifications for specified email events. The webhook will be triggered whenever any of the subscribed events occur.

ParameterTypeDescription
endpoint *stringThe HTTPS URL endpoint where webhook event notifications will be delivered. Must be a valid, publicly accessible URL that can receive POST requests.
events *arrayA list of one or more event types to subscribe to. Each event type is a string identifier (e.g., 'email.sent', 'email.delivered'). At least one event type is required. Order does not matter.

get_webhook Get Webhook

Retrieve the details of a specific webhook by its unique identifier. Use this to inspect webhook configuration, status, and settings.

ParameterTypeDescription
webhook_id *stringThe unique identifier of the webhook to retrieve, formatted as a UUID.

update_webhook Update Webhook

Update the configuration of an existing webhook, including its endpoint URL, subscribed event types, and operational status.

ParameterTypeDescription
webhook_id *stringThe unique identifier of the webhook to update, formatted as a UUID.
endpointstringThe HTTPS URL where webhook events will be delivered. This endpoint must be publicly accessible and capable of receiving POST requests.
eventsarrayA list of event types this webhook should subscribe to. At least one event type is required. Events are specified as dot-separated strings (e.g., 'email.sent', 'email.delivered').
statusstringThe operational state of the webhook. Set to 'enabled' to activate event delivery or 'disabled' to pause it without removing the configuration.

delete_webhook Delete Webhook

Permanently remove a webhook by its unique identifier. This action cannot be undone.

ParameterTypeDescription
webhook_id *stringThe unique identifier of the webhook to delete, formatted as a UUID.

list_segments List Segments

Retrieve a paginated list of segments. Use the limit parameter to control the number of results returned in a single request.

ParameterTypeDescription
limitintegerMaximum number of segments to return per request. Must be between 1 and 100 items.

create_segment Create Segment

Create a new segment with a name and optional filter conditions to organize and target specific data subsets.

ParameterTypeDescription
name *stringThe display name for the segment. Used to identify and reference the segment in the system.
filterobjectOptional filter conditions that define which records belong to this segment. Specify filter criteria as a structured object to narrow the segment's scope.

get_segment Get Segment

Retrieve a single segment by its unique identifier. Returns the complete segment details including configuration and metadata.

ParameterTypeDescription
id *stringThe unique identifier of the segment to retrieve.

delete_segment Delete Segment

Permanently remove a segment by its ID. This action cannot be undone.

ParameterTypeDescription
id *stringThe unique identifier of the segment to delete.

list_topics List Topics

Retrieve a paginated list of available topics. Use the limit parameter to control the number of results returned.

ParameterTypeDescription
limitintegerMaximum number of topics to return in the response. Must be between 1 and 100 items.

create_topic Create Topic

Create a new topic for managing contact subscriptions. Topics define subscription preferences that cannot be modified after creation.

ParameterTypeDescription
default_subscription *stringThe default subscription behavior for new contacts: 'opt_in' requires explicit subscription, 'opt_out' subscribes by default. This setting is permanent and cannot be changed after topic creation.
name *stringThe topic name, up to 50 characters. Used to identify the topic in subscription management interfaces.
descriptionstringOptional description of the topic's purpose, up to 200 characters. Helps contacts understand what the topic covers.
visibilitystringControls topic visibility: 'public' topics appear on the unsubscribe page for all contacts, 'private' topics only appear for already opted-in contacts. Defaults to 'private'.

get_topic Get Topic

Retrieve a single topic by its unique identifier. Returns the complete topic details including metadata and content.

ParameterTypeDescription
id *stringThe unique identifier of the topic to retrieve.

update_topic Update Topic

Update an existing topic's metadata including its name, description, and visibility settings. Provide the topic ID and specify which fields to modify.

ParameterTypeDescription
id *stringThe unique identifier of the topic to update.
descriptionstringA detailed description of the topic's purpose or content. Must not exceed 200 characters.
namestringThe new name for the topic. Must not exceed 50 characters.
visibilitystringControls who can access this topic. Choose either 'public' for unrestricted access or 'private' for restricted access.

delete_topic Delete Topic

Permanently remove a topic by its ID. This action cannot be undone.

ParameterTypeDescription
id *stringThe unique identifier of the topic to delete.

list_contact_properties List Contact Properties

Retrieve a paginated list of available contact properties. Use the limit parameter to control the number of properties returned in a single request.

ParameterTypeDescription
limitintegerMaximum number of contact properties to return per request. Must be between 1 and 100 items.

create_contact_property Create Contact Property

Create a new custom property for contacts. This property can be used to store additional data on contact records, with an optional default value applied when the property is not explicitly set.

ParameterTypeDescription
key *stringA unique identifier for the property using only alphanumeric characters and underscores, up to 50 characters in length.
type *stringThe data type for this property, either string or number, which determines the format of values stored and the type required for the fallback value.
fallback_valuestringAn optional default value returned when the property is not set on a contact. The value must match the specified property type (string or number).

get_contact_property Get Contact Property

Retrieve a single contact property by its unique identifier. Use this to fetch detailed information about a specific contact property.

ParameterTypeDescription
id *stringThe unique identifier of the contact property to retrieve.

update_contact_property Update Contact Property

Update the fallback value for an existing contact property. The fallback value is used as the default when the property is not set for a specific contact.

ParameterTypeDescription
id *stringThe unique identifier of the contact property to update.
fallback_valuestringThe default value to use when this property is not set for a contact. Must be compatible with the property's data type (string or number).

delete_contact_property Delete Contact Property

Permanently remove a contact property from the system by its ID. This action cannot be undone.

ParameterTypeDescription
id *stringThe unique identifier of the contact property to delete.

list_contact_segments List Contact Segments

Retrieve all segments that a contact belongs to. Use the contact's ID or email address to fetch their segment memberships.

ParameterTypeDescription
contact_id *stringThe unique identifier for the contact. Accepts either the contact's ID or email address.
limitintegerMaximum number of segments to return in the response. Must be between 1 and 100 items.

add_contact_to_segment Add Contact to Segment

Add a contact to a segment, enabling you to organize and group contacts for targeted campaigns or management purposes.

ParameterTypeDescription
contact_id *stringThe unique identifier or email address of the contact to add to the segment.
segment_id *stringThe unique identifier of the segment to which the contact will be added.

remove_contact_from_segment Remove Contact From Segment

Remove a contact from a segment, effectively unsubscribing or disassociating them from that segment's audience.

ParameterTypeDescription
contact_id *stringThe unique identifier for the contact, provided as either the Contact ID or the contact's email address.
segment_id *stringThe unique identifier for the segment from which the contact should be removed.

list_contact_topics List Contact Topics

Retrieve a list of topics associated with a specific contact. Use the contact ID or email address to fetch their related topics with optional pagination.

ParameterTypeDescription
contact_id *stringThe unique identifier for the contact, which can be either the contact ID or the contact's email address.
limitintegerMaximum number of topics to return in the response. Must be between 1 and 100 items.

list_logs List Logs

Retrieve a paginated list of logs from the system. Use the limit parameter to control how many log entries are returned in a single request.

ParameterTypeDescription
limitintegerMaximum number of log entries to return in the response. Must be between 1 and 100 items.

get_log Get Log

Retrieve a single log entry by its unique identifier. Returns the complete log record matching the provided ID.

ParameterTypeDescription
log_id *stringThe unique identifier of the log to retrieve, formatted as a UUID.