Skip to main content
v0
v0 is Vercel’s AI-powered tool for generating UI components and full-stack applications. You can integrate AutoSend into your v0 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.

v0 Account

Sign up for v0 to start building.

Integration

1

Prompt v0 to integrate AutoSend

Copy and paste this prompt into v0’s chat:
v0 will generate the API route and any UI components needed for your email flow.
2

Add your API key

When you deploy your v0 project to Vercel, add AUTOSEND_API_KEY as an environment variable in your Vercel project settings.For local development, add it to your .env.local file:
.env.local
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 set in your Vercel environment variables (for production) or .env.local (for local development). Also verify that your sending domain is verified in AutoSend.
Double-check that the API route is reading the API key correctly from process.env.AUTOSEND_API_KEY. The Authorization header should be Bearer YOUR_API_KEY.
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.