Repository navigation
API User Me
IENFI edited this page Feb 4, 2026
·
1 revision
로그인된 사용자 본인의 프로필 정보 + 마이페이지 통계(stats) 를 조회한다.
GET /v1/me
- Access Token: ⭕️ 필요
Authorization: Bearer <accessToken>
-
monthlyCounts는 최근 12달 통계를 반환한다.
{
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
}
아래 경우를 제외하면 대부분 400, 500 (Internal Server) 에러를 반환한다.
| 오류 상황 | Status Code | Message |
|---|---|---|
| Access Token / userId 인가 오류 | 401 UNAUTHORIZED | Access token is required. |
| 인증 실패 | 401 UNAUTHORIZED | Unauthorized (UserGuard 기본 메시지) |
-
monthlyCounts는"YYYY-MM"포맷으로 월 단위를 표현하며, 최근 12개월 데이터를 반환한다. - 본 API는
/me기반(Self-service) API로, userId를 직접 입력받지 않고 JWT 기반으로 사용자 식별을 수행한다.
- 📅 프로젝트 주간 일정
- 🦉 팀 문화
- 👤 팀원 소개
- 🍀 서비스 기획서
- 🔔 팀 컨벤션
- 🖼️ 와이어프레임 & 디자인
- 🧱개인정보보호법 관련 트러블슈팅
- 📕 회의록
- 1️⃣ 4주차 데모 시나리오
- 2️⃣ 5주차 데모 시나리오
- 3️⃣ 6주차 데모 시나리오
- 🪧 기술 스택 선정
- 🎼 API 명세(API Spec)
- 🚦 ADR
- 🛸 백엔드 배포
- 🔌 WebSocket (실시간 협업)