Glowb Dev Docs
Main API알림 API

GET /ai/notification/unread

읽지 않은 알림 여부 확인

읽지 않은 알림 여부 확인

읽지 않은 알림이 있는지 확인합니다. 앱에서 알림 배지 표시 여부를 결정할 때 사용합니다.

항목
메서드GET
경로/ai/notification/unread
인증필요

요청

GET /ai/notification/unread HTTP/1.1
Host: api.glowb.com
Authorization: Bearer eyJhbGciOiJIUzI1NiIs...
curl "https://api.glowb.com/ai/notification/unread" \
  -H "Authorization: Bearer {access_token}"
const response = await fetch('/ai/notification/unread', {
  headers: {
    'Authorization': `Bearer ${accessToken}`
  }
});
const hasUnread = await response.json();

// 배지 표시 예시
if (hasUnread) {
  showNotificationBadge();
}

응답

성공 응답 (200 OK)

true
설명
true읽지 않은 알림이 있음
false모든 알림을 읽음

API 테스트

On this page