{"openapi":"3.1.0","info":{"title":"海阳通 Data API","version":"1.0.0","description":"Read-only JSON APIs for muluck.net (海阳通). All records include source + last_verified + status. Sample items are excluded. Rates are not real-time.","contact":{"url":"https://muluck.net"}},"servers":[{"url":"https://muluck.net"}],"paths":{"/api/rate":{"get":{"summary":"Vietcombank CNY→VND transfer buy rate (not real-time)","description":"越南外贸银行人民币转账买入价快照。不要称为实时。","responses":{"200":{"description":"Rate payload"}}}},"/api/places":{"get":{"summary":"Supermarkets, hospitals, embassy with map links","parameters":[{"name":"category","in":"query","schema":{"enum":["supermarket","hospital","embassy"]}},{"name":"city","in":"query","schema":{"enum":["hai-duong","hai-phong"]}},{"name":"near_lat","in":"query","schema":{"type":"number"}},{"name":"near_lng","in":"query","schema":{"type":"number"}}],"responses":{"200":{"description":"Places list"}}}},"/api/emergency":{"get":{"summary":"Emergency phone numbers","responses":{"200":{"description":"Emergency list"}}}},"/api/paperwork":{"get":{"summary":"Work-permit renewal window; residence-card expiry reminders only","description":"Omit doc_type/expiry_date to list rules. work_permit: compute filing window (legacy∪new around 2026-12-05). trc/residence_card: renewal_window null + confirm-with-HR note (no cited TRC filing rule). Optional as_of for work-permit phase. Invalid dates → 400.","parameters":[{"name":"doc_type","in":"query","schema":{"enum":["work_permit","trc","residence_card"]},"description":"work_permit (computed window) or trc/residence_card (reminders only)"},{"name":"expiry_date","in":"query","schema":{"type":"string","format":"date","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},"description":"Document expiry YYYY-MM-DD (must be a real calendar date)"},{"name":"as_of","in":"query","required":false,"schema":{"type":"string","format":"date","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},"description":"Optional reference/filing date for phase (default: today Asia/Saigon)"}],"responses":{"200":{"description":"Rules object, or computed window with segments/summary_zh/phase (before|open|closed|too_late)"},"400":{"description":"Invalid doc_type or date (Chinese error message in body.error)"}}}},"/api/phrases":{"get":{"summary":"Emergency Chinese–Vietnamese phrases","parameters":[{"name":"topic","in":"query","schema":{"type":"string"},"description":"Topic id or alias (警察/公安/police → 报警). Unknown → 400 with valid list."}],"responses":{"200":{"description":"Phrases"},"400":{"description":"Unknown topic; body lists valid topics"}}}},"/api/notices":{"get":{"summary":"Local notices","responses":{"200":{"description":"Notices"}}}},"/api/checklist":{"get":{"summary":"Landing checklist + legal notes","responses":{"200":{"description":"Checklist"}}}},"/api/mcp":{"post":{"summary":"Read-only MCP server (Streamable HTTP)","description":"Model Context Protocol tools over verified site content.","responses":{"200":{"description":"MCP response"}}}}}}