API Reference
Complete reference for the AIWATS WhatsApp Business API
Introduction
The AIWATS API provides a comprehensive set of endpoints to integrate WhatsApp messaging capabilities into your applications. This reference documentation covers all available endpoints, parameters, response formats, error codes, and rate limits.
Our API follows RESTful principles and uses standard HTTP methods. All responses are returned in JSON format.
Base URL
API Reference Sections
Endpoints
Complete list of all API endpoints with descriptions, required permissions, and example requests.
Parameters
Detailed information about all available request parameters, their types, formats, and constraints.
Responses
Structure and format of API responses, including success and error response formats.
Error Codes
Comprehensive list of all error codes, their meanings, and recommended actions to resolve them.
Rate Limits
Information about API rate limits, quotas, and best practices for handling rate limiting in your applications.
Authentication
All API requests must be authenticated using an API key. You can obtain your API key from the AIWATS Dashboard.
API Key Authentication
Include your API key in the request headers:
Authorization: Bearer YOUR_API_KEY
Example Request
Here's an example of how to send a message using the AIWATS API:
curl -X POST https://api.aiwats.com/v1/messages \ -H "Authorization: Bearer YOUR_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "to": "1234567890", "type": "text", "text": { "body": "Hello from AIWATS API!" } }'
Response:
{ "id": "wamid.abcdefghijklmnopqrstuvwxyz", "status": "sent", "timestamp": "2023-05-11T12:00:00Z" }
Client Libraries & SDKs
We provide official client libraries for several programming languages to make it easier to integrate with our API.
Additional Resources
Quick Start Guide
Get up and running with the AIWATS API in minutes.
Webhooks
Learn how to receive real-time updates from WhatsApp.
Troubleshooting
Solutions for common API integration issues.