Delete topic subscriptions
Delete topic subscriptions using the Novu REST API. Requires your environment secret key in the Authorization header.
Authorizations
API key authentication. Allowed headers-- "Authorization: ApiKey <novu_secret_key>".
Headers
A header for idempotency purposes
Path Parameters
The key identifier of the topic
Body
List of subscriber identifiers to unsubscribe from the topic (max: 100). @deprecated Use the "subscriptions" property instead.
["subscriberId1", "subscriberId2"]List of subscriptions to unsubscribe from the topic (max: 100). Can be either a string array of subscriber IDs or an array of objects with identifier and/or subscriberId. If only subscriberId is provided, all subscriptions for that subscriber within the topic will be deleted.
[
{
"identifier": "subscriber-123-subscription-a",
"subscriberId": "subscriber-123"
},
{ "subscriberId": "subscriber-456" },
{
"identifier": "subscriber-789-subscription-b"
}
]