Delete topic by key

DELETE
/v2/topics/{topicKey}

Authorization

Authorization<token>

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

In: header

Path Parameters

topicKeyRequiredstring

The key identifier of the topic

Header Parameters

idempotency-keystring

A header for idempotency purposes

Response Body

Topic deleted successfully

acknowledgedRequiredboolean

Indicates if the operation was acknowledged

export interface Response {
  /**
   * Indicates if the operation was acknowledged
   */
  acknowledged: boolean;
}
 
curl -X DELETE "https://api.novu.co/v2/topics/string" \
  -H "idempotency-key: string" \
  -H "Authorization: <token>"
{
  "acknowledged": true
}