Use the Resend CLI from KosmoKrator to call Resend tools headlessly, return JSON, inspect schemas, and automate workflows from coding agents, scripts, and CI.
Resend can be configured headlessly with `kosmokrator integrations:configure resend`.
# Install KosmoKrator first if it is not available on PATH.curl -fsSL https://raw.githubusercontent.com/OpenCompanyApp/kosmokrator/main/install.sh | bash# Configure and verify this integration.kosmokrator integrations:configure resend --enable --read allow --write ask --jsonkosmokrator integrations:doctor resend --jsonkosmokrator integrations:status --json
Credentials
Authentication type: API keyapi_key. Configure credentials once, then use the same stored profile from
scripts, coding CLIs, Lua code mode, and the MCP gateway.
No credentials are required.
Call Resend Headlessly
Use the generic call form when another coding CLI or script needs a stable universal interface.
Every function below can be called headlessly. The generic form is stable across all integrations;
the provider shortcut is shorter but specific to Resend.
resend.resend_send_email
Write write
Send an email through Resend. Supports HTML and plain-text content, CC, BCC,
reply-to, tags for categorization, and custom email headers.
Returns the sent email object including its ID.
Parameters
to, from, subject, html, text, cc, bcc, reply_to, tags, headers
List emails from Resend. Supports pagination with a limit and cursor token.
Returns an array of email objects and a pagination token for the next page.
Create a new API key in Resend. You can set a permission scope (full_access or
sending_access) and optionally restrict the key to a specific domain.
Returns the created API key object including the key value.
List all API keys in the Resend account. Returns an array of API key objects
with their names, permissions, and creation dates. The actual key values are
not returned for security reasons.
Create a new domain in Resend. You can optionally specify a region for the domain
(us-east-1 or eu-west-1). Returns the created domain object including DNS records
that need to be configured.
Trigger verification for a domain in Resend. This checks the DNS records for the
domain and updates its verification status. Returns the domain object with the
updated status.
Create a contact in a Resend audience. Requires the audience ID and the contact's
email address. Optionally provide first name, last name, and unsubscribed status.
Returns the created contact object.
Use these parameter tables when building CLI payloads without calling integrations:schema first.
resend.resend_send_email
Send an email through Resend. Supports HTML and plain-text content, CC, BCC,
reply-to, tags for categorization, and custom email headers.
Returns the sent email object including its ID.
List emails from Resend. Supports pagination with a limit and cursor token.
Returns an array of email objects and a pagination token for the next page.
Maximum number of emails to return (default 100, max 100).
token
string
no
Cursor token for pagination — use the token from the previous response to get the next page.
resend.resend_create_api_key
Create a new API key in Resend. You can set a permission scope (full_access or
sending_access) and optionally restrict the key to a specific domain.
Returns the created API key object including the key value.
Permission scope: "full_access" or "sending_access".
domain_id
string
no
Domain ID to restrict the key to (only for sending_access).
resend.resend_list_api_keys
List all API keys in the Resend account. Returns an array of API key objects
with their names, permissions, and creation dates. The actual key values are
not returned for security reasons.
Create a new domain in Resend. You can optionally specify a region for the domain
(us-east-1 or eu-west-1). Returns the created domain object including DNS records
that need to be configured.
Trigger verification for a domain in Resend. This checks the DNS records for the
domain and updates its verification status. Returns the domain object with the
updated status.
Create a contact in a Resend audience. Requires the audience ID and the contact's
email address. Optionally provide first name, last name, and unsubscribed status.
Returns the created contact object.
Whether the contact is unsubscribed (default false).
Permissions
Headless calls still follow the integration read/write permission policy. Configure read/write defaults
with integrations:configure. Add --force only for trusted automation that should bypass that policy.