{"openapi":"3.0.0","paths":{"/service-inquiries":{"post":{"description":"Accepts a lead from the Wakeel Online website contact form and persists it as a row in `service_inquiries`. Returns the new row id.","operationId":"ServiceInquiriesController_create","parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["service_slug","service_title","name","phone","based_in","best_time_to_call","urgency","message","service_details"],"properties":{"service_slug":{"type":"string","example":"family-law"},"service_title":{"type":"string","example":"Family Law Consultation"},"name":{"type":"string","example":"Aisha Khan"},"phone":{"type":"string","example":"+92 300 1234567"},"email":{"type":"string","format":"email","nullable":true},"based_in":{"type":"string","enum":["pakistan","overseas"]},"city":{"type":"string","nullable":true,"example":"Karachi"},"country":{"type":"string","nullable":true,"example":"United Kingdom"},"best_time_to_call":{"type":"string","enum":["now_today","morning","afternoon","evening"]},"urgency":{"type":"string","enum":["urgent","this_week","exploring"]},"message":{"type":"string"},"service_details":{"type":"object","additionalProperties":true,"description":"Free-form JSONB payload for service-specific fields."}}}}}},"responses":{"201":{"description":"Inquiry created.","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","format":"uuid"}}}}}},"500":{"description":"Unable to submit service inquiry at this time."}},"summary":"Submit a service inquiry","tags":["service-inquiries"]}}},"info":{"title":"Wakeel Online API","description":"API documentation for the Wakeel Online platform","version":"1.0.0","contact":{}},"tags":[],"servers":[],"components":{"securitySchemes":{"bearer":{"scheme":"bearer","bearerFormat":"JWT","type":"http"}},"schemas":{}}}