Skip to main content

Notifications

Sometimes a device needs its owner: a manufacturer connection lapses, a subscription runs out, or Podero has something to tell them about how their device is being optimized. This page covers how to build that experience — showing users what needs attention and guiding them through fixing it. How you learn something is pending is up to you: receive a push via webhooks or poll the endpoints below. The journey from there is the same.

Show a notification badge

GET /org/{org_id}/notifications/status returns pending counts per device type — ideal for badges without fetching full lists:
action_required items block optimization until the user acts; information_available items are notices to read. Render them with different urgency.

List what needs attention

GET /org/{org_id}/notifications/actions returns everything the user still needs to see, newest first — blocking actions and unread notices merged into one list. Filter with owner_id, device_id, or device_type:
Branch on each item’s code:
The secret inside each resolution_link.url is bound to the notification’s owner and expires one hour after the fetch. Fetch actions when the user opens the view — don’t cache the links.

Resolve a reauthentication

A reauthenticate action means the manufacturer connection has lapsed and optimization is paused for that device. Walk the user through reconnecting:
1

Start the action

POST to the item’s resolution_link.url with the parameters named in required_parameters:
The response carries the manufacturer flow to send the user into:
2

Redirect the user

Send the user to redirect_url. They re-authenticate with the manufacturer, then land back on your success_url (or cancel_url if they abort).
3

Report the outcome

From your success_url / cancel_url handler, report how it went so the action is marked done (or stays available to retry):
On success the action disappears from the pending list and optimization resumes. On fail it stays pending and the user can retry from step 1.

Dismiss an information notice

Information items need no flow — show metadata.message and let the user dismiss it by calling its resolution_link (no body required):
The notice is marked read: it leaves the pending list and the information_available count, but stays retrievable in the history via GET /notifications/information with dismissed: true.

Skip the polling: webhooks

Instead of polling status, register a notification webhook and Podero pushes a signed message the moment something needs attention. The message’s data carries owner_id, device_id, and device_type — pass them straight into the endpoints above to fetch exactly what changed, then notify the right user in your app.

Next Steps

Notifications

Set up webhook push delivery

Dashboard Integration

Show device status and live readings