Subscribers

Archive a notification

Changed on

Archive a specific in-app (inbox) notification by its unique identifier notificationId.

patch/v2/subscribers/{subscriberId}/notifications/{notificationId}/archive

Request

  • Base URL
    https://api.novu.co
  • Auth
    API key in header Authorization

Path parameters

subscriberIdstring required

The identifier of the subscriber

notificationIdstring required

The identifier of the notification

Query parameters

contextKeysstring[]

Context keys for filtering

Headers

idempotency-keystring

A header for idempotency purposes

Response

OK

idstring required

Unique identifier of the notification

transactionIdstring required

Transaction identifier of the notification

subjectstring

Subject of the notification

bodystring required

Body content of the notification

isReadboolean required

Whether the notification has been read

isSeenboolean required

Whether the notification has been seen

isArchivedboolean required

Whether the notification has been archived

isSnoozedboolean required

Whether the notification is snoozed

snoozedUntilstring nullable

ISO timestamp when the notification will be unsnoozed

deliveredAtstring[]

Timestamps when the notification was delivered

createdAtstring required

ISO timestamp when the notification was created

readAtstring nullable

ISO timestamp when the notification was read

firstSeenAtstring nullable

ISO timestamp when the notification was first seen

archivedAtstring nullable

ISO timestamp when the notification was archived

avatarstring

Avatar URL for the notification

channelType'in_app' | 'email' | 'sms' | 'chat' | 'push' | 'tool' required
tagsstring[]

Tags associated with the notification

dataobject

Custom data payload of the notification

severity'high' | 'medium' | 'low' | 'none' required

Override the severity of the workflow

Changes

    • warning

      added the new tool enum value to the response property for the response status