curl --request GET \
--url https://api.novu.co/v1/topics/{topicKey}/subscribers/{externalSubscriberId} \
--header 'Authorization: <api-key>'
{
"_organizationId": "org_123456789",
"_environmentId": "env_123456789",
"_subscriberId": "sub_123456789",
"_topicId": "topic_123456789",
"topicKey": "my_topic_key",
"externalSubscriberId": "external_subscriber_123"
}
Check if a subscriber belongs to a certain topic
curl --request GET \
--url https://api.novu.co/v1/topics/{topicKey}/subscribers/{externalSubscriberId} \
--header 'Authorization: <api-key>'
{
"_organizationId": "org_123456789",
"_environmentId": "env_123456789",
"_subscriberId": "sub_123456789",
"_topicId": "topic_123456789",
"topicKey": "my_topic_key",
"externalSubscriberId": "external_subscriber_123"
}
Enter your API key in the Authorization
field like the example shown below:
E.g ApiKey 18d2e625f05d80e
API key authentication. Allowed headers-- "Authorization: ApiKey <api_key>".
The external subscriber id
The topic key
The response is of type object
.
Was this page helpful?