본문으로 건너뛰기
WCMS 2 문서

회원 API

회원 영역의 엔드포인트

메서드경로설명인증
GET/api/v1/members/{memberId}단건 조회관리자 세션 · MEMBER_READ
POST/api/v1/members/search검색관리자 세션 · CSRF · MEMBER_READ
GET/api/v1/members/{memberId}/exists아이디 중복 확인공개
POST/api/v1/members/{memberId}/privacy개인정보 원문 조회관리자 세션 · CSRF · MEMBER_PRIVACY
PUT/api/v1/members/{memberId}/lock회원 잠금 해제관리자 세션 · CSRF · MEMBER_WRITE
PUT/api/v1/members/{memberId}/status회원 상태 변경관리자 세션 · CSRF · MEMBER_WRITE
PUT/api/v1/members/{memberId}/password임시 비밀번호 발급관리자 세션 · CSRF · MEMBER_WRITE
POST/api/v1/members/{memberId}/withdrawal탈퇴 처리관리자 세션 · CSRF · MEMBER_WRITE
POST/api/v1/roles역할 등록관리자 세션 · CSRF · ROLE_WRITE
PUT/api/v1/role-authorities/{roleCode}역할 권한 변경관리자 세션 · CSRF · ROLE_WRITE
POST/api/v1/terms약관 등록관리자 세션 · CSRF · TERMS_WRITE
PUT/api/v1/terms/{termsSn}약관 수정관리자 세션 · CSRF · TERMS_WRITE

단건 조회

GET /api/v1/members/{memberId}

  • 인증: 관리자 세션 · MEMBER_READ

응답: ApiResponse<MemberDetailResponse>

curl -b cookies.txt \
  'https://your-site.example/api/v1/members/{memberId}'

관리자 세션 쿠키(cookies.txt)를 보냅니다. 쓰기 요청은 CSRF 토큰도 함께 보냅니다.

검색

POST /api/v1/members/search

  • 인증: 관리자 세션 · CSRF · MEMBER_READ

응답: ApiResponse<PageResult<MemberListResponse>>

curl -X POST -b cookies.txt -H 'X-CSRF-TOKEN: <csrf-token>' -H 'Content-Type: application/json' -d '{}' \
  'https://your-site.example/api/v1/members/search'

관리자 세션 쿠키(cookies.txt)를 보냅니다. 쓰기 요청은 CSRF 토큰도 함께 보냅니다.

아이디 중복 확인

GET /api/v1/members/{memberId}/exists

  • 인증: 공개

응답: ApiResponse<MemberExistsResponse>

curl \
  'https://your-site.example/api/v1/members/{memberId}/exists'

공개·사용자 API입니다. 관리자 세션 쿠키를 보내지 않습니다.

개인정보 원문 조회

POST /api/v1/members/{memberId}/privacy

  • 인증: 관리자 세션 · CSRF · MEMBER_PRIVACY

응답: ApiResponse<MemberPrivacyResponse>

사유와 비밀번호 재확인이 필요합니다.

curl -X POST -b cookies.txt -H 'X-CSRF-TOKEN: <csrf-token>' -H 'Content-Type: application/json' -d '{"inquiryReasonCode":"MEMBER_INQUIRY","currentPassword":"<current-password>"}' \
  'https://your-site.example/api/v1/members/{memberId}/privacy'

관리자 세션 쿠키(cookies.txt)를 보냅니다. 쓰기 요청은 CSRF 토큰도 함께 보냅니다.

회원 잠금 해제

PUT /api/v1/members/{memberId}/lock

  • 인증: 관리자 세션 · CSRF · MEMBER_WRITE

응답: ApiResponse<Void>

로그인 실패로 잠긴 회원을 풀어 줍니다. 본문에 잠금여부 N과 사유를 넣습니다.

curl -X PUT -b cookies.txt -H 'X-CSRF-TOKEN: <csrf-token>' -H 'Content-Type: application/json' -d '{"lockingYn":"N","changeReason":"사유"}' \
  'https://your-site.example/api/v1/members/{memberId}/lock'

관리자 세션 쿠키(cookies.txt)를 보냅니다. 쓰기 요청은 CSRF 토큰도 함께 보냅니다.

회원 상태 변경

PUT /api/v1/members/{memberId}/status

  • 인증: 관리자 세션 · CSRF · MEMBER_WRITE

응답: ApiResponse<Void>

curl -X PUT -b cookies.txt -H 'X-CSRF-TOKEN: <csrf-token>' -H 'Content-Type: application/json' -d '{"memberStatusCode":"SUSPENDED","changeReason":"사유"}' \
  'https://your-site.example/api/v1/members/{memberId}/status'

관리자 세션 쿠키(cookies.txt)를 보냅니다. 쓰기 요청은 CSRF 토큰도 함께 보냅니다.

임시 비밀번호 발급

PUT /api/v1/members/{memberId}/password

  • 인증: 관리자 세션 · CSRF · MEMBER_WRITE

응답: ApiResponse<TemporaryPasswordResponse>

본문(JSON)에 changeReason(1~300자)과 submissionToken(소문자 16진수 32자)을 넣습니다. 토큰이 없거나 형식이 틀리면 400, 같은 토큰을 다시 쓰면 409입니다. 응답은 Cache-Control: no-store이며 임시 비밀번호를 이 응답에서 한 번만 보여 줍니다.

curl -X PUT -b cookies.txt -H 'X-CSRF-TOKEN: <csrf-token>' -H 'Content-Type: application/json' -d '{"changeReason":"사유","submissionToken":"<submission-token>"}' \
  'https://your-site.example/api/v1/members/{memberId}/password'

관리자 세션 쿠키(cookies.txt)를 보냅니다. 쓰기 요청은 CSRF 토큰도 함께 보냅니다.

탈퇴 처리

POST /api/v1/members/{memberId}/withdrawal

  • 인증: 관리자 세션 · CSRF · MEMBER_WRITE

응답: ApiResponse<Void>

curl -X POST -b cookies.txt -H 'X-CSRF-TOKEN: <csrf-token>' -H 'Content-Type: application/json' -d '{"changeReason":"사유"}' \
  'https://your-site.example/api/v1/members/{memberId}/withdrawal'

관리자 세션 쿠키(cookies.txt)를 보냅니다. 쓰기 요청은 CSRF 토큰도 함께 보냅니다.

역할 등록

POST /api/v1/roles

  • 인증: 관리자 세션 · CSRF · ROLE_WRITE

응답: ApiResponse<Void>

curl -X POST -b cookies.txt -H 'X-CSRF-TOKEN: <csrf-token>' -H 'Content-Type: application/json' -d '{"roleCode":"EDITOR","roleName":"편집자","useYn":"Y"}' \
  'https://your-site.example/api/v1/roles'

관리자 세션 쿠키(cookies.txt)를 보냅니다. 쓰기 요청은 CSRF 토큰도 함께 보냅니다.

역할 권한 변경

PUT /api/v1/role-authorities/{roleCode}

  • 인증: 관리자 세션 · CSRF · ROLE_WRITE

응답: ApiResponse<Void>

curl -X PUT -b cookies.txt -H 'X-CSRF-TOKEN: <csrf-token>' -H 'Content-Type: application/json' -d '{"authorityCodeList":["BOARD_READ","BOARD_WRITE"],"changeReason":"사유"}' \
  'https://your-site.example/api/v1/role-authorities/{roleCode}'

관리자 세션 쿠키(cookies.txt)를 보냅니다. 쓰기 요청은 CSRF 토큰도 함께 보냅니다.

약관 등록

POST /api/v1/terms

  • 인증: 관리자 세션 · CSRF · TERMS_WRITE

응답: ApiResponse<TermsCreateResponse>

curl -X POST -b cookies.txt -H 'X-CSRF-TOKEN: <csrf-token>' -H 'Content-Type: application/json' -d '{"languageSn":1,"termsSectionCode":"SERVICE","termsTitle":"이용약관","termsContent":"<p>약관 본문</p>","enforcementDateTime":"2026-12-15T00:00:00","submissionToken":"<submission-token>"}' \
  'https://your-site.example/api/v1/terms'

관리자 세션 쿠키(cookies.txt)를 보냅니다. 쓰기 요청은 CSRF 토큰도 함께 보냅니다.

약관 수정

PUT /api/v1/terms/{termsSn}

  • 인증: 관리자 세션 · CSRF · TERMS_WRITE

응답: ApiResponse<Void>

curl -X PUT -b cookies.txt -H 'X-CSRF-TOKEN: <csrf-token>' -H 'Content-Type: application/json' -d '{"termsSectionCode":"SERVICE","termsTitle":"이용약관","termsContent":"<p>약관 본문</p>","enforcementDateTime":"2026-12-15T00:00:00"}' \
  'https://your-site.example/api/v1/terms/{termsSn}'

관리자 세션 쿠키(cookies.txt)를 보냅니다. 쓰기 요청은 CSRF 토큰도 함께 보냅니다.

이 페이지