{"name":"Loan System API","version":"1.0.0","endpoints":[{"method":"GET","path":"\/api\/inquiries","description":"Get all inquiries with optional filters","parameters":{"api_key":"API key (required if not in Authorization header)","status":"Filter by status (pending, contacted, approved, rejected)","loan_type":"Filter by loan type (personal, business, home, car)","is_exported":"Filter by export status (0 or 1)","only_unexported":"Return only unexported inquiries (1 = yes)","limit":"Limit number of results","offset":"Offset for pagination","auto_mark":"Automatically mark as exported (1 = yes)"}},{"method":"POST","path":"\/api\/mark_exported","description":"Mark specific inquiries as exported","body":{"ids":"Array of inquiry IDs (required)"}},{"method":"POST","path":"\/api\/reset_export","description":"Reset export flag for specific inquiries or all","body":{"ids":"Array of inquiry IDs (optional, resets all if empty)"}},{"method":"POST","path":"\/api\/send-fb-conversion","description":"Send conversion event to Facebook Conversions API","parameters":{"token":"Security token (required, via Authorization header or token parameter)","fbclick_id":"Facebook Click ID (optional, but either this or fb_profile_id required)","fb_profile_id":"Facebook Profile ID (optional, but either this or fbclick_id required)","event_name":"Event name (optional, default: Lead)"},"note":"Retrieves inquiry data by Meta tracking ID and sends conversion event to Facebook"}],"authentication":{"type":"API Key","methods":["Authorization header: Bearer YOUR_API_KEY","Query parameter: ?api_key=YOUR_API_KEY"]}}