Retrieve subscriber subscriptions
Retrieve subscriber's topic subscriptions by its unique key identifier subscriberId. Checkout all available filters in the query section.
Path parameters
The identifier of the subscriber
Query parameters
Cursor for pagination indicating the starting point after which to fetch results.
Cursor for pagination indicating the ending point before which to fetch results.
Limit the number of items to return (max 100)
Direction of sorting
Field to order by
Include cursor item in response
Filter by topic key
Filter by exact context keys, order insensitive (format: "type:id")
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",
"data": {
"category": "product",
"priority": 1
},
"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"
],
"preferences": [
{
"subscriptionId": "64f5e95d3d7946d80d0cb679",
"workflow": {
"id": "64a1b2c3d4e5f6g7h8i9j0k1",
"identifier": "welcome-email",
"name": "Welcome Email Workflow",
"tags": [
"user-onboarding",
"email"
],
"data": {
"category": "onboarding",
"priority": "high"
}
},
"enabled": true,
"condition": {
"and": [
{
"===": [
{
"var": "payload.tier"
},
"premium"
]
}
]
}
}
]
}
]
}Changes
Changed in 2 of the 13 revisions of this API.2
- ○
added the optional property
///////to the response with the statusresponse-optional-property-added
- ○
- ○
added the optional property
//to the response with the statusresponse-optional-property-added
- ○