Base URL
https://app.kwamlemedia.com/api/v1
Authentication
Every request requires a Bearer Token in the header:
Authorization: Bearer YOUR_API_TOKEN
Get your token from Settings → API Keys.
Bots
GET
/botsList all your bots.
GET
/bots/{id}Details of a specific bot.
POST
/botsCreate a new bot.
PATCH
/bots/{id}Update a bot's data.
DELETE
/bots/{id}Delete a bot.
Subscribers
GET
/subscribersList subscribers with pagination.
GET
/subscribers/{id}Data for a specific subscriber.
POST
/subscribers/{id}/messagesSend a message to a specific subscriber.
POST
/subscribers/{id}/tagsAdd a tag to a subscriber.
Posts
GET
/postsList scheduled and published posts.
POST
/postsCreate/schedule a new post.
Ecommerce
GET
/productsList products.
POST
/productsAdd a new product.
GET
/ordersList orders.
AI Studio
POST
/ai/chatMulti-provider AI call with automatic selection.
GET
/ai/usageDaily token consumption statistics.
Example request
curl -X POST https://app.kwamlemedia.com/api/v1/ai/chat \
-H "Authorization: Bearer YOUR_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"messages": [
{"role": "user", "content": "Write me an ad for a new product"}
],
"max_tokens": 500
}'
Webhooks
Subscribe to live platform events (new message, new order, new comment):
POST /webhooks
{
"url": "https://yourdomain.com/webhook",
"events": ["message.received", "order.created", "comment.posted"]
}
Rate Limiting
- Free: 60 requests/min
- Pro: 600 requests/min
- Enterprise: 6,000 requests/min + custom
The X-RateLimit-Remaining and X-RateLimit-Reset headers return real-time information.
Official SDKs in development
Coming soon: libraries for Node.js, Python, PHP, and Go.
For technical questions: api@kwamlemedia.com
