API Documentation
Build with the AiSensy API
A powerful REST API to send messages, manage templates, and automate WhatsApp communication at scale.
Quick Start
// Send a WhatsApp message
const response = await fetch('https://api.aisensy.io/v1/messages', {
method: 'POST',
headers: {
'Authorization': 'Bearer YOUR_API_KEY',
'Content-Type': 'application/json',
},
body: JSON.stringify({
to: '+1234567890',
type: 'template',
template: {
name: 'order_confirmation',
language: { code: 'en' },
components: [
{
type: 'body',
parameters: [
{ type: 'text', text: 'John' },
{ type: 'text', text: '#12345' },
],
},
],
},
}),
});
API Sections
Authentication
Learn how to authenticate your API requests using API keys and OAuth 2.0 tokens.
Message Templates
Create, submit, and manage WhatsApp message templates programmatically.
Sending Messages
Send text, media, interactive, and template messages via the API.
Webhooks
Receive real-time notifications for message delivery, reads, and incoming messages.
Contacts & Groups
Manage contacts, segments, and audience groups through the API.
Rate Limits & Errors
Understand rate limits, error codes, and best practices for handling failures.
Base URL
https://api.aisensy.io/v1
All API endpoints use HTTPS. Responses are returned in JSON format.