Skip to main content
Bolt
Bolt is an AI-powered platform that lets you build full-stack web apps from natural language prompts. You can integrate AutoSend into any Bolt project to send transactional emails like welcome emails, password resets, order confirmations, and notifications.

Prerequisites

AutoSend Account

Sign up for an AutoSend account to get started with sending emails.

Verified Domain

Make sure you have a verified domain added in AutoSend.

API Key

Create a new API key from your AutoSend dashboard.

Bolt Account

Sign up for Bolt to start building apps.

Integration

1

Prompt Bolt to integrate AutoSend

Copy and paste this prompt into Bolt’s chat:
Bolt will generate the backend code and wire it into your app automatically.
2

Add your API key

Add your AutoSend API key as an environment variable in your Bolt project settings with the name AUTOSEND_API_KEY.
Get your API key from the API Keys page in your AutoSend dashboard.
3

Test your integration

Trigger the email flow in your app (for example, submitting a contact form). Check your Email Activity in the AutoSend dashboard to confirm the email was delivered.

Using Email Templates

If you have created email templates in AutoSend, you can send emails using a templateId instead of inline HTML. Update the prompt to include:

Troubleshooting

Make sure your AUTOSEND_API_KEY is correctly added in your project’s environment variables. Also verify that your sending domain is verified in AutoSend by checking Settings > Domains in your dashboard.
Double-check that your code is reading the API key from environment variables correctly. The Authorization header should be Bearer YOUR_API_KEY with no extra spaces or quotes.
Make sure you have completed domain verification including SPF, DKIM, and DMARC records. We recommend using a subdomain like mail.yourdomain.com for sending. See our domain setup guide for details.

Next Steps

Email Templates

Create reusable email templates with dynamic variables.

Email Activity

Monitor delivery status and engagement for all emails.

API Reference

Full API documentation with all endpoints and parameters.

Variables

Personalize emails with dynamic variables.