KosmoKrator

productivity

Resend CLI for AI Agents

Use the Resend CLI from KosmoKrator to call Resend tools headlessly, return JSON, inspect schemas, and automate workflows from coding agents, scripts, and CI.

10 functions 5 read 5 write API key auth

Resend CLI Setup

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 --json
kosmokrator integrations:doctor resend --json
kosmokrator integrations:status --json

Credentials

Authentication type: API key api_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.

kosmo integrations:call resend.resend_send_email '{
  "to": "example_to",
  "from": "example_from",
  "subject": "example_subject",
  "html": "example_html",
  "text": "example_text",
  "cc": "example_cc",
  "bcc": "example_bcc",
  "reply_to": "example_reply_to"
}' --json

Use the provider shortcut form for shorter human-facing commands.

kosmo integrations:resend resend_send_email '{
  "to": "example_to",
  "from": "example_from",
  "subject": "example_subject",
  "html": "example_html",
  "text": "example_text",
  "cc": "example_cc",
  "bcc": "example_bcc",
  "reply_to": "example_reply_to"
}' --json

Agent Discovery Commands

These commands return structured output for coding agents that need to inspect capabilities before choosing a function.

kosmo integrations:docs resend --json
kosmo integrations:docs resend.resend_send_email --json
kosmo integrations:schema resend.resend_send_email --json
kosmo integrations:search "Resend" --json
kosmo integrations:list --json

All CLI Functions

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

Generic CLI call

kosmo integrations:call resend.resend_send_email '{"to":"example_to","from":"example_from","subject":"example_subject","html":"example_html","text":"example_text","cc":"example_cc","bcc":"example_bcc","reply_to":"example_reply_to"}' --json

Provider shortcut

kosmo integrations:resend resend_send_email '{"to":"example_to","from":"example_from","subject":"example_subject","html":"example_html","text":"example_text","cc":"example_cc","bcc":"example_bcc","reply_to":"example_reply_to"}' --json

resend.resend_get_email

Read read

Retrieve a single email by its ID from Resend. Returns the email object including sender, recipient, subject, created_at, and delivery status.

Parameters
email_id

Generic CLI call

kosmo integrations:call resend.resend_get_email '{"email_id":"example_email_id"}' --json

Provider shortcut

kosmo integrations:resend resend_get_email '{"email_id":"example_email_id"}' --json

resend.resend_list_emails

Read read

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.

Parameters
limit, token

Generic CLI call

kosmo integrations:call resend.resend_list_emails '{"limit":1,"token":"example_token"}' --json

Provider shortcut

kosmo integrations:resend resend_list_emails '{"limit":1,"token":"example_token"}' --json

resend.resend_create_api_key

Write write

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.

Parameters
name, permission, domain_id

Generic CLI call

kosmo integrations:call resend.resend_create_api_key '{"name":"example_name","permission":"example_permission","domain_id":"example_domain_id"}' --json

Provider shortcut

kosmo integrations:resend resend_create_api_key '{"name":"example_name","permission":"example_permission","domain_id":"example_domain_id"}' --json

resend.resend_list_api_keys

Read read

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.

Parameters
none

Generic CLI call

kosmo integrations:call resend.resend_list_api_keys '{}' --json

Provider shortcut

kosmo integrations:resend resend_list_api_keys '{}' --json

resend.resend_create_domain

Write write

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.

Parameters
name, region

Generic CLI call

kosmo integrations:call resend.resend_create_domain '{"name":"example_name","region":"example_region"}' --json

Provider shortcut

kosmo integrations:resend resend_create_domain '{"name":"example_name","region":"example_region"}' --json

resend.resend_get_domain

Read read

Retrieve a single domain by its ID from Resend. Returns the domain object including verification status and DNS records.

Parameters
domain_id

Generic CLI call

kosmo integrations:call resend.resend_get_domain '{"domain_id":"example_domain_id"}' --json

Provider shortcut

kosmo integrations:resend resend_get_domain '{"domain_id":"example_domain_id"}' --json

