Getting Started
Overview
Welcome to the Api.co.id API documentation. Learn how to integrate messaging capabilities into your applications.
The Api.co.id API allows you to send messages via WhatsApp, Instagram, and Messenger, manage contacts, and receive real-time notifications through webhooks.
- API Keys — Create and manage API keys for authentication
- Webhooks — Receive real-time event notifications
Base URL
https://chat.api.co.id/api/v1/public
Postman Collection
Download our complete Postman Collection — pre-configured with all endpoints, authentication, and example payloads. Just import, set your API key, and start testing.
How to use: Open Postman → File → Import → drop the JSON file → set api_key variable → start testing.
Authentication
All API requests require authentication using Bearer tokens.
Request Headers
Authorization: Bearer YOUR_API_KEY
Content-Type: application/json
warning
Important: Keep your API keys secure. Never commit them to version control or expose them in client-side code.
Example Request
- cURL
- JavaScript
- Python
curl -X GET "https://chat.api.co.id/api/v1/public/health" \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json"
const response = await fetch("https://chat.api.co.id/api/v1/public/health", {
headers: {
"Authorization": "Bearer YOUR_API_KEY",
"Content-Type": "application/json"
}
});
const data = await response.json();
import requests
response = requests.get(
"https://chat.api.co.id/api/v1/public/health",
headers={
"Authorization": "Bearer YOUR_API_KEY",
"Content-Type": "application/json"
}
)
data = response.json()
Was this page helpful?