POST
/
v1
/
topics
curl --request POST \
  --url https://api.novu.co/v1/topics \
  --header 'Authorization: <api-key>' \
  --header 'Content-Type: application/json' \
  --data '{
  "key": "<string>",
  "name": "<string>"
}'
{
  "data": {
    "_id": "<string>",
    "key": "<string>"
  }
}

Enter your API key in the Authorization field like the example shown below:

E.g ApiKey 18d2e625f05d80e

Authorizations

Authorization
string
headerrequired

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

Body

application/json
key
string
required

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

name
string
required

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

Response

201 - application/json
data
object