Integrate CWAS with your applications using our REST API.
All API requests require authentication via session cookies. Log in through the web interface first.
Get available time slots for a specific date and water source.
date - Date in YYYY-MM-DD formatsource_id - Water source ID
[{"id": 1, "start_time": "06:00", "end_time": "06:30", "max_capacity": 10, "booked_count": 3}]
Get list of districts for a region.
["Antananarivo", "Ankazobe", "Anjozorobe"]
Send a message to the AI chatbot.
{"message": "What is my balance?"}
{"response": "Your current balance is 50,000 Ar.", "intent": "balance"}
Get booking statistics for reporting.
period - Number of days (default: 30)
API requests are limited to 100 requests per minute per user.