Create a topic
Creates a new topic if it does not exist, or updates an existing topic if it already exists. Use ?failIfExists=true to prevent updates.
Authorizations
API key authentication. Allowed headers-- "Authorization: ApiKey <novu_secret_key>".
Headers
A header for idempotency purposes
Query Parameters
If true, the request will fail if a topic with the same key already exists
Body
The unique key identifier for the topic. The key must contain only alphanumeric characters (a-z, A-Z, 0-9), hyphens (-), underscores (_), colons (:), or be a valid email address.
1 - 100"task:12345"
The display name for the topic
100"Task Title"
Response
OK
The identifier of the topic
"64da692e9a94fb2e6449ad06"
The unique key of the topic
"product-updates"
The name of the topic
"Product Updates"
The date the topic was created
"2023-08-15T00:00:00.000Z"
The date the topic was last updated
"2023-08-15T00:00:00.000Z"