POST
/
v1
/
subscribers
/
{subscriberId}
/
messages
/
mark-all
curl --request POST \
  --url https://api.novu.co/v1/subscribers/{subscriberId}/messages/mark-all \
  --header 'Authorization: <api-key>' \
  --header 'Content-Type: application/json' \
  --data '{
  "feedIdentifier": "<string>",
  "markAs": "read"
}'
123

Enter your API key in the Authorization field like the example shown below:

E.g ApiKey 18d2e625f05d80e

Marks all messages of one subscriber as read, unread, seen, unseen. Optionally, single feedIdentifier or array of feedIdentifiers can be passed to mark messages of particular feeds.

Authorizations

Authorization
string
headerrequired

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

Path Parameters

subscriberId
string
required

Body

application/json
feedIdentifier

Optional feed identifier or array of feed identifiers

markAs
enum<string>
required

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

Available options:
read,
seen,
unread,
unseen

Response

201 - application/json

The response is of type number.