POST
/
v1
/
topics
/
{topicKey}
/
subscribers
curl --request POST \
  --url https://api.novu.co/v1/topics/{topicKey}/subscribers \
  --header 'Authorization: <api-key>' \
  --header 'Content-Type: application/json' \
  --data '{
  "subscribers": [
    "<string>"
  ]
}'
{
  "succeeded": [
    "<string>"
  ],
  "failed": {
    "notFound": [
      "<string>"
    ]
  }
}

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

E.g ApiKey 18d2e625f05d80e

Authorizations

Authorization
string
header
required

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

Path Parameters

topicKey
string
required

The topic key

Body

application/json
subscribers
string[]
required

List of subscriber identifiers that will be associated to the topic

Response

200
application/json
succeeded
string[]
required

List of successfully assigned subscriber IDs

failed
object

Details about failed assignments