Skip to content

通知 API

管理用户通知偏好和通知列表。

列出通知

http
GET /api/v1/notifications
Authorization: Bearer <token>

可选参数:unread_only=truepagepage_size

标记已读

http
POST /api/v1/notifications/{notification_id}/read

全部标记已读

http
POST /api/v1/notifications/read-all

通知类型

类型说明
gate_pending门禁等待审核
execution_completed执行完成
execution_failed执行失败
budget_alert预算告警
invitation_received收到邀请
member_added成员加入

通知偏好

http
PUT /api/v1/notifications/preferences
Content-Type: application/json

{
  "email_enabled": true,
  "desktop_enabled": true,
  "types": ["gate_pending", "execution_failed", "budget_alert"]
}

Forgexa — AI 软件工厂