Subscribers
Retrieve subscriber subscriptions
Retrieve subscriber's topic subscriptions by its unique key identifier subscriberId. Checkout all available filters in the query section.
get/v2/subscribers/{subscriberId}/subscriptions
Path parameters
subscriberIdstring required
The identifier of the subscriber
Query parameters
afterstring
Cursor for pagination indicating the starting point after which to fetch results.
beforestring
Cursor for pagination indicating the ending point before which to fetch results.
limitnumber
Limit the number of items to return (max 100)
orderDirection'ASC' | 'DESC'
Direction of sorting
orderBystring
Field to order by
includeCursorboolean
Include cursor item in response
keystring
Filter by topic key
contextKeysstring[]
Filter by exact context keys, order insensitive (format: "type:id")
Headers
idempotency-keystring
A header for idempotency purposes
Response
OK
Example response
{
"data": [
{
"_id": "64da692e9a94fb2e6449ad08",
"identifier": "tk=product-updates:si=subscriber-123",
"createdAt": "2021-01-01T00:00:00.000Z",
"topic": {
"_id": "64da692e9a94fb2e6449ad06",
"key": "product-updates",
"name": "Product Updates",
"createdAt": "2023-08-15T00:00:00.000Z",
"updatedAt": "2023-08-15T00:00:00.000Z"
},
"subscriber": {
"_id": "64da692e9a94fb2e6449ad07",
"subscriberId": "user-123",
"avatar": "https://example.com/avatar.png",
"firstName": "John",
"lastName": "Doe",
"email": "john@example.com"
},
"contextKeys": [
"tenant:org-a",
"project:proj-123"
]
}
]
}