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

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

E.g ApiKey 18d2e625f05d80e

This API marks a single message of one subscriber as read, unread, seen, unseen. This API requires messageId to be passed.

Authorizations

Authorization
string
headerrequired

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

Path Parameters

subscriberId
string
required

Body

application/json
messageId
required
markAs
enum<string>
required
Available options:
read,
seen,
unread,
unseen

Response

201 - application/json

The response is of type object[].