Vercel Integration
Connect Zavu to your Vercel projects for seamless messaging
The Zavu Vercel integration automatically provisions API keys and injects environment variables into your Vercel projects, enabling you to start sending messages in minutes.
Features
- One-Click Setup: Install from the Vercel Marketplace and connect in minutes
- Automatic API Key Provisioning: API keys are created and injected automatically
- Environment Variable Injection:
ZAVUDEV_API_KEY(also asZAVU_API_KEY) andZAVU_PROJECT_IDare added to your Vercel projects - Multi-Project Support: Connect multiple Vercel projects to a single Zavu project
Installation
Install from Vercel Marketplace
Visit the Zavu Integration on Vercel Marketplace and click Add Integration.
Authorize Access
Grant Zavu permission to access your Vercel account and projects.
Select Zavu Project
Choose an existing Zavu project or create a new one to connect with your Vercel projects.
Choose Vercel Projects
Select which Vercel projects should receive the Zavu environment variables.
Environment Variables
After installation, the following environment variables are automatically added to your selected Vercel projects:
| Variable | Description |
|---|---|
ZAVUDEV_API_KEY | Your Zavu API key for authentication. The SDKs read it by default. |
ZAVU_API_KEY | The same key, under the name integrations set up before October 2026 used. Keep reading it if your code already does. |
ZAVU_PROJECT_ID | Your Zavu project ID |
Quick Start
Once the integration is complete, you can start sending messages immediately. The API key is already available as an environment variable.
Install the SDK
TypeScriptnpm install @zavudev/sdk # or: bun add @zavudev/sdk
Send Your First Message
import Zavudev from "@zavudev/sdk";
const zavu = new Zavu({
apiKey: process.env.ZAVUDEV_API_KEY!,
});
// Send a message
const { message } = await zavu.messages.send({
to: "+1234567890",
text: "Hello from Zavu!",
});
console.log("Message ID:", message.id);
Managing the Integration
View Connected Projects
Go to Integrations in your Zavu Dashboard to see all connected Vercel projects and their status.
Disconnect
Disconnect from Developers › Integrations in the Zavu dashboard. Zavu revokes the API key and removes the variables it added (ZAVUDEV_API_KEY, ZAVU_API_KEY, ZAVU_PROJECT_ID) from each connected Vercel project. If a project could not be cleaned, the integration's row says which one: remove the variables there by hand.
Rotate API Key
If you need to rotate your API key:
- Go to API Keys in your Zavu Dashboard
- Create a new API key
- Update the
ZAVUDEV_API_KEYenvironment variable in your Vercel project settings - Revoke the old API key
Troubleshooting
Environment Variables Not Appearing
If the environment variables are not showing up in your Vercel project:
- Check the integration status in your Zavu Dashboard
- Re-deploy your Vercel project to pick up the new environment variables
- Ensure the integration has the correct permissions
OAuth Errors
If you encounter OAuth errors during setup:
- Try disconnecting and reconnecting the integration
- Clear your browser cookies for Vercel and Zavu
- Ensure popup blockers are disabled
API Key Not Working
If messages fail to send:
- Verify the API key is correctly set in your environment
- Read the error code on the response or on the failed message: a daily ceiling (
daily_limit_exceeded), a missing 10DLC campaign on a +1 SMS destination (ten_dlc_required), or a message the automated review stopped (RISK_BLOCKED,RISK_REJECTED,RISK_REVIEW_EXPIRED). See Sending limits - Review the API Logs for detailed error messages
Use Cases
Send order confirmations, shipping updates, and password resets
Implement SMS-based 2FA for your Next.js applications
Enable WhatsApp messaging for real-time customer communication
Run targeted SMS and WhatsApp marketing campaigns