Delete topic

Delete a topic by its topic key if it has no subscribers

DELETE/v1/topics/{topicKey}

Authorization

Authorization<token>

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

In: header

Path Parameters

topicKeyRequiredstring

The topic key

Header Parameters

idempotency-keystring

A header for idempotency purposes

curl -X DELETE "https://api.novu.co/v1/topics/<string>" \
  -H "idempotency-key: <string>" \
  -H "Authorization: <token>"

The topic has been deleted correctly