Check topic subscriber

Check if a subscriber belongs to a certain topic

GET/v1/topics/{topicKey}/subscribers/{externalSubscriberId}

Authorization

Authorization<token>

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

In: header

Path Parameters

externalSubscriberIdRequiredstring

The external subscriber id

topicKeyRequiredstring

The topic key

Header Parameters

idempotency-keystring

A header for idempotency purposes

curl -X GET "https://api.novu.co/v1/topics/<string>/subscribers/<string>" \
  -H "idempotency-key: <string>" \
  -H "Authorization: <token>"

{
  "_organizationId": "org_123456789",
  "_environmentId": "env_123456789",
  "_subscriberId": "sub_123456789",
  "_topicId": "topic_123456789",
  "topicKey": "my_topic_key",
  "externalSubscriberId": "external_subscriber_123"
}