Skip to content

API User Me

IENFI edited this page Feb 4, 2026 · 1 revision

GET /v1/me

로그인된 사용자 본인의 프로필 정보 + 마이페이지 통계(stats) 를 조회한다.


Request

Endpoint

GET /v1/me

인증

  • Access Token: ⭕️ 필요
    • Authorization: Bearer <accessToken>

Response

  • monthlyCounts는 최근 12달 통계를 반환한다.

성공 응답 (200)

{
  success: true,
  data: {
    userId: string,
    user: {
      id: string,
      email: string,
      nickname: string,
      provider: 'google' | 'kakao'
      providerId: string,
      profileImageId: string | null,
      settings: Record<string, any>,
      createdAt: string,
      deletedAt: string | null
    },
    stats: {
      recentTags: ["맛집", "여행"],
      frequentTags: ["산책", "코딩"],
      recentEmotions: ["기쁨", "설렘"],
      frequentEmotions: ["평온"],
      totalPosts: number,
      totalImages: number,
      frequentLocations: [
		    {
			    placeName: string,
			    count: number,
		    }  
      ],
      monthlyCounts: [
		    {
			    month: "YYYY-MM",
			    count: number,
		    }
      ]
    }
  },
  meta: {}
  error: null
}

Error

아래 경우를 제외하면 대부분 400, 500 (Internal Server) 에러를 반환한다.

오류 상황 Status Code Message
Access Token / userId 인가 오류 401 UNAUTHORIZED Access token is required.
인증 실패 401 UNAUTHORIZED Unauthorized (UserGuard 기본 메시지)

Notes

  • monthlyCounts는 "YYYY-MM" 포맷으로 월 단위를 표현하며, 최근 12개월 데이터를 반환한다.
  • 본 API는 /me 기반(Self-service) API로, userId를 직접 입력받지 않고 JWT 기반으로 사용자 식별을 수행한다.

Clone this wiki locally