Auth

회원가입 최종 제출

이메일 인증 완료 후 로컬 계정을 생성하고 토큰을 발급한다. 인증 미완료 시 400, 이메일 중복 시 409. 탈퇴 후 30일 이내(휴면) 이메일이면 가입 대신 409(AUTH-014)로 로그인을 안내한다.

post/api/v1/auth/signup

Request

  • Base URL: https://api.chaeso-zip.com
  • URL: https://api.chaeso-zip.com/api/v1/auth/signup
  • Auth: none declared

Request body

emailstring email required

이메일(사전 인증 완료 필요)

passwordstring required

비밀번호(8~64자, 영·숫자·특수문자 각 1자 이상)

nicknamestring required

닉네임(이름)

companyNamestring required

회사명(필수, 50자 이하)

occupation'DEVELOPMENT' | 'DESIGN' | 'MARKETING' | 'PLANNING' | 'SALES' | 'DATA' | 'MANAGEMENT' | 'ETC'

직무 대분류(선택)

termsAgreedboolean required

필수 약관 동의 여부

marketingAgreedboolean

마케팅 수신 동의 여부(선택)

Example request

{
  "email": "user@chaeso.zip",
  "password": "P@ssw0rd!",
  "nickname": "채소러버",
  "companyName": "채소컴퍼니",
  "occupation": "DEVELOPMENT",
  "termsAgreed": true
}

Response

가입 성공, 토큰 발급

successboolean required

요청 성공 여부

codestring nullable required

성공 안내 코드. 안내할 것이 없으면 null

Example response

{
  "success": true,
  "data": {
    "accessToken": "eyJhbGciOiJIUzI1NiJ9...",
    "refreshToken": "eyJhbGciOiJIUzI1NiJ9...",
    "accessTokenExpiresIn": 1800,
    "refreshTokenExpiresIn": 1209600
  },
  "error": {
    "code": "C-001",
    "message": "입력값이 올바르지 않습니다.",
    "fieldErrors": [
      {
        "field": "name",
        "reason": "이름은 필수입니다."
      }
    ]
  },
  "code": "GOOGLE_ACCOUNT_LINKED"
}

Changes

No recorded changes to this operation across all 1 revision of this API.