{"openapi":"3.1.0","info":{"title":"NeNx OTA Agent API","version":"1.0.0","summary":"Search OTA inventory and inspect user-visible hotel availability.","description":"Agent endpoints require a Supabase user access token in Authorization: Bearer <token>. Requests are logged to agent_request_logs for user history and admin audit."},"servers":[{"url":"/api/agent/v1"}],"paths":{"/":{"get":{"summary":"Agent API summary","security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Available endpoints and authentication guidance."},"401":{"description":"Missing or invalid Supabase user token."}}}},"/search":{"post":{"summary":"Search active hotel inventory","security":[{"bearerAuth":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["city","checkIn","checkOut","guests"],"properties":{"city":{"type":"string","examples":["Jeju"]},"checkIn":{"type":"string","format":"date"},"checkOut":{"type":"string","format":"date"},"guests":{"type":"integer","minimum":1}}}}}},"responses":{"200":{"description":"Search results."},"400":{"description":"Invalid search request."},"401":{"description":"Missing or invalid Supabase user token."}}}}},"components":{"securitySchemes":{"bearerAuth":{"type":"http","scheme":"bearer","bearerFormat":"Supabase access token"}}}}