국민건강보험 진료·투약 내역을 본인인증으로 조회합니다. 민감 의료정보이므로 본인의 명시적 동의(consent) 후에만 호출해야 합니다. (건강검진 결과 조회는 준비 중 — 현재 진료·투약 내역만 제공) — Korean National Health Insurance medical treatment and prescription history. Sensitive data, requires user consent and identity auth.
curl -X POST "https://apitree.ai/api/v1/proxy/kr-nhis-medical-history" \
-H "Authorization: Bearer nxs_live_YOUR_KEY" \
-H "Content-Type: application/json" \
-H "X-Idempotency-Key: <unique-id>" \
-d '{"auth":"quick","ownerName":"<ownerName>","identity":"<identity>","consent":"<consent>","phoneNo":"<phoneNo>"}'
# repeat every 3 s until status is "done" or "failed" (stop on 410/504; a job unfinished after 8 minutes expires)
curl "https://apitree.ai/api/v1/jobs/<job_id>" \
-H "Authorization: Bearer nxs_live_YOUR_KEY"