通知API

通知の一覧取得と既読操作を行うAPIエンドポイントです。

GET /api/v1/notifications

自分宛ての通知一覧を取得します。

パラメータ説明
unread_onlyboolean未読のみ取得
typestring通知タイプで絞り込み
// レスポンス
{
  "data": [
    {
      "id": "notif_001",
      "type": "deadline_reminder",
      "title": "納期リマインド: C-001 原画",
      "body": "カットC-001の原画工程の納期が明日です",
      "read": false,
      "created_at": "2026-03-21T09:00:00Z",
      "link": "/projects/prj_abc123/cuts/cut_001"
    }
  ],
  "unread_count": 5
}

PATCH /api/v1/notifications/[id]/read

通知を既読にします。

POST /api/v1/notifications/read-all

すべての未読通知を一括で既読にします。