Topic creation

Create a topic

POST/v1/topics

Authorization

Authorization<token>

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

In: header

Request Body

application/jsonRequired
keyRequiredstring

User defined custom key and provided by the user that will be an unique identifier for the Topic created.

nameRequiredstring

User defined custom name and provided by the user that will name the Topic created.

Header Parameters

idempotency-keystring

A header for idempotency purposes

curl -X POST "https://api.novu.co/v1/topics" \
  -H "idempotency-key: <string>" \
  -H "Authorization: <token>" \
  -H "Content-Type: application/json" \
  -d '{
    "key": "string",
    "name": "string"
  }'

Created

{
  "_id": "string",
  "key": "string"
}