Marks all the subscriber messages as read, unread, seen or unseen. Optionally you can pass feed id (or array) to mark messages of a particular feed.

POST/v1/subscribers/{subscriberId}/messages/mark-all

Authorization

Authorization<token>

API key authentication. Allowed headers-- "Authorization: ApiKey <api_key>".

In: header

Request Body

application/jsonRequired
feedIdentifierstring | array<string>

Optional feed identifier or array of feed identifiers

markAsRequiredstring

Mark all subscriber messages as read, unread, seen or unseen

Value in: "read" | "seen" | "unread" | "unseen"

Path Parameters

subscriberIdRequiredstring

Header Parameters

idempotency-keystring

A header for idempotency purposes

curl -X POST "https://api.novu.co/v1/subscribers/<string>/messages/mark-all" \
  -H "idempotency-key: <string>" \
  -H "Authorization: <token>" \
  -H "Content-Type: application/json" \
  -d '{
    "feedIdentifier": "string",
    "markAs": "read"
  }'

0