List notifications
curl --request GET \
--url https://api.apostra.com/api/v2/notifications \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.apostra.com/api/v2/notifications"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.apostra.com/api/v2/notifications', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"notifications": [
{
"id": "<string>",
"type": "storefront.session_daily_summary",
"status": "success",
"read": true,
"acknowledged": true,
"messagePreview": "<string>",
"actionUrl": "<string>",
"createdAt": "2023-11-07T05:31:56Z"
}
],
"totalCount": 4503599627370495,
"unreadCount": 4503599627370495,
"hasMore": true
}{
"data": null,
"error": {
"code": "<string>",
"message": "<string>",
"field": "<string>",
"details": {}
}
}{
"data": null,
"error": {
"code": "<string>",
"message": "<string>",
"field": "<string>",
"details": {}
}
}{
"data": null,
"error": {
"code": "<string>",
"message": "<string>",
"field": "<string>",
"details": {}
}
}Notifications
List notifications
List notifications for the authenticated user, newest first, with unread/acknowledged filtering and pagination. The response includes the total and unread counts.
GET
/
notifications
List notifications
curl --request GET \
--url https://api.apostra.com/api/v2/notifications \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.apostra.com/api/v2/notifications"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.apostra.com/api/v2/notifications', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"notifications": [
{
"id": "<string>",
"type": "storefront.session_daily_summary",
"status": "success",
"read": true,
"acknowledged": true,
"messagePreview": "<string>",
"actionUrl": "<string>",
"createdAt": "2023-11-07T05:31:56Z"
}
],
"totalCount": 4503599627370495,
"unreadCount": 4503599627370495,
"hasMore": true
}{
"data": null,
"error": {
"code": "<string>",
"message": "<string>",
"field": "<string>",
"details": {}
}
}{
"data": null,
"error": {
"code": "<string>",
"message": "<string>",
"field": "<string>",
"details": {}
}
}{
"data": null,
"error": {
"code": "<string>",
"message": "<string>",
"field": "<string>",
"details": {}
}
}Query Parameters
Response
List notifications
Paginated list of notification summaries (storefront spec)