\n\n```\n\n- 화면 너비 600px 이하는 전체 화면, 그보다 넓으면 화면 가운데 500×600 레이어로 엽니다. 열려 있는 동안 페이지 스크롤을 잠급니다.\n- `data`는 카카오 우편번호 결과 그대로이며 `search`(도로명 주소, 없으면 자동 선택 도로명 주소)가 추가됩니다. 이 값을 /api/v1/address, /api/v1/app_link의 `search`로 쓸 수 있습니다.\n- 브라우저 뒤로가기는 처리하지 않습니다. 모바일에서 뒤로가기로 레이어를 닫아야 하면 요청사 페이지에서 `history`를 다뤄 `pc.hide()`를 호출하세요.\n- 요청사 사이트 출처(예 : `https://partner.co.kr`)가 mapping 허용 목록에 있어야 합니다. 목록에 없으면 레이어에 안내 문구만 나오고 결과를 받을 수 없습니다.\n- 오류 코드 : `KAKAO_SCRIPT_LOAD_FAILED`(카카오 스크립트 로드 실패), `INVALID_THEME`, `INVALID_SEARCH_LENGTH`\n- SDK 파일은 5분 동안 캐시됩니다. 주소는 고정이므로 SDK가 바뀌어도 요청사 HTML을 고칠 필요가 없습니다.\n","license":{"name":""},"version":"v1"},"paths":{"/api/v1/address":{"get":{"tags":["address"],"summary":"주소 정규화","description":"카카오 주소 검색 결과를 정규화한다. 카카오 응답은 1일 캐시한다.\n- REGION_ADDR(지번 주소)·ROAD_ADDR(도로명 주소)만 정상으로 본다. REGION·ROAD만 있으면 결과 없음\n- 정상 타입이 2건 이상이면 400 TOO_MANY_RESULTS (후보 목록은 /postcode 화면에서 확인)\n- **결과 없음 판단 : `mapping === null`** (200 응답)","operationId":"address_handler","parameters":[{"name":"search","in":"query","description":"검색어 (필수, 앞뒤 공백 제거 후 최대 200자). 예 : 가리내로56","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"정상·결과 없음(mapping null)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AddressResponse"}}}},"400":{"description":"INVALID_SEARCH, INVALID_SEARCH_LENGTH, TOO_MANY_RESULTS, INVALID_REQUEST(같은 파라미터 반복)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}}},"401":{"description":"UNAUTHORIZED","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}}},"429":{"description":"TOO_MANY_REQUESTS","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}}},"500":{"description":"CONFIG_ERROR(카카오 키 설정 오류), INTERNAL_ERROR","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}}},"502":{"description":"UPSTREAM_ERROR(카카오 호출 실패·타임아웃)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}}}},"security":[{"api_key":[]}]}},"/api/v1/app_link":{"get":{"tags":["app_link"],"summary":"인앱 링크","description":"주소를 정규화한 뒤 지도 앱 링크를 만든다. 응답 형식은 항상 `{ search, address_name, links }`\n- naver·kakao는 퍼센트 인코딩(공백 %20), google은 공백을 +로 인코딩한다\n- tmap은 앱 스킴 `tmap://route?goalname={주소}&goalx={경도}&goaly={위도}`(좌표 길안내)이다. 앱이 설치된 모바일에서만 열리므로 기기 판단은 호출자가 한다. 좌표가 없으면 null\n- url이 null이면 사용할 수 없는 앱이다\n- 각 앱은 { url, img }이다. img는 앱 로고(PNG) 절대 URL이며 url이 null인 앱도 담는다. app_type을 지정해도 같다\n- **결과 없음 판단 : `links === null`** (200 응답, address_name도 null)","operationId":"app_link_handler","parameters":[{"name":"search","in":"query","description":"검색어 (필수, 앞뒤 공백 제거 후 최대 200자)","required":true,"schema":{"type":"string"}},{"name":"app_type","in":"query","description":"반환받을 앱 (naver, kakao, google, tmap). 생략하거나 빈 문자열이면 전체","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"정상·결과 없음(links null)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AppLinkResponse"}}}},"400":{"description":"INVALID_SEARCH, INVALID_SEARCH_LENGTH, INVALID_APP_TYPE, TOO_MANY_RESULTS, INVALID_REQUEST","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}}},"401":{"description":"UNAUTHORIZED","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}}},"429":{"description":"TOO_MANY_REQUESTS","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}}},"500":{"description":"CONFIG_ERROR, INTERNAL_ERROR","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}}},"502":{"description":"UPSTREAM_ERROR","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}}}},"security":[{"api_key":[]}]}},"/api/v1/sgg":{"get":{"tags":["sgg"],"summary":"시군구 조회","description":"카카오를 호출하지 않고 DB(sgg)에서 시군구를 찾는다. 결과는 항상 배열이며 code 오름차순이다.\n- code : 시군구 코드(숫자 5자리)로 조회. 폐지된 코드도 deleted: true로 반환한다\n- sgg : 시군구 전체 이름(전주시 덕진구) 또는 구 이름(덕진구)과 완전 일치, 0건이면 앞부분 일치(수원시 → 수원시 장안구 등).\n 세종특별자치시는 search에 시도 이름(세종)을 넣는다. 공백 없는 입력(전주시덕진구)은 일치하지 않는다\n- **결과 없음 판단 : `results.length === 0`** (200 응답)","operationId":"sgg_handler","parameters":[{"name":"search_type","in":"query","description":"검색 유형 (필수) : code, sgg","required":true,"schema":{"type":"string"}},{"name":"search","in":"query","description":"검색어 (필수, 최대 200자). code면 숫자 5자리, sgg면 시군구 이름","required":true,"schema":{"type":"string"}},{"name":"sido","in":"query","description":"시도 (선택). search_type=sgg에서만 적용하며 약칭·옛 이름은 정식 명칭으로 바꾼다(예 : 전북 → 전북특별자치도). 알 수 없는 이름은 400 INVALID_SIDO. **search_type=code에서는 검증하지 않고 무시한다**","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"정상·결과 없음(results 빈 배열)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SggResponse"}}}},"400":{"description":"INVALID_SEARCH_TYPE, INVALID_SEARCH, INVALID_SEARCH_LENGTH, INVALID_SGG_CODE, INVALID_SIDO, INVALID_REQUEST","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}}},"401":{"description":"UNAUTHORIZED","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}}},"429":{"description":"TOO_MANY_REQUESTS","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}}},"500":{"description":"INTERNAL_ERROR","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}}}},"security":[{"api_key":[]}]}}},"components":{"schemas":{"AddressResponse":{"type":"object","description":"주소 정규화 응답","required":["search","kakao"],"properties":{"kakao":{"type":"array","items":{"type":"object"},"description":"카카오 주소 검색 documents 원본 (정상 타입이 아닌 결과도 포함)"},"mapping":{"oneOf":[{"$ref":"#/components/schemas/Mapping","description":"정규화 결과. 결과 없음(정상 타입 0건)이면 null"},{"type":"null"}]},"search":{"type":"string","description":"검색어. 검색어 (조회 원본 그대로)"}}},"AppLinkResponse":{"type":"object","description":"인앱 링크 응답. 형식은 항상 { search, address_name, links }","required":["search"],"properties":{"address_name":{"type":["string","null"],"description":"주소. 링크를 만든 정규화 주소 (/api/v1/address의 mapping.address_name과 같은 값). 결과 없음이면 null"},"links":{"oneOf":[{"$ref":"#/components/schemas/Links","description":"앱 링크. 결과 없음이면 null"},{"type":"null"}],"description":"앱 링크"},"search":{"type":"string","description":"검색어. 검색어 (조회 원본 그대로)"}}},"ErrorBody":{"type":"object","description":"v1 공통 에러 응답","required":["error"],"properties":{"error":{"$ref":"#/components/schemas/ErrorDetail"}}},"ErrorDetail":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string","description":"에러 코드 (예 : INVALID_SEARCH)"},"message":{"type":"string","description":"에러 메시지"}}},"Link":{"type":"object","description":"앱 링크 하나. url이 null이면 사용할 수 없는 앱이다","required":["img"],"properties":{"img":{"type":"string","description":"로고 주소. 절대 URL, PNG. url이 null이어도 담는다","example":"https://mapping.example.com/static/img/icon/naver.png"},"url":{"type":["string","null"],"description":"링크 주소. null이면 사용할 수 없는 앱. tmap은 앱 스킴(tmap://)이며 좌표가 없으면 null"}}},"Links":{"type":"object","description":"앱 이름을 키로 하는 링크. app_type을 지정하면 그 앱 키 하나만 담는다","properties":{"google":{"oneOf":[{"$ref":"#/components/schemas/Link"},{"type":"null"}],"description":"구글맵"},"kakao":{"oneOf":[{"$ref":"#/components/schemas/Link"},{"type":"null"}],"description":"카카오맵"},"naver":{"oneOf":[{"$ref":"#/components/schemas/Link"},{"type":"null"}],"description":"네이버 지도"},"tmap":{"oneOf":[{"$ref":"#/components/schemas/Link"},{"type":"null"}],"description":"티맵"}}},"Mapping":{"type":"object","description":"정규화 결과","properties":{"address_name":{"type":["string","null"],"description":"주소"},"code":{"type":["string","null"],"description":"시/군/구 코드"},"sgg":{"type":["string","null"],"description":"시/군/구"},"sido":{"type":["string","null"],"description":"시/도"},"x":{"type":["string","null"],"description":"경도"},"y":{"type":["string","null"],"description":"위도"}}},"SggResponse":{"type":"object","description":"시군구 조회 응답","required":["search_type","search","results"],"properties":{"results":{"type":"array","items":{"$ref":"#/components/schemas/SggResult"},"description":"조회 결과"},"search":{"type":"string","description":"검색어"},"search_type":{"type":"string","description":"검색 유형"},"sido":{"type":["string","null"],"description":"시/도. 적용한 시도 정식 명칭. search_type=sgg에서 sido를 주지 않았거나 search_type=code이면 null"}}},"SggResult":{"type":"object","required":["code","sido","deleted"],"properties":{"code":{"type":"string","description":"시/군/구 코드"},"deleted":{"type":"boolean","description":"폐지 여부"},"sgg":{"type":["string","null"],"description":"시/군/구. 세종특별자치시는 null"},"sido":{"type":"string","description":"시/도"}}}},"securitySchemes":{"api_key":{"type":"apiKey","in":"header","name":"X-Api-Key","description":"발급받은 API 키 (UUID)"}}},"tags":[{"name":"address","description":"주소 정규화"},{"name":"app_link","description":"인앱 링크"},{"name":"sgg","description":"시군구 조회"}]}