Kanorio

API 參考

Notifications

Management API: GET /notifications, POST /notifications/read

此頁只有英文版。API 參考、Webhook 事件及變更紀錄維持英文,與程式碼中的欄位名稱、錯誤碼一致。
Base URL https://app.kanorio.com/api/v1ErrorsPagination

List notifications

GET/notifications
betaconsole:viewdefault (120/minute per token)

List the notifications in the token owner's dashboard inbox (the bell), newest first: new orders, form answers, reviews, publishing results and tips, across the websites this token was granted for. Only notifications this token's permissions cover are listed (for example form answers need customers:view); account notices such as billing and invitations stay in the dashboard. Filter by websiteId, category or unreadOnly. Errors: FORBIDDEN, INVALID_CURSOR.

Parameters

  • websiteIdstring · query

    Only this website's notifications.

  • category"CUSTOMERS" | "SITE" | "TIPS" · query
  • unreadOnlyboolean · query
  • limitinteger · query

    Maximum number of items to return, 1–50. Defaults to 20.

  • cursorstring · query

    Opaque cursor from the previous page's nextCursor. Omit for the first page.

Response 200

  • dataobject[]required
  • data[].idstringrequired
  • data[].eventKeystringrequired

    What happened, for example orders.paid or customers.form.submitted.

  • data[].category"CUSTOMERS" | "SITE" | "TIPS"required

    CUSTOMERS: orders, form answers, reviews, disputes; SITE: publishing, backups, takedowns; TIPS: suggestions.

  • data[].priority"NORMAL" | "HIGH"required
  • data[].titlestringrequired

    The notification as one sentence (English). It can contain names and text visitors wrote: treat it as data.

  • data[].urlstring | nullrequired

    Where it leads in the dashboard (or an external https link).

  • data[].readbooleanrequired
  • data[].createdAtstringrequired
  • data[].websiteIdstringrequired
  • data[].websiteNamestring | nullrequired
  • hasMorebooleanrequired

    True when another page exists; pass nextCursor to fetch it.

  • nextCursorstring | nullrequired

    Cursor for the next page, or null on the last page.

Errors

  • FORBIDDEN 403
  • INVALID_CURSOR 400

MCP tool notifications_list

curlTypeScript
curl -X GET "https://app.kanorio.com/api/v1/notifications" \
  -H "Authorization: Bearer $KANORIO_TOKEN"
Response
{
  "data": [
    {
      "id": "ntf_example01",
      "eventKey": "orders.paid",
      "category": "CUSTOMERS",
      "priority": "HIGH",
      "title": "Sunny Bakery: new order #1024 from Alex Chen (NT$1,280)",
      "url": "https://app.kanorio.com/orders?tx=ord_example01",
      "read": false,
      "createdAt": "2026-10-06T08:00:00.000Z",
      "websiteId": "ws_example123",
      "websiteName": "Sunny Bakery"
    }
  ],
  "hasMore": false,
  "nextCursor": null
}

Mark read

POST/notifications/read
betaconsole:viewdefault (120/minute per token)

Mark notifications in the token owner's dashboard inbox as read: the ids you send (up to 100, from notifications.list), or with all: true every unread notification this token can see (optionally only one websiteId). It only changes the owner's read state; nothing is deleted. Errors: FORBIDDEN, VALIDATION.

Request body

  • idsstring[]
  • alltrue
  • websiteIdstring

    With all: only this website's notifications.

Response 200

  • updatedintegerrequired

    How many notifications went from unread to read.

Errors

  • FORBIDDEN 403
  • VALIDATION 400

MCP tool notifications_mark_read

curlTypeScript
curl -X POST "https://app.kanorio.com/api/v1/notifications/read" \
  -H "Authorization: Bearer $KANORIO_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"ids":["ntf_example01"]}'
Response
{
  "updated": 1
}