productivity
Resend CLI for Coding Agents
Use the Resend CLI for coding agents with headless JSON commands, schema discovery, credentials, and permission controls.
10 functions 5 read 5 write API key auth
Resend CLI for Coding Agents
Let coding agents discover schemas and execute integration functions through CLI commands or MCP.
Use this pattern when another coding agent needs exact commands and schema discovery. The Resend CLI uses the same integration registry as the TUI, Lua runtime, and MCP gateway, but returns predictable command output for automation.
Command Shape
# Resend CLI for Coding Agents
kosmokrator integrations:configure resend --enable --read allow --write ask --json
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 Discovery Before Execution
Agents and scripts can inspect Resend docs and schemas 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 Useful Resend CLI Functions
| Function | Type | Parameters | Description |
|---|---|---|---|
resend.resend_send_email | Write | to, from, subject, html, text, cc, bcc, reply_to, tags, headers | 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. |
resend.resend_get_email | Read | email_id | Retrieve a single email by its ID from Resend. Returns the email object including sender, recipient, subject, created_at, and delivery status. |
resend.resend_list_emails | Read | limit, token | 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. |
resend.resend_create_api_key | Write | name, permission, domain_id | 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. |
resend.resend_list_api_keys | Read | none | 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. |
resend.resend_create_domain | Write | name, region | 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. |
resend.resend_get_domain | Read | domain_id | Retrieve a single domain by its ID from Resend. Returns the domain object including verification status and DNS records. |
resend.resend_list_domains | Read | none | List all domains in the Resend account. Returns an array of domain objects including their names, verification status, and regions. |
resend.resend_verify_domain | Write | domain_id | 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. |
resend.resend_create_contact | Write | audience_id, email, first_name, last_name, unsubscribed | 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. |
Automation Notes
- Use
--jsonfor machine-readable output. - Keep credentials out of argv by using environment variables or stored KosmoKrator configuration.
- Configure read/write policy before unattended runs; use
--forceonly for trusted automation. - Use the MCP gateway instead when the agent needs dynamic tool discovery inside a conversation.