Prerequisites
Before you begin, make sure you have:- An EnviaAI account (Sign up here)
- A connected WhatsApp instance
- Your API key (found in the Developer Portal)
Step 1: Get Your API Key
Navigate to the API Keys section in your dashboard and create a new API key.Step 2: Get Your Instance ID
Find your connected instance ID in the Instances page. You’ll need this to send messages.Step 3: Send Your First Message
Choose your preferred programming language and send your first message:Step 4: Check the Response
A successful response will look like this:Step 5: Track Message Status
Monitor your message delivery status using webhooks or the status endpoint:Message Status Flow
Messages go through the following states:| Status | Description |
|---|---|
queued | Message is queued for sending |
sent | Message was sent to WhatsApp |
delivered | Message was delivered to the recipient |
read | Recipient has read the message |
failed | Message delivery failed |
Next Steps
Send Media Messages
Learn how to send images, videos, and documents
Set Up Webhooks
Receive real-time message and status updates
Explore SDKs
Use our official SDKs for easier integration
API Reference
Explore the complete API documentation
Common Issues
Invalid API Key
Invalid API Key
Make sure you’re using the correct API key and that it hasn’t been revoked. Check your API Keys page.
Instance Not Connected
Instance Not Connected
Your WhatsApp instance must be connected to send messages. Check the Instances page and scan the QR code if needed.
Invalid Phone Number
Invalid Phone Number
Phone numbers must be in international format without + or spaces. Example:
5511999999999Rate Limit Exceeded
Rate Limit Exceeded
If you’re hitting rate limits, consider upgrading your plan or implementing request throttling. See Authentication for limits.