- list - Retrieve subscriber subscriptions
Retrieve subscriber's topic subscriptions by its unique key identifier subscriberId. Checkout all available filters in the query section.
from novu_py import Novu
with Novu(
secret_key="YOUR_SECRET_KEY_HERE",
) as novu:
res = novu.subscribers.topics.list(request={
"subscriber_id": "<id>",
"limit": 10,
"context_keys": [
"tenant:org-123",
"region:us-east-1",
],
})
# Handle response
print(res)| Parameter | Type | Required | Description |
|---|---|---|---|
request |
models.SubscribersControllerListSubscriberTopicsRequest | ✔️ | The request object to use for the request. |
retries |
Optional[utils.RetryConfig] | ➖ | Configuration to override the default retry behavior of the client. |
models.SubscribersControllerListSubscriberTopicsResponse
| Error Type | Status Code | Content Type |
|---|---|---|
| models.ErrorDto | 414 | application/json |
| models.ErrorDto | 400, 401, 403, 404, 405, 409, 413, 415 | application/json |
| models.ValidationErrorDto | 422 | application/json |
| models.ErrorDto | 500 | application/json |
| models.APIError | 4XX, 5XX | */* |