- Get - Check topic subscriber
Check if a subscriber belongs to a certain topic
using Novu;
using Novu.Models.Components;
var sdk = new NovuSDK(secretKey: "YOUR_SECRET_KEY_HERE");
var res = await sdk.TopicsSubscribers.GetAsync(
externalSubscriberId: "<id>",
topicKey: "<value>"
);
// handle response| Parameter | Type | Required | Description |
|---|---|---|---|
ExternalSubscriberId |
string | ✔️ | The external subscriber id |
TopicKey |
string | ✔️ | The topic key |
IdempotencyKey |
string | ➖ | A header for idempotency purposes |
TopicsV1ControllerGetTopicSubscriberResponse
| Error Type | Status Code | Content Type |
|---|---|---|
| Novu.Models.Errors.ErrorDto | 414 | application/json |
| Novu.Models.Errors.ErrorDto | 400, 401, 403, 404, 405, 409, 413, 415 | application/json |
| Novu.Models.Errors.ValidationErrorDto | 422 | application/json |
| Novu.Models.Errors.ErrorDto | 500 | application/json |
| Novu.Models.Errors.APIException | 4XX, 5XX | */* |