Business Data
Retrieve information about your CekatAI business account.
Get Business Info
GET/businesses
Retrieve your business account information including settings, quota, and usage limits.
bash
curl -X GET "https://api.cekat.ai/businesses" \
-H "Authorization: Bearer YOUR_API_KEY"
Response
200 OK
{
"success": true,
"data": {
"id": "biz_abc123",
"name": "Acme Corporation",
"email": "[email protected]",
"phone": "+62812345678",
"plan": "pro",
"timezone": "Asia/Jakarta",
"language": "id",
"settings": {
"business_hours": {
"enabled": true,
"timezone": "Asia/Jakarta",
"schedule": {
"monday": { "start": "09:00", "end": "18:00" },
"tuesday": { "start": "09:00", "end": "18:00" },
"wednesday": { "start": "09:00", "end": "18:00" },
"thursday": { "start": "09:00", "end": "18:00" },
"friday": { "start": "09:00", "end": "18:00" },
"saturday": null,
"sunday": null
}
},
"auto_reply": {
"enabled": true,
"outside_hours_message": "Thank you for contacting us. We are currently outside business hours and will respond as soon as possible."
}
},
"quota": {
"messages": {
"used": 8500,
"limit": 10000,
"remaining": 1500
},
"ai_credits": {
"used": 3200,
"limit": 5000,
"remaining": 1800
},
"contacts": {
"used": 2500,
"limit": 10000,
"remaining": 7500
}
},
"usage": {
"messages_this_month": 3250,
"ai_credits_this_month": 1200,
"active_inboxes": 3,
"active_agents": 5
},
"created_at": "2025-01-15T08:00:00Z",
"updated_at": "2025-03-27T10:00:00Z"
}
}
Business Object
| Field | Type | Description |
|---|---|---|
id | string | Unique business identifier |
name | string | Business name |
email | string | Admin email |
phone | string | Business phone number |
plan | string | Subscription plan: free, pro, business |
timezone | string | Default timezone |
language | string | Default language code |
settings | object | Business configuration |
quota | object | Usage limits and remaining balance |
usage | object | Current period usage statistics |
created_at | string | Account creation timestamp |
updated_at | string | Last update timestamp |
Code Examples
javascript
const getBusinessInfo = async () => {
const response = await fetch('https://api.cekat.ai/businesses', {
headers: { 'Authorization': 'Bearer YOUR_API_KEY' }
});
return response.json();
};
const business = await getBusinessInfo();
console.log(`Business: ${business.data.name}`);
console.log(`Plan: ${business.data.plan}`);
console.log(`Messages remaining: ${business.data.quota.messages.remaining}`);
console.log(`AI Credits: ${business.data.quota.ai_credits.remaining}`);
