API Introduction
Welcome to the AvenPing API! Our REST API allows you to integrate WhatsApp Business messaging into your applications and workflows.
Base URL
https://api.avenping.com/v1Authentication
All API requests require authentication using an API key. Include your API key in the request headers:
http
Authorization: Bearer YOUR_API_KEYWARNING
Keep your API key secure and never expose it in client-side code.
Rate Limits
- 1000 requests per minute for premium user
- Rate limit headers included in all responses
Response Format
All API responses are in JSON format:
json
{
"success": true,
"data": {
// Response data
},
"pagination": {
"page": 1,
"limit": 20,
"total": 100
}
}Error Responses
json
{
"success": false,
"error": {
"code": "INVALID_REQUEST",
"message": "The request is invalid",
"details": "Phone number is required"
}
}Available Endpoints
Messages
POST /messages/send- Send a messageGET /messages/{id}- Get message statusGET /messages- List messages
Contacts
POST /contacts- Create a contactGET /contacts- List contactsPUT /contacts/{id}- Update contactDELETE /contacts/{id}- Delete contact
Campaigns
POST /campaigns- Create campaignGET /campaigns- List campaignsPOST /campaigns/{id}/send- Send campaign
Webhooks
POST /webhooks- Create webhookGET /webhooks- List webhooksDELETE /webhooks/{id}- Delete webhook
Quick Start
- Get your API key from your dashboard
- Send your first message via API
- Set up webhooks for real-time events
- Explore rate limits for optimal usage
SDKs and Libraries
- Node.js -
npm install avenping-sdk - Python -
pip install avenping - PHP -
composer require avenping/sdk - Java - Maven/Gradle support
Postman Collection
Download our Postman collection to test all endpoints quickly.
Next: Authentication Setup →