{"data_sources":{"call_log":"/opt/opkald-ai/livekit-agent/transcripts/phone_call_log.json","no_callback":"/opt/opkald-ai/livekit-agent/transcripts/no_callback_needed.json","query_log":"/opt/opkald-ai/livekit-agent/transcripts/has_call_been_made_queries.json","sms_responses":"/opt/opkald-ai/livekit-agent/transcripts/sms_responses.json"},"description":"Lightweight API for checking call history and managing SMS","endpoints":{"/api/call-stats/<phone_number>":"Get call statistics for phone number","/api/has-called/<phone_number>":"Check if phone number has called (RESTful format) - supports ?hours=N parameter","/api/has_made_phone_call":"Check if phone number has called (legacy format) - query params: phone_number, clinic_id, hours","/api/sms-responses":"Get recorded SMS responses for a phone number (legacy)","/api/sms/history":"Get SMS message history (GET: phone_number, clinic_id, direction, limit)","/api/sms/mark-processed/<sms_id>":"Mark an SMS as processed (POST)","/api/sms/send":"Send SMS via CPSMS API (POST: to, message, from_name, clinic_id)","/api/sms/stats":"Get SMS statistics with sent/received/non-responded (GET: clinic_id, days)","/api/sms/unprocessed":"Get unprocessed inbound SMS messages (GET: clinic_id, limit)","/api/sms/webhook":"CPSMS webhook endpoint for receiving SMS (POST)","/health":"Health check endpoint","/sms/webhook":"Twilio webhook endpoint for incoming SMS (legacy)"},"service":"Opkald AI - Call Query API","sms_enabled":true,"version":"1.1.0"}