resend.resend_list_domains

Read read

List all domains in the Resend account. Returns an array of domain objects including their names, verification status, and regions.

Parameters
none

Generic CLI call

kosmo integrations:call resend.resend_list_domains '{}' --json

Provider shortcut

kosmo integrations:resend resend_list_domains '{}' --json

resend.resend_verify_domain

Write write

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.

Parameters
domain_id

Generic CLI call

kosmo integrations:call resend.resend_verify_domain '{"domain_id":"example_domain_id"}' --json

Provider shortcut

kosmo integrations:resend resend_verify_domain '{"domain_id":"example_domain_id"}' --json

resend.resend_create_contact

Write write

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.

Parameters
audience_id, email, first_name, last_name, unsubscribed

Generic CLI call

kosmo integrations:call resend.resend_create_contact '{"audience_id":"example_audience_id","email":"example_email","first_name":"example_first_name","last_name":"example_last_name","unsubscribed":true}' --json

Provider shortcut

kosmo integrations:resend resend_create_contact '{"audience_id":"example_audience_id","email":"example_email","first_name":"example_first_name","last_name":"example_last_name","unsubscribed":true}' --json

Function Schemas

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.

Operation
Write write
Schema command
kosmo integrations:schema resend.resend_send_email --json
ParameterTypeRequiredDescription
to string yes Recipient email address.
from string yes Sender email address (must be a verified domain).
subject string yes Email subject line.
html string no HTML body content.
text string no Plain-text body content.
cc array no CC recipient email addresses.
bcc array no BCC recipient email addresses.
reply_to array no Reply-to email addresses.
tags array no Tags to attach to the email. Each item should have "name" and "value" keys.
headers object no Custom email headers (key-value pairs).

resend.resend_get_email

Retrieve a single email by its ID from Resend. Returns the email object including sender, recipient, subject, created_at, and delivery status.

Operation
Read read
Schema command
kosmo integrations:schema resend.resend_get_email --json
ParameterTypeRequiredDescription
email_id string yes The ID of the email to retrieve.

resend.resend_list_emails

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.

Operation
Read read
Schema command
kosmo integrations:schema resend.resend_list_emails --json
ParameterTypeRequiredDescription
limit integer no 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.

Operation
Write write
Schema command
kosmo integrations:schema resend.resend_create_api_key --json
ParameterTypeRequiredDescription
name string yes A descriptive name for the API key.
permission string no 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.

Operation
Read read
Schema command
kosmo integrations:schema resend.resend_list_api_keys --json
ParameterTypeRequiredDescription
No parameters.

resend.resend_create_domain

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.

Operation
Write write
Schema command
kosmo integrations:schema resend.resend_create_domain --json
ParameterTypeRequiredDescription
name string yes Domain name (e.g. "example.com").
region string no Region for the domain: "us-east-1" or "eu-west-1".

resend.resend_get_domain

Retrieve a single domain by its ID from Resend. Returns the domain object including verification status and DNS records.

Operation
Read read
Schema command
kosmo integrations:schema resend.resend_get_domain --json
ParameterTypeRequiredDescription
domain_id string yes The ID of the domain to retrieve.

resend.resend_list_domains

List all domains in the Resend account. Returns an array of domain objects including their names, verification status, and regions.

Operation
Read read
Schema command
kosmo integrations:schema resend.resend_list_domains --json
ParameterTypeRequiredDescription
No parameters.

resend.resend_verify_domain

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.

Operation
Write write
Schema command
kosmo integrations:schema resend.resend_verify_domain --json
ParameterTypeRequiredDescription
domain_id string yes The ID of the domain to verify.

resend.resend_create_contact

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.

Operation
Write write
Schema command
kosmo integrations:schema resend.resend_create_contact --json
ParameterTypeRequiredDescription
audience_id string yes The audience ID to add the contact to.
email string yes Contact email address.
first_name string no Contact first name.
last_name string no Contact last name.
unsubscribed boolean no 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.