Overview
The AutoSend skill gives AI coding agents the context they need to send transactional emails, manage contacts, and use templates via the AutoSend REST API. Once installed, your AI agent can generate accurate integration code without any additional prompting. The skill is distributed through skills.sh and can be installed with a single command.Installation
Run the install command
Run the following command in your project root:This automatically detects your AI coding agent and installs the skill file in the correct location.
Set up your API key
Set your AutoSend API key as an environment variable:Or add it to your
.env file:.env
Get your API key from the API Keys page in your AutoSend dashboard under Settings > API Keys > Generate API Key.
Supported Platforms
The AutoSend skill works with the following AI coding agents:
The
npx skills add command automatically detects which agent you’re using and places the skill file in the right location.
Sample Prompts
After installing the skill, your AI coding agent has full context about the AutoSend API. Here are some prompts to get started:Prerequisites
Before using the AutoSend API in your project, make sure you have:Create an AutoSend account
Sign up at autosend.com to get started.
Configure DNS records
Copy the generated DNS records (DKIM, SPF, DMARC) and add them to your DNS provider.
Verify domain ownership
Click Verify Ownership in the AutoSend dashboard. Wait 5–30 minutes for the status to turn green. See the domain setup guide for details.
Generate an API key
Go to Settings > API Keys > Generate API Key in your AutoSend dashboard.
What’s Included
The skill provides your AI agent with full context about the AutoSend API, including authentication, endpoints, request/response formats, and error handling.Authentication
Email Operations
Send Email — POST /v1/mails/send
Send a single transactional email.
Response:
Send with Template — POST /v1/mails/send with templateId
Use a template instead of inline HTML, with dynamic variables for personalization.
Common template IDs:
Example request:
Bulk Send — POST /v1/mails/bulk
Send to up to 100 recipients in a single API call.
Recipient object:
Response:
Contact Management
Create Contact — POST /v1/contacts
Response:
Get Contact — GET /v1/contacts/:id
Response: Returns the full contact object (same shape as Create Contact response).
Upsert Contact — POST /v1/contacts/email
Creates a new contact or updates an existing one by email address. If the contact exists, it updates the record; otherwise it creates a new contact.
Response: Returns the full contact object (same shape as Create Contact response).
Delete Contact — DELETE /v1/contacts/:id
Response:
Error Codes
Next Steps
MCP Server
Connect AutoSend’s MCP server for direct API access from your AI tools.
API Reference
Full API documentation with all endpoints and parameters.
Domain Setup
Add and verify your sending domain.
API Keys
Generate and manage your API keys.