Use these endpoints to read and dismiss your Wheelhouse notifications, and to choose which alerts you get in the app or by email. They are the same notifications you see on the Notifications page in Wheelhouse.
GET /notifications
Returns your active notifications, newest first. Dismissed and expired notifications aren't included.
curl "https://api.usewheelhouse.com/ss_api/v1/notifications" \
-H "X-Integration-Api-Key: your_api_key_here"
Notification fields
id: the notification's ID, used to dismiss ittitle/body_text: the notification's title and textcategory: the notification's categoryreference_type/reference_id: what the notification is about and its ID, for exampleMarketReportorPricePostingErrorreview_url: the Wheelhouse page to open for it, as a path such as/markets/v1/123/overview. Add it tohttps://app.usewheelhouse.comto get the full linkexpires_at: when the notification stops being returnedcreated_at: when it was created
POST /notifications/dismiss
Dismisses one or more notifications by ID (204). Dismissed notifications no longer come back from GET /notifications.
curl --request POST "https://api.usewheelhouse.com/ss_api/v1/notifications/dismiss" \
-H "X-Integration-Api-Key: your_api_key_here" \
-H "Content-Type: application/json" \
-d '{"ids": [501, 502]}'
Alert Settings
Each setting is an event and a channel (inapp or email). If a pair is in your settings, you get that alert on that channel. If it isn't, you don't.
GET /notification_settings
Lists the alerts you currently get.
curl "https://api.usewheelhouse.com/ss_api/v1/notification_settings" \
-H "X-Integration-Api-Key: your_api_key_here"
[
{"event": "price_posting_error", "channel": "email"},
{"event": "price_posting_error", "channel": "inapp"}
]
PUT /notification_settings
Turns alerts on or off. Only the settings you send change, and it returns your full settings afterwards.
curl --request PUT "https://api.usewheelhouse.com/ss_api/v1/notification_settings" \
-H "X-Integration-Api-Key: your_api_key_here" \
-H "Content-Type: application/json" \
-d '{"settings": [
{"event": "market_report_updated", "channel": "email", "enabled": false},
{"event": "price_posting_error", "channel": "email", "enabled": true}
]}'
enabled: trueturns the alert on for that channel,enabled: falseturns it offTurning on an alert that's already on (or off one that's already off) does nothing
Events
The names in Wheelhouse are from the Notification Settings page (Notifications, then Adjust Settings), where you can change the same alerts in the app.
price_posting_error: Price posting errorsmarket_report_updated: Market report updatesreminder: Reminderssub_user_invite: Team invitesnew_listing_created: New listings addedreport_shared: Reports sharedreport_comment_reply: Report comment repliesreport_comment_mention: Report comment mentionscomp_set_v2_shared: Dynamic sets sharedapi_spend_alert: API spend alerts (API only, not on the Notification Settings page)
Errors
400: an unknown
eventorchannelin PUT /notification_settings403: your API key is read-only. Read-only keys can list notifications and settings, but can't dismiss notifications or change settings