# Federated Providers Source: https://developers.podero.com/api-reference/authentication/federated-providers https://app.podero.com/api/partners/v2.0/openapi.json get /api/partners/v2.0/auth/federated/providers Enabled utility SSO providers — public PKCE config the app's sign-in screen renders from. # Federated Token Source: https://developers.podero.com/api-reference/authentication/federated-token https://app.podero.com/api/partners/v2.0/openapi.json post /api/partners/v2.0/auth/federated # Me Source: https://developers.podero.com/api-reference/authentication/me https://app.podero.com/api/partners/v2.0/openapi.json get /api/partners/v2.0/auth/me # Signup Confirm Source: https://developers.podero.com/api-reference/authentication/signup-confirm https://app.podero.com/api/partners/v2.0/openapi.json post /api/partners/v2.0/auth/signup-confirm # Signup Request Source: https://developers.podero.com/api-reference/authentication/signup-request https://app.podero.com/api/partners/v2.0/openapi.json post /api/partners/v2.0/auth/signup-request # Token Source: https://developers.podero.com/api-reference/authentication/token https://app.podero.com/api/partners/v2.0/openapi.json post /api/partners/v2.0/auth/token # Get the pairing link of a virtual-key action Source: https://developers.podero.com/api-reference/cues/get-the-pairing-link-of-a-virtual-key-action https://app.podero.com/api/partners/v2.0/openapi.json post /api/partners/v2.0/cues/{cue_id}/virtual-key/resolve Return the Tesla link that adds the Podero virtual key to the car of a `virtual_key_required` action. Both `cue_id` and `secret` come from the action's `resolution_link.url`. The `secret` is a signed token bound to the car's owner and expires 1 hour after it is issued. The caller must be the owner's own session or a token of the owner's organisation. The request has no body. The action stays until a later read shows the key on the car, so the caller can get the link again. The route never closes the action. # Mark an information action as read Source: https://developers.podero.com/api-reference/cues/mark-an-information-action-as-read https://app.podero.com/api/partners/v2.0/openapi.json post /api/partners/v2.0/cues/{resource_id}/information/resolve Acknowledge that the end-user has read the information message identified by the URL. Both `cue_id` and `secret` are obtained from the action's `resolution_link.url`; the `secret` is a signed token bound to the message's owner and expires 1 hour after it is issued. The caller must be the owner's own session or a token of the owner's organisation. Once acknowledged, the cue is marked as done and no longer appears in the device's `actions` list. The body is optional and accepts `location` / `client_info` for tracing. # Report the outcome of an active action Source: https://developers.podero.com/api-reference/cues/report-the-outcome-of-an-active-action https://app.podero.com/api/partners/v2.0/openapi.json post /api/partners/v2.0/cues/{cue_id}/state Report the outcome of an action previously started via `/cues/{cue_id}/resolve`. Requires the same signed `secret` used to start it. The action must still be active — otherwise a 404 is returned. - `state=success` marks the action as completed; it will no longer appear in the originating resource's `actions` list on subsequent reads. - `state=fail` records the failure but leaves the action available, so the caller can retry by calling `/resolve` again. # Start a pending action Source: https://developers.podero.com/api-reference/cues/start-a-pending-action https://app.podero.com/api/partners/v2.0/openapi.json post /api/partners/v2.0/cues/{cue_id}/resolve Start the action identified by the URL. Both `cue_id` and `secret` are obtained from the action's `resolution_link.url`; the `secret` is a signed token bound to the action's owner and expires 1 hour after it is issued. The caller must be the owner's own session or a token of the owner's organisation. The body must include the parameters listed in the action's `resolution_link.required_parameters`. The body and response shapes are action-specific — the documented schemas apply when the action's `code` is `reauthenticate`. Other action codes will use their own request/response shapes. Once started, the action stays in progress until its outcome is reported via `/cues/{cue_id}/state`. # Get all registered device models Source: https://developers.podero.com/api-reference/device-models/get-all-registered-device-models https://app.podero.com/api/partners/v2.0/openapi.json get /api/partners/v2.0/device-models Get all registered device models that satisfy an optional OData query. Such a query can be used for advanced filtering and sorting and follows the OData v4.0 standard. OData query examples: - `q="manufacturer eq 'Firma X')"` - `q="device_type/any(x: x/short_name ne 'ev')"` Pagination is also supported by the following parameters: - **limit**: number of items per page - **offset**: starting point for the items # Check if a wallbox claim token has been claimed Source: https://developers.podero.com/api-reference/device-onboarding-sessions/check-if-a-wallbox-claim-token-has-been-claimed https://app.podero.com/api/partners/v2.0/openapi.json get /api/partners/v2.0/device-onboarding/{onboarding_session_id}/wallbox-claim-tokens/{token}/status # Create a new Device Onboarding Session Source: https://developers.podero.com/api-reference/device-onboarding-sessions/create-a-new-device-onboarding-session https://app.podero.com/api/partners/v2.0/openapi.json post /api/partners/v2.0/device-onboarding This endpoint creates a new onboarding session and generates an authentication URL which leads to Connect UI. This application takes end-users through onboarding their device. Upon success, it redirects back to the success_url. If unsuccessful, it redirects to the cancel_url. Sessions are valid until the end of the next day. # Get Device Onboarding Session Source: https://developers.podero.com/api-reference/device-onboarding-sessions/get-device-onboarding-session https://app.podero.com/api/partners/v2.0/openapi.json get /api/partners/v2.0/device-onboarding/{onboarding_session_id} Fetch information about a device onboarding session # Mint a wallbox claim token for the onboarding session's user Source: https://developers.podero.com/api-reference/device-onboarding-sessions/mint-a-wallbox-claim-token-for-the-onboarding-sessions-user https://app.podero.com/api/partners/v2.0/openapi.json post /api/partners/v2.0/device-onboarding/{onboarding_session_id}/wallbox-claim-tokens # Get an Organisation's Devices Source: https://developers.podero.com/api-reference/devices/get-an-organisations-devices https://app.podero.com/api/partners/v2.0/openapi.json get /api/partners/v2.0/org/{org_id}/devices Get the list of all devices for the specified organization ID. By default returns ALL devices with ALL fields. Optional parameters: - device_type: Filter by specific device type (hp_atw, hp_wtw, inv, ev, wb) - device_steering: Only devices that are steered (`on`) or not (`off`) - manufacturer: Only devices whose model carries this manufacturer - status: Only devices in one of these health tones (good, warning, critical, not_steered; repeatable, unioned). Tones grade the connection/monitoring/steering trio, the same tones `…/devices/summary` counts — a device with a pending partner action is filtered under its trio's tone while its own `tone` field reads `action_required`. - fields: Comma-separated list of specific fields (e.g., "id,owner.email,device_model.manufacturer") - page: Enable pagination by providing page number (1-based) - page_size: Items per page when pagination is enabled (default: 100) - sort: Order the whole fleet by `support`, `health`, `last_data` (oldest first), `owner`, `created_at` (oldest first) or `device` (manufacturer and model); `order` flips it. Unsorted, devices come back device type by device type. `sort=support` ranks the most pending `attention_required` cues first; `sort=health` ranks `unhealthy`, then `unknown`, first. - support: Only devices holding a pending cue of one of these Support categories (repeatable, unioned; `none` = of no category). - health: Only live devices with one of these service-health verdicts (repeatable, unioned). Field examples: - fields=id,owner.email,device_model.manufacturer - fields=id,connection_status,monitoring_status,battery_level Restricted to support and admins, plus Console Support agents reading across organisations. # Get an Organisation's Devices Savings Source: https://developers.podero.com/api-reference/devices/get-an-organisations-devices-savings https://app.podero.com/api/partners/v2.0/openapi.json get /api/partners/v2.0/org/{org_id}/devices/savings Get the savings for the specified organization ID within a date range. Three response shapes, driven by the optional params (default = single range total split by device class, backwards-compatible): * `resolution=` → `{metadata, data: [{start_period, end_period, total_savings, _savings…}]}`, one bucket per calendar period. Buckets use the same `Trunc*`/UTC daily-row semantics as the per-device savings endpoints, so a `1DAY` org bucket equals the sum of its devices' daily figures and the series sums to the range total (full periods only — a partial trailing period is dropped). * `by=device` / `by=device_type` / `by=oem` → `{metadata, data:[…range totals…]}`. `by=device` returns one page of the extremes — the top `limit` by savings, `order=desc` (best savers) or `asc` (worst performers); `by=oem` groups by device-model manufacturer (merged across classes), so whole-fleet and per-OEM aggregates come from `device_type`/`oem`, not the per-device list. `resolution` and `by` are mutually exclusive — a bucketed org series XOR range-total breakdowns, never the cross product. Amounts are in the org's currency (`currency` on the default shape, `metadata.currency` on the others): each day converts from the stored EUR at that day's rate, like the per-device `/savings/daily`, so a `1DAY` bucket equals the sum of its devices' daily figures. Restricted to support and admins, plus Console Support agents reading across organisations. # Get an Organisation's Devices Summary Source: https://developers.podero.com/api-reference/devices/get-an-organisations-devices-summary https://app.podero.com/api/partners/v2.0/openapi.json get /api/partners/v2.0/org/{org_id}/devices/summary Whole-fleet device counts for the console Fleet screen in one call — the server-side counterpart of the client folds over the full device list (`fleetReal.ts::healthRows` / `deviceTypeShares` / `deviceSavingsLeg`): health-tone counts, type-bucket shares, and per-savings-leg device counts to sit beside `GET …/devices/savings?by=device_type`. Operational (non-soft- deleted) devices only. Restricted to support and admins, plus Console Support agents reading across organisations. # Resolve a Device to its owner and type Source: https://developers.podero.com/api-reference/devices/resolve-a-device-to-its-owner-and-type https://app.podero.com/api/partners/v2.0/openapi.json get /api/partners/v2.0/org/{org_id}/devices/{device_id} Resolve a device uuid (from `GET /org/{org_id}/devices`) to its owner and type without prior knowledge of either, so cockpit deep links can follow the existing nested per-type detail route. Scoped to the org: a device in another org 404s. Restricted to support and admins, plus Console Support agents reading across organisations. # Scored forecast accuracy for an inverter, by hour and forecast tier Source: https://developers.podero.com/api-reference/devices/scored-forecast-accuracy-for-an-inverter-by-hour-and-forecast-tier https://app.podero.com/api/partners/v2.0/openapi.json get /api/partners/v2.0/org/{org_id}/devices/{inverter_id}/forecast-accuracy The scored accuracy of one inverter's forecasts over the last ``days``, per hour and tier. Read by the organization's own console reader, like the runs route beside it. How well its own devices are forecast is the organization's own data, entitlement or not. Each hour carries, per tier, the scored slot count and the sums of absolute and signed error, so the client can fold hours into days or a time-of-day profile and read MAE and bias off any bucket exactly. Only completed local days are scored, each morning, so the newest hours of the window carry no entry yet. # Get a vehicle's charge policy Source: https://developers.podero.com/api-reference/electric-vehicle-charge-policies/get-a-vehicles-charge-policy https://app.podero.com/api/partners/v2.0/openapi.json get /api/partners/v2.0/org/{org_id}/users/{user_id}/electric-vehicles/{electric_vehicle_id}/charge-policy # Set a vehicle's charge policy Source: https://developers.podero.com/api-reference/electric-vehicle-charge-policies/set-a-vehicles-charge-policy https://app.podero.com/api/partners/v2.0/openapi.json put /api/partners/v2.0/org/{org_id}/users/{user_id}/electric-vehicles/{electric_vehicle_id}/charge-policy # Override a vehicle's charge policy by settings a deadline Source: https://developers.podero.com/api-reference/electric-vehicle-charge-policy-overrides/override-a-vehicles-charge-policy-by-settings-a-deadline https://app.podero.com/api/partners/v2.0/openapi.json get /api/partners/v2.0/org/{org_id}/users/{user_id}/electric-vehicles/{electric_vehicle_id}/charge-policy/override # Override a vehicle's charge policy by settings a deadline Source: https://developers.podero.com/api-reference/electric-vehicle-charge-policy-overrides/override-a-vehicles-charge-policy-by-settings-a-deadline-1 https://app.podero.com/api/partners/v2.0/openapi.json put /api/partners/v2.0/org/{org_id}/users/{user_id}/electric-vehicles/{electric_vehicle_id}/charge-policy/override # Override a vehicle's charge policy by settings a deadline Source: https://developers.podero.com/api-reference/electric-vehicle-charge-policy-overrides/override-a-vehicles-charge-policy-by-settings-a-deadline-2 https://app.podero.com/api/partners/v2.0/openapi.json delete /api/partners/v2.0/org/{org_id}/users/{user_id}/electric-vehicles/{electric_vehicle_id}/charge-policy/override/{override_id} # Get the currently active charging session for an electric vehicle Source: https://developers.podero.com/api-reference/electric-vehicle-sessions/get-the-currently-active-charging-session-for-an-electric-vehicle https://app.podero.com/api/partners/v2.0/openapi.json get /api/partners/v2.0/org/{org_id}/users/{user_id}/electric-vehicles/{electric_vehicle_id}/sessions/current Returns the active session wrapped as `{ "session": ... }`. When no session is active, returns 200 with `{ "session": null }` instead of 404 so clients can poll without exception handling. # List completed charging sessions for an electric vehicle Source: https://developers.podero.com/api-reference/electric-vehicle-sessions/list-completed-charging-sessions-for-an-electric-vehicle https://app.podero.com/api/partners/v2.0/openapi.json get /api/partners/v2.0/org/{org_id}/users/{user_id}/electric-vehicles/{electric_vehicle_id}/sessions One row per completed charging session of this vehicle, newest first, for sessions that started on a UTC day between `from` and `to` inclusive. Each row carries the session outcome, the energy delivered in kWh, the savings figures in EUR with their attribution reason, the state of charge at start and end, the plan window, and whether steering was effective. The list is capped by `limit`; `total` says how many rows the window holds. The decision timeline and the command verdicts of a session are on the unified charging-sessions detail route under the user, addressed by the row's prefixed `id`. # Post Source: https://developers.podero.com/api-reference/loadcurves-confirmation/post https://app.podero.com/api/partners/v2.0/openapi.json post /api/partners/v2.0/org/{org_id}/trading/dayahead/loadcurves/{trade_id}/confirm # Get By Price Zone Source: https://developers.podero.com/api-reference/loadcurves/get-by-price-zone https://app.podero.com/api/partners/v2.0/openapi.json get /api/partners/v2.0/org/{org_id}/trading/dayahead/loadcurve/pricezone/{price_zone_key} # Get one prepared day-ahead forecast response Source: https://developers.podero.com/api-reference/loadcurves/get-one-prepared-day-ahead-forecast-response https://app.podero.com/api/partners/v2.0/openapi.json get /api/partners/v2.0/org/{org_id}/trading/dayahead/forecasts/{snapshot_id} # Get the organisation's day-ahead load curve for one delivery day Source: https://developers.podero.com/api-reference/loadcurves/get-the-organisations-day-ahead-load-curve-for-one-delivery-day https://app.podero.com/api/partners/v2.0/openapi.json get /api/partners/v2.0/org/{org_id}/trading/dayahead/loadcurve The organisation's aggregated load curve for one delivery `day` at the requested `resolution` (15MIN or 1HOUR): the optimised curve the fleet is planned to follow and the unoptimised curve it would have followed without steering, as energy per interval. `keywords` selects which of the two curves is populated. `trade_id` identifies an issued snapshot for full-owned requests. Legacy responses can carry an organisation curve ID. A GET does not confirm either ID. Returns 404 with an explanatory `error` while the day's load forecasts are not yet available. # Delete a notification webhook Source: https://developers.podero.com/api-reference/notification-webhooks/delete-a-notification-webhook https://app.podero.com/api/partners/v2.0/openapi.json delete /api/partners/v2.0/org/{org_id}/notifications/webhooks/{webhook_id} Remove a webhook, ending its stream and dropping it from the listing. A webhook that does not exist or belongs to another organization is reported as not found. # List an organization's notification webhooks Source: https://developers.podero.com/api-reference/notification-webhooks/list-an-organizations-notification-webhooks https://app.podero.com/api/partners/v2.0/openapi.json get /api/partners/v2.0/org/{org_id}/notifications/webhooks List the organization's registered notification webhooks in a stable order, so pagination is deterministic. The order is not a chronological contract: it keys on the projection row's own creation time, which a projection rebuild would reset. Results are paginated with 50 items per page. The signing secret is never included — it is shown only once at creation and on rotation. # Register a notification webhook Source: https://developers.podero.com/api-reference/notification-webhooks/register-a-notification-webhook https://app.podero.com/api/partners/v2.0/openapi.json post /api/partners/v2.0/org/{org_id}/notifications/webhooks Register a webhook for the organization, provision its signing secret, and subscribe it to the given topics — all in one atomic append. The signing secret is returned once in this response and never again, so the caller must store it now. A malformed or disallowed URL (non-https outside dev, or an SSRF-blocked address) is rejected and nothing is created. Each call registers a new, independent endpoint; it is not idempotent — a retried or repeated POST with the same URL creates a second webhook with its own secret, so callers that retry must guard against duplicates. The response is built from the just-committed create rather than re-read, so a transient read failure can never strand the one-time secret. # Retrieve a notification webhook Source: https://developers.podero.com/api-reference/notification-webhooks/retrieve-a-notification-webhook https://app.podero.com/api/partners/v2.0/openapi.json get /api/partners/v2.0/org/{org_id}/notifications/webhooks/{webhook_id} Retrieve one of the organization's webhooks. A webhook that does not exist or belongs to another organization is reported as not found. # Rotate a webhook's signing secret Source: https://developers.podero.com/api-reference/notification-webhooks/rotate-a-webhooks-signing-secret https://app.podero.com/api/partners/v2.0/openapi.json post /api/partners/v2.0/org/{org_id}/notifications/webhooks/{webhook_id}/rotate-secret Mint a fresh signing secret for the webhook, superseding the previous one — the next delivery signs with it. The new secret is returned once in this response and never again, so the caller must store it now. A webhook that does not exist or belongs to another organization is reported as not found. # Send a test message to a webhook for one of its subscribed topics Source: https://developers.podero.com/api-reference/notification-webhooks/send-a-test-message-to-a-webhook-for-one-of-its-subscribed-topics https://app.podero.com/api/partners/v2.0/openapi.json post /api/partners/v2.0/org/{org_id}/notifications/webhooks/{webhook_id}/test Deliver a synthetic sample of one subscribed topic to the webhook and return the delivery outcome, so a partner can verify their endpoint receives and accepts what a real notification for that topic looks like. The topic must be one the webhook is subscribed to (else 400); the sample is addressed straight to this webhook and never fans out to the organization's other subscribers. A webhook that does not exist or belongs to another organization is reported as not found. # Update a notification webhook Source: https://developers.podero.com/api-reference/notification-webhooks/update-a-notification-webhook https://app.podero.com/api/partners/v2.0/openapi.json patch /api/partners/v2.0/org/{org_id}/notifications/webhooks/{webhook_id} Update a webhook's delivery switch and/or its subscribed topics. Only the fields present in the request change; ``topics`` replaces the whole set. The endpoint URL is immutable — delete and recreate to change it. A webhook that does not exist or belongs to another organization is reported as not found. # Counts of pending actions and unread information notifications, grouped by device type. Source: https://developers.podero.com/api-reference/notifications/counts-of-pending-actions-and-unread-information-notifications-grouped-by-device-type https://app.podero.com/api/partners/v2.0/openapi.json get /api/partners/v2.0/org/{org_id}/notifications/status ``action_required`` counts cues whose projection's ``action_required(events)`` is True — the same semantic as the per-device ``action_needed`` flag, so a cue mid-resolution (``ReauthenticationSucceeded`` event landed, cue not yet flipped to DONE) doesn't count. ``information_available`` counts unread ``InformationNotification`` rows — the source of truth for information items — and stays consistent with ``/information``: what the count reports, the list returns. # List an organization's information notifications. Source: https://developers.podero.com/api-reference/notifications/list-an-organizations-information-notifications https://app.podero.com/api/partners/v2.0/openapi.json get /api/partners/v2.0/org/{org_id}/notifications/information Newest-first history of information notifications across the organization, bounded at SQL. Resolution links are minted per record for that notification's owner. ``code`` filters on the linked cue's code, so cue-less sends drop out under a code filter. # List an organization's pending user-facing action projections. Source: https://developers.podero.com/api-reference/notifications/list-an-organizations-pending-user-facing-action-projections https://app.podero.com/api/partners/v2.0/openapi.json get /api/partners/v2.0/org/{org_id}/notifications/actions Render pending cues + unread information notifications into a merged, newest-first list of ``DeviceAction`` projections. Both source tables are capped at ``limit + offset`` rows at SQL before the Python-side merge + sort + slice, so page cost scales with the requested window, not the org's total pending backlog. ``code`` filters both sources on the cue code: an action cue matches its own ``code``, an information notification matches its linked cue's code (so cue-less sends drop out under a code filter). ``created_after``/``created_before`` bound each source's own timestamp (cue ``created_at`` / notification ``sent_at``). # Current App Settings Source: https://developers.podero.com/api-reference/organization-branding/current-app-settings https://app.podero.com/api/partners/v2.0/openapi.json get /api/partners/v2.0/app-settings/current The app settings of the organization the request names: which tabs and controls the app shows, its stored switches, and the device brands and categories its members may connect. # Current Branding Source: https://developers.podero.com/api-reference/organization-branding/current-branding https://app.podero.com/api/partners/v2.0/openapi.json get /api/partners/v2.0/branding/current The branding of the organization the request names: identity, copy, languages, theme, text overrides and absolute asset URLs. # Get Admin Source: https://developers.podero.com/api-reference/organization-configuration/get-admin https://app.podero.com/api/partners/v2.0/openapi.json get /api/partners/v2.0/org/{org_id}/admin What Podero writes for the organization: its identity, trading, optimization basis, audit log and the text overrides of its apps, and read-only the managed values of its settings. # Get Branding Source: https://developers.podero.com/api-reference/organization-configuration/get-branding https://app.podero.com/api/partners/v2.0/openapi.json get /api/partners/v2.0/org/{org_id}/branding The organization's branding: product name, copy, languages, theme and assets, and read-only the text overrides that Podero writes. # Get Settings Source: https://developers.podero.com/api-reference/organization-configuration/get-settings https://app.podero.com/api/partners/v2.0/openapi.json get /api/partners/v2.0/org/{org_id}/settings The organization's settings: app switches, policy, defaults, the device catalog, and read-only the organization's identity and what Podero grants it. # Post Admin Source: https://developers.podero.com/api-reference/organization-configuration/post-admin https://app.podero.com/api/partners/v2.0/openapi.json post /api/partners/v2.0/org/{org_id}/admin Save the admin document. The managed values cannot be written here. # Post Branding Source: https://developers.podero.com/api-reference/organization-configuration/post-branding https://app.podero.com/api/partners/v2.0/openapi.json post /api/partners/v2.0/org/{org_id}/branding Save the branding: one ``payload`` form field with the JSON document, and the asset files. # Post Settings Source: https://developers.podero.com/api-reference/organization-configuration/post-settings https://app.podero.com/api/partners/v2.0/openapi.json post /api/partners/v2.0/org/{org_id}/settings Save the settings. The organization's fields cannot be written here: a document that carries one is a 422. # Create Organization Join Link Source: https://developers.podero.com/api-reference/organization/create-organization-join-link https://app.podero.com/api/partners/v2.0/openapi.json post /api/partners/v2.0/org/{org_id}/join-link Mint the org's standing self-signup link — the console face of the admin's generate action. Conflicts instead of replacing a live link: overwriting would strand every copy already handed out, so the admin has to revoke first and mean it. # Get Org Cues Issue Flow Source: https://developers.podero.com/api-reference/organization/get-org-cues-issue-flow https://app.podero.com/api/partners/v2.0/openapi.json get /api/partners/v2.0/org/{org_id}/cues/issue-flow Daily raised/resolved cues with the end-of-day open backlog, over ``[start, end]`` inclusive. Each point is ``{date, raised, resolved, open}``: ``raised`` and ``resolved`` count the cues that opened and closed that day, and ``open`` is the backlog standing at the day's end. The series holds ``open(day) = open(day-1) + raised - resolved``; cues opened before ``start`` are not attributed to day one but form the opening backlog the first day starts from. Derived from each persisted cue's projection: a cue is raised once at ``created_at`` and, when currently done, resolved once at its final status transition. Reopening continues the same issue rather than counting another new one. A **discarded** cue counts as resolved — an operator write-off has left the backlog just as a genuine resolution has — and so does an operator's resolution, which is a close like any other. Days are UTC calendar days. The range spans at most ``MAX_ISSUE_FLOW_SPAN_DAYS`` days — one point per day, so an unbounded range would build an unbounded response. The org's existence is already guaranteed by ``organization_access_required`` (the token's member must belong to ``org_id``), so no separate lookup is needed. # Get Org Growth Source: https://developers.podero.com/api-reference/organization/get-org-growth https://app.podero.com/api/partners/v2.0/openapi.json get /api/partners/v2.0/org/{org_id}/growth Cumulative assigned members, all members, and operational devices connected per day, over ``[start, end]`` inclusive. Each point is ``{date, users, all_users, devices}`` — the running totals standing at that UTC day's end. Survivorship parity with the client's ``connectedToDate`` fold: it counts only active members that currently own at least one non-soft-deleted device (keyed on the member's ``date_joined``) and non-soft-deleted devices (keyed on ``created_at``), so the curve is up-only and matches today's assigned-user count. Entities stamped before ``start`` form the day-one baseline; entities stamped after ``end`` are excluded. It is not yet churn-aware — a later step, and the only place a churn-aware count can come from. Days are UTC calendar days. The range spans at most ``MAX_GROWTH_SPAN_DAYS`` days — one point per day, so an unbounded range would build an unbounded response. The org's existence is already guaranteed by ``organization_access_required`` (the token's member must belong to ``org_id``), so no separate lookup is needed. # Invite User Source: https://developers.podero.com/api-reference/organization/invite-user https://app.podero.com/api/partners/v2.0/openapi.json post /api/partners/v2.0/org/{org_id}/invitations Invite a user to the organization by email, granting a member role on acceptance. Sends an invitation email to the provided address. The email contains a signed activation link that lands the recipient on the sign-up confirmation screen pre-filled with the organization's invite token, so they join this organization with the invited role when they complete sign-up. The actor can only invite at or below its own privilege. A ``podero_profile`` additionally designates the invitee a Podero user, granted when they accept; only a Podero developer may send one. # List Organization Invitations Source: https://developers.podero.com/api-reference/organization/list-organization-invitations https://app.podero.com/api/partners/v2.0/openapi.json get /api/partners/v2.0/org/{org_id}/invitations List the organization's invitations for the console tables — the newest send per email across both invite surfaces (end-user and console support/admin), each with its derived lifecycle status (pending / accepted / expired / revoked / invalidated), newest first. Restricted to support/admin, plus Console Support reading across orgs: the list is a console-admin surface carrying every invitee's email and role, which the org's own end users have no business reading. # List Organizations Source: https://developers.podero.com/api-reference/organization/list-organizations https://app.podero.com/api/partners/v2.0/openapi.json get /api/partners/v2.0/organizations List every organization (id + name) for the cross-org switcher, name-ordered. Prod has ~194 orgs against a 50-per-page limit, so a flat first page silently truncates; `q` lets the switcher narrow to the org the operator is typing rather than paging through all of them. Absent/whitespace-only `q` returns the unfiltered first page. # Resend Invitation Source: https://developers.podero.com/api-reference/organization/resend-invitation https://app.podero.com/api/partners/v2.0/openapi.json post /api/partners/v2.0/org/{org_id}/invitations/{invite_id}/resend Re-send an invitation: a fresh email and a fresh validity window for the same email, role and Podero profile — so re-sending a profile-carrying invite needs the same developer standing. Create-again under the hood, so an already-accepted (active member) invite is refused with 400, the same as inviting them anew. # Retrieve Organization Source: https://developers.podero.com/api-reference/organization/retrieve-organization https://app.podero.com/api/partners/v2.0/openapi.json get /api/partners/v2.0/org/{org_id} Org detail for the console. Restricted to support/admin, plus Console Support reading across orgs — the org's own end users have no need for it and it carries the standing join link, a self-signup secret. # Revoke Organization Invitation Source: https://developers.podero.com/api-reference/organization/revoke-organization-invitation https://app.podero.com/api/partners/v2.0/openapi.json delete /api/partners/v2.0/org/{org_id}/invitations/{invite_id} Revoke an invitation so its link no longer grants — enforced at sign-up confirmation. The actor must outrank the invited role. Idempotent on an already-revoked invite; 409 on an accepted one, since revoking would record a false state without removing the member. # Revoke Organization Join Link Source: https://developers.podero.com/api-reference/organization/revoke-organization-join-link https://app.podero.com/api/partners/v2.0/openapi.json delete /api/partners/v2.0/org/{org_id}/join-link Kill the standing link so its holders can no longer sign themselves up. Idempotent: with no link standing the caller's intent is already satisfied, and 404 would only invite retries. # Update Organization Source: https://developers.podero.com/api-reference/organization/update-organization https://app.podero.com/api/partners/v2.0/openapi.json put /api/partners/v2.0/org/{org_id} Update the organization data for the specified organization ID, with a JSON payload. Podero writes these fields. Available only to users with the customer operations or developer profile who are "admin" members of the organization. A client-credentials token cannot use it. # Organization Fleet Source: https://developers.podero.com/api-reference/platform/organization-fleet https://app.podero.com/api/partners/v2.0/openapi.json get /api/partners/v2.0/org/{org_id}/platform/fleet # Organization Service Health Source: https://developers.podero.com/api-reference/platform/organization-service-health https://app.podero.com/api/partners/v2.0/openapi.json get /api/partners/v2.0/org/{org_id}/platform/service-health Current service health of one organization's fleet, counted from the stored chains. # Platform Fleet Source: https://developers.podero.com/api-reference/platform/platform-fleet https://app.podero.com/api/partners/v2.0/openapi.json get /api/partners/v2.0/platform/fleet Podero-wide aggregates. No organization or device identifiers leave this route. # Platform Service Health Source: https://developers.podero.com/api-reference/platform/platform-service-health https://app.podero.com/api/partners/v2.0/openapi.json get /api/partners/v2.0/platform/service-health Podero-wide current service health. No organization or device identifiers leave this route. # Platform Services Source: https://developers.podero.com/api-reference/platform/platform-services https://app.podero.com/api/partners/v2.0/openapi.json get /api/partners/v2.0/platform/services # List filtered hourly prices Source: https://developers.podero.com/api-reference/prices/list-filtered-hourly-prices https://app.podero.com/api/partners/v2.0/openapi.json get /api/partners/v2.0/market/{market_id}/prices/{price_zone} Retrieve hourly price list for a specific market and price zone. It can be filtered to be in a time window. # Control Action Source: https://developers.podero.com/api-reference/trading-control/control-action https://app.podero.com/api/partners/v2.0/openapi.json post /api/partners/v2.0/trading-control # Create Account Source: https://developers.podero.com/api-reference/trading-control/create-account https://app.podero.com/api/partners/v2.0/openapi.json post /api/partners/v2.0/trading-control/accounts # Get Accounts Source: https://developers.podero.com/api-reference/trading-control/get-accounts https://app.podero.com/api/partners/v2.0/openapi.json get /api/partners/v2.0/trading-control/accounts # Get Control Source: https://developers.podero.com/api-reference/trading-control/get-control https://app.podero.com/api/partners/v2.0/openapi.json get /api/partners/v2.0/trading-control # Create Trading Dayahead Prices Source: https://developers.podero.com/api-reference/trading/create-trading-dayahead-prices https://app.podero.com/api/partners/v2.0/openapi.json post /api/partners/v2.0/org/{org_id}/trading/dayahead/prices # Get the day-ahead prices the organisation trades against Source: https://developers.podero.com/api-reference/trading/get-the-day-ahead-prices-the-organisation-trades-against https://app.podero.com/api/partners/v2.0/openapi.json get /api/partners/v2.0/org/{org_id}/trading/dayahead/prices The day-ahead price series for one `price_zone` between `from_dt` and `to_dt`, as supplied to the organisation's price feed: one `price` per delivery interval, in the unit and currency of that feed. These are the prices the fleet's day-ahead optimisation planned against, not settled market prices, and an interval the feed never supplied is absent rather than zero. All three query parameters are required. # Update Trading Dayahead Prices Source: https://developers.podero.com/api-reference/trading/update-trading-dayahead-prices https://app.podero.com/api/partners/v2.0/openapi.json patch /api/partners/v2.0/org/{org_id}/trading/dayahead/prices # Get the user's charging configuration Source: https://developers.podero.com/api-reference/user-charging-config/get-the-users-charging-configuration https://app.podero.com/api/partners/v2.0/openapi.json get /api/partners/v2.0/org/{org_id}/users/{user_id}/charging-config Owner-level steering mode, HEMS eligibility, available modes with reason codes, thresholds, and the live solar-charging status. # Update the user's charging configuration Source: https://developers.podero.com/api-reference/user-charging-config/update-the-users-charging-configuration https://app.podero.com/api/partners/v2.0/openapi.json put /api/partners/v2.0/org/{org_id}/users/{user_id}/charging-config Apply mode and/or threshold changes to all of the user's charging devices in one transaction. Rejects modes outside ``available_modes`` and thresholds below any device's band minimum (422). # Get all currently-open charging sessions for a user Source: https://developers.podero.com/api-reference/user-charging-sessions/get-all-currently-open-charging-sessions-for-a-user https://app.podero.com/api/partners/v2.0/openapi.json get /api/partners/v2.0/org/{org_id}/users/{user_id}/charging-sessions/current Returns `{ "sessions": [...] }` with one full detail per open session (a user can have several EVs and wallboxes charging at once). Returns 200 with an empty list when nothing is active, so clients can poll without exception handling. Wallbox energy/savings and command counters are running totals computed as of the request time for open sessions. # Get one charging session with its decision timeline, command verdicts and home-energy context Source: https://developers.podero.com/api-reference/user-charging-sessions/get-one-charging-session-with-its-decision-timeline-command-verdicts-and-home-energy-context https://app.podero.com/api/partners/v2.0/openapi.json get /api/partners/v2.0/org/{org_id}/users/{user_id}/charging-sessions/{session_id} # Get one finished charging session as aligned 15-minute series Source: https://developers.podero.com/api-reference/user-charging-sessions/get-one-finished-charging-session-as-aligned-15-minute-series https://app.podero.com/api/partners/v2.0/openapi.json get /api/partners/v2.0/org/{org_id}/users/{user_id}/charging-sessions/{session_id}/timeline Battery level, wallbox power, price and one series per authenticated inverter on one 15-minute grid, over a server-determined window that pads the charge on each side. Finished sessions only: a session that is still running returns 404. # List completed charging sessions across a user's EVs and wallboxes Source: https://developers.podero.com/api-reference/user-charging-sessions/list-completed-charging-sessions-across-a-users-evs-and-wallboxes https://app.podero.com/api/partners/v2.0/openapi.json get /api/partners/v2.0/org/{org_id}/users/{user_id}/charging-sessions # Deactivates smart optimization and resets the device Source: https://developers.podero.com/api-reference/user-devices/deactivates-smart-optimization-and-resets-the-device https://app.podero.com/api/partners/v2.0/openapi.json post /api/partners/v2.0/org/{org_id}/users/{user_id}/devices/{device_id}/deactivate_smart_optimization # Update general device attributes Source: https://developers.podero.com/api-reference/user-devices/update-general-device-attributes https://app.podero.com/api/partners/v2.0/openapi.json patch /api/partners/v2.0/org/{org_id}/users/{user_id}/devices/{device_id} Update general attributes of a device, like `is_smart_optimization_active` or `is_authenticated`. # (Alpha) Get statistics for a specified electric vehicle Source: https://developers.podero.com/api-reference/user-electric-vehicles/alpha-get-statistics-for-a-specified-electric-vehicle https://app.podero.com/api/partners/v2.0/openapi.json get /api/partners/v2.0/org/{org_id}/users/{user_id}/electric-vehicles/{electric_vehicle_id}/statistics Retrieve savings and consumption data for a specified electric vehicle, allowing filtering by keywords and aggregation by various time resolutions. This endpoint is currently in Alpha release and should only be used for testing. # Cancel a live boost and disarm a boost armed for the next session Source: https://developers.podero.com/api-reference/user-electric-vehicles/cancel-a-live-boost-and-disarm-a-boost-armed-for-the-next-session https://app.podero.com/api/partners/v2.0/openapi.json delete /api/partners/v2.0/org/{org_id}/users/{user_id}/electric-vehicles/{electric_vehicle_id}/boost Undo a boost on the EV — unified "stop boosting" affordance. Cancels a live boost (ending the boost override and resuming normal optimization of the remaining session — never leaving the car paused) **and** clears any ``boost_for_next_session`` arm. Idempotent: 204 whether or not a boost is live and whether or not the flag was set. Accepted whatever the EV's steering state, so a boost taken before optimization was turned off can always be undone. # Get a user's electric vehicles Source: https://developers.podero.com/api-reference/user-electric-vehicles/get-a-users-electric-vehicles https://app.podero.com/api/partners/v2.0/openapi.json get /api/partners/v2.0/org/{org_id}/users/{user_id}/electric-vehicles List all electric vehicles of a specific user, at a fixed query cost regardless of fleet size. # Get details about a user's electric vehicle Source: https://developers.podero.com/api-reference/user-electric-vehicles/get-details-about-a-users-electric-vehicle https://app.podero.com/api/partners/v2.0/openapi.json get /api/partners/v2.0/org/{org_id}/users/{user_id}/electric-vehicles/{electric_vehicle_id} Get the electric vehicle related to a specific user under a specific organization. # Get EV data Source: https://developers.podero.com/api-reference/user-electric-vehicles/get-ev-data https://app.podero.com/api/partners/v2.0/openapi.json get /api/partners/v2.0/org/{org_id}/users/{user_id}/electric-vehicles/{electric_vehicle_id}/data Time-bucketed telemetry for one electric vehicle between `from_datetime` and `to_datetime` at the requested `resolution` (15MIN by default; 1HOUR, 1DAY, 1WEEK and 1MONTH aggregate). Each point carries `battery_level` in percent, `is_charging`, `is_plugged_in`, `is_at_optimized_location`, the `price` of the bucket, and the `estimated_consumption` and `unoptimized_consumption` energy figures the savings model compares. A missing reading is `null`, never zero, and a bucket with no readings is absent. `keywords` narrows the columns served. Steering decisions and commands are not here; they are on the charging sessions and vehicle commands routes. # Get savings data for a specified electric vehicle Source: https://developers.podero.com/api-reference/user-electric-vehicles/get-savings-data-for-a-specified-electric-vehicle https://app.podero.com/api/partners/v2.0/openapi.json get /api/partners/v2.0/org/{org_id}/users/{user_id}/electric-vehicles/{electric_vehicle_id}/savings Retrieve time-bucketed savings data for a specified electric vehicle within a given date range. # Reauthenticate a user's electric vehicle Source: https://developers.podero.com/api-reference/user-electric-vehicles/reauthenticate-a-users-electric-vehicle https://app.podero.com/api/partners/v2.0/openapi.json post /api/partners/v2.0/org/{org_id}/users/{user_id}/electric-vehicles/{electric_vehicle_id}/auth_session Reauthenticate a electric vehicle related to a specific user under a specific organization. # Register a user's electric vehicle Source: https://developers.podero.com/api-reference/user-electric-vehicles/register-a-users-electric-vehicle https://app.podero.com/api/partners/v2.0/openapi.json post /api/partners/v2.0/org/{org_id}/users/{user_id}/electric-vehicles Create a new electric vehicle for a specific user under a specific organization, with a JSON payload. # Remove a user's electric vehicle Source: https://developers.podero.com/api-reference/user-electric-vehicles/remove-a-users-electric-vehicle https://app.podero.com/api/partners/v2.0/openapi.json delete /api/partners/v2.0/org/{org_id}/users/{user_id}/electric-vehicles/{electric_vehicle_id} Remove an electric vehicle related to a specific user under a specific organization. # Trigger a boost charge or arm boost for the next session Source: https://developers.podero.com/api-reference/user-electric-vehicles/trigger-a-boost-charge-or-arm-boost-for-the-next-session https://app.podero.com/api/partners/v2.0/openapi.json post /api/partners/v2.0/org/{org_id}/users/{user_id}/electric-vehicles/{electric_vehicle_id}/boost Trigger boost on the EV. Behaviour depends on the EV's current state (`boost_state`): - **Not steered** (the EV is unauthenticated, or runs no optimization mode a boost could override): 409 `steering_inactive`. `boost_feature_enabled` is False on the EV payload for exactly these devices, so the button is not offered. - **Plugged, boostable** (`available` — idle OR charging normally as part of optimization): immediately signals the running schedule workflow to boost now, overriding optimization. When no session run covers the plug-in, the tap opens the session from the car's latest plugged reading and the boost fires as the session starts. - **Unplugged** (`unavailable`): arms `boost_for_next_session=True`. The next plug-in's session workflow fires boost on its schedule child, then auto-resets. - **A boost already running** (`ongoing` or `requested`): 409 `already_charging`. - **Cancel in flight** (`stopping`): un-cancels the live boost, returning to `ongoing`. Returns 204 on success (boost triggered, un-cancelled, or armed). Returns 409 when the request can't be honoured, with fields: - `state`: the EV's current `boost_state`. - `reason`: `steering_inactive`, `already_charging`, `no_active_session`, or `internal_error`. The arm path is idempotent: re-tapping while already armed returns 204 with no change. To cancel a live boost or clear an armed flag, use ``DELETE /boost``. # Update details of a user's electric vehicle Source: https://developers.podero.com/api-reference/user-electric-vehicles/update-details-of-a-users-electric-vehicle https://app.podero.com/api/partners/v2.0/openapi.json put /api/partners/v2.0/org/{org_id}/users/{user_id}/electric-vehicles/{electric_vehicle_id} Modify the data of an electric vehicle related to a specific user under a specific organization, with a JSON payload. # Dismiss Heat Pump Explainer Source: https://developers.podero.com/api-reference/user-heat-pumps/dismiss-heat-pump-explainer https://app.podero.com/api/partners/v2.0/openapi.json post /api/partners/v2.0/org/{org_id}/users/{user_id}/heat-pumps/{heat_pump_id}/explainer/{explainer_id}/dismiss # Get all of a user's heat pumps Source: https://developers.podero.com/api-reference/user-heat-pumps/get-all-of-a-users-heat-pumps https://app.podero.com/api/partners/v2.0/openapi.json get /api/partners/v2.0/org/{org_id}/users/{user_id}/heat-pumps List all heat pumps of a specific user, at a fixed query cost regardless of fleet size. # Get applied-mode history for a heat pump Source: https://developers.podero.com/api-reference/user-heat-pumps/get-applied-mode-history-for-a-heat-pump https://app.podero.com/api/partners/v2.0/openapi.json get /api/partners/v2.0/org/{org_id}/users/{user_id}/heat-pumps/{heat_pump_id}/applied-modes The mode changes one heat pump was actually put into over a window, oldest first — the measured companion of the planned `/schedules`, drawn instead from the steering workflow's own record of what it sent and what the manufacturer accepted. Each item is one change: the time it took effect, the mode, the channel it steered, and how much of it landed. Modes use the same four-value vocabulary as `state` on `/schedules`, so the two series can be read against each other over one window. A change is listed once the manufacturer accepted at least one of the writes behind it, and `delivery` says whether it accepted all of them; a command that landed nothing is not listed. Acceptance is not proof the pump moved — physical compliance is judged separately against telemetry. A repeated mode is the workflow re-asserting a lever that expires, not a new change. The window is half-open, both bounds are required, and it may span at most 31 days. History reaches back 30 days: the steering log this is read from drops older rows, so a window further back returns fewer changes than the pump had. Applied modes are recorded for the manufacturers steered by the Temporal workflows; an empty response means no change was recorded, never that the pump refused one. # Get details about a user's specific heat pump Source: https://developers.podero.com/api-reference/user-heat-pumps/get-details-about-a-users-specific-heat-pump https://app.podero.com/api/partners/v2.0/openapi.json get /api/partners/v2.0/org/{org_id}/users/{user_id}/heat-pumps/{heat_pump_id} Get the heat pump related to a specific user under a specific organization. # Get heat pump data Source: https://developers.podero.com/api-reference/user-heat-pumps/get-heat-pump-data https://app.podero.com/api/partners/v2.0/openapi.json get /api/partners/v2.0/org/{org_id}/users/{user_id}/heat-pumps/{heat_pump_id}/data Retrieve time series data for a specified heat pump within a given time range. This endpoint is currently in beta release and may be subject to changes. # Get savings data for a specified heat pump Source: https://developers.podero.com/api-reference/user-heat-pumps/get-savings-data-for-a-specified-heat-pump https://app.podero.com/api/partners/v2.0/openapi.json get /api/partners/v2.0/org/{org_id}/users/{user_id}/heat-pumps/{heat_pump_id}/savings Retrieve time-bucketed savings data for a specified heat pump within a given date range. # Get schedules for a heat pump Source: https://developers.podero.com/api-reference/user-heat-pumps/get-schedules-for-a-heat-pump https://app.podero.com/api/partners/v2.0/openapi.json get /api/partners/v2.0/org/{org_id}/users/{user_id}/heat-pumps/{heat_pump_id}/schedules Endpoint to retrieve schedules for a specified heat pump within a given time range. This endpoint is currently in beta release and may be subject to changes. # Get statistics for a specified heat pump Source: https://developers.podero.com/api-reference/user-heat-pumps/get-statistics-for-a-specified-heat-pump https://app.podero.com/api/partners/v2.0/openapi.json get /api/partners/v2.0/org/{org_id}/users/{user_id}/heat-pumps/{heat_pump_id}/statistics Retrieve savings and consumption data for a specified heat pump, allowing filtering by keywords and aggregation by various time resolutions. This endpoint is currently in Alpha release and should only be used for testing. # Get the current plan explanation for a heat pump Source: https://developers.podero.com/api-reference/user-heat-pumps/get-the-current-plan-explanation-for-a-heat-pump https://app.podero.com/api/partners/v2.0/openapi.json get /api/partners/v2.0/org/{org_id}/users/{user_id}/heat-pumps/{heat_pump_id}/explainer/current The customer-facing narrative of what this heat pump is planned to do next, written in the organization's language unless `language` overrides it. It is generated on the first read of a plan and cached, so a call that finds no cached explanation writes one and can take several seconds. `null` means no explanation exists for the current window — the plan may not have been solved yet. `feedback` carries the requesting user's own rating and nobody else's. # Get the explanation of a past window for a heat pump Source: https://developers.podero.com/api-reference/user-heat-pumps/get-the-explanation-of-a-past-window-for-a-heat-pump https://app.podero.com/api/partners/v2.0/openapi.json get /api/partners/v2.0/org/{org_id}/users/{user_id}/heat-pumps/{heat_pump_id}/explainer/historical The customer-facing narrative of what this heat pump did over a past window, written in the organization's language unless `language` overrides it. It is generated on the first read of a window and cached, so a call that finds no cached explanation writes one and can take several seconds. `null` means no explanation exists for the window. `feedback` carries the requesting user's own rating and nobody else's. # Reauthenticate a user's heat pump Source: https://developers.podero.com/api-reference/user-heat-pumps/reauthenticate-a-users-heat-pump https://app.podero.com/api/partners/v2.0/openapi.json post /api/partners/v2.0/org/{org_id}/users/{user_id}/heat-pumps/{heat_pump_id}/auth_session Reauthenticate a heat pump related to a specific user under a specific organization. # Register a user's heat pump Source: https://developers.podero.com/api-reference/user-heat-pumps/register-a-users-heat-pump https://app.podero.com/api/partners/v2.0/openapi.json post /api/partners/v2.0/org/{org_id}/users/{user_id}/heat-pumps Create a new heat pump for a specific user under a specific organization, with a JSON payload. # Remove a user's heat pump Source: https://developers.podero.com/api-reference/user-heat-pumps/remove-a-users-heat-pump https://app.podero.com/api/partners/v2.0/openapi.json delete /api/partners/v2.0/org/{org_id}/users/{user_id}/heat-pumps/{heat_pump_id} Remove a user's heat pump. Offboarding deauthenticates the OEM; for Bosch that means a ``DELETE /contracts/{gatewayId}`` that stops the OEM pushing datapoints for a removed device. # Submit Heat Pump Explainer Feedback Source: https://developers.podero.com/api-reference/user-heat-pumps/submit-heat-pump-explainer-feedback https://app.podero.com/api/partners/v2.0/openapi.json post /api/partners/v2.0/org/{org_id}/users/{user_id}/heat-pumps/{heat_pump_id}/explainer/{explainer_id}/feedback # Update details of a user's heat pump Source: https://developers.podero.com/api-reference/user-heat-pumps/update-details-of-a-users-heat-pump https://app.podero.com/api/partners/v2.0/openapi.json put /api/partners/v2.0/org/{org_id}/users/{user_id}/heat-pumps/{heat_pump_id} Modify the data of a heat pump related to a specific user under a specific organization, with a JSON payload. # Queue a device-related message to a user Source: https://developers.podero.com/api-reference/user-notifications/queue-a-device-related-message-to-a-user https://app.podero.com/api/partners/v2.0/openapi.json post /api/partners/v2.0/org/{org_id}/users/{user_id}/notifications/information Use the same device-bound information-cue flow as the Django admin action. # Dismiss Inverter Explainer Source: https://developers.podero.com/api-reference/user-solar-inverters/dismiss-inverter-explainer https://app.podero.com/api/partners/v2.0/openapi.json post /api/partners/v2.0/org/{org_id}/users/{user_id}/inverters/{inverter_id}/explainer/{explainer_id}/dismiss # Get a user's solar inverters Source: https://developers.podero.com/api-reference/user-solar-inverters/get-a-users-solar-inverters https://app.podero.com/api/partners/v2.0/openapi.json get /api/partners/v2.0/org/{org_id}/users/{user_id}/inverters List all solar inverters of a specific user, at a fixed query cost regardless of fleet size. # Get details about a user's solar inverter Source: https://developers.podero.com/api-reference/user-solar-inverters/get-details-about-a-users-solar-inverter https://app.podero.com/api/partners/v2.0/openapi.json get /api/partners/v2.0/org/{org_id}/users/{user_id}/inverters/{inverter_id} Get the solar inverter related to a specific user under a specific organization. # Get inverter data Source: https://developers.podero.com/api-reference/user-solar-inverters/get-inverter-data https://app.podero.com/api/partners/v2.0/openapi.json get /api/partners/v2.0/org/{org_id}/users/{user_id}/inverters/{inverter_id}/data Retrieve time series data for a specified inverter within a given time range. This endpoint is currently in beta release and may be subject to changes. # Get savings data for a specified inverter Source: https://developers.podero.com/api-reference/user-solar-inverters/get-savings-data-for-a-specified-inverter https://app.podero.com/api/partners/v2.0/openapi.json get /api/partners/v2.0/org/{org_id}/users/{user_id}/inverters/{inverter_id}/savings Retrieve time-bucketed savings data for a specified inverter within a given date range. Savings is the money the device's optimization is worth to the party settled on it. On a day the device is a payable member of a payout program that is the created value the payout ledger charged — day-ahead revenue plus its merit share of intraday earnings, less its share of the imbalance those caused and the grid fee — signed, never floored, because the guarantee carries a loss day. On every other day it is the household's measured counterfactual, floored at zero unless `signed`. Each bucket's `savings.basis` names which: `self_consumption`, `payout`, or `mixed` for a bucket holding days of both. # Get schedules for an inverter Source: https://developers.podero.com/api-reference/user-solar-inverters/get-schedules-for-an-inverter https://app.podero.com/api/partners/v2.0/openapi.json get /api/partners/v2.0/org/{org_id}/users/{user_id}/inverters/{inverter_id}/schedules Endpoint to retrieve schedules for a specified inverter within a given time range. This endpoint is currently in beta release and may be subject to changes. Pass `view=desired_states` to get the optimizer's full power-flow envelope per slot (including the explicit S1–S6 desired state) instead of the default collapsed 3-mode schedule. The collapsed view is unchanged and remains the default. # Get statistics for a specified inverter Source: https://developers.podero.com/api-reference/user-solar-inverters/get-statistics-for-a-specified-inverter https://app.podero.com/api/partners/v2.0/openapi.json get /api/partners/v2.0/org/{org_id}/users/{user_id}/inverters/{inverter_id}/statistics Retrieve savings and consumption data for a specified inverter, allowing filtering by keywords and aggregation by various time resolutions.This endpoint is currently in Alpha release and should only be used for testing. # Get the current plan explanation for an inverter Source: https://developers.podero.com/api-reference/user-solar-inverters/get-the-current-plan-explanation-for-an-inverter https://app.podero.com/api/partners/v2.0/openapi.json get /api/partners/v2.0/org/{org_id}/users/{user_id}/inverters/{inverter_id}/explainer/current The customer-facing narrative of what this inverter's battery is planned to do next, written in the organization's language unless `language` overrides it. It is generated on the first read of a plan and cached, so a call that finds no cached explanation writes one and can take several seconds. `null` means no explanation exists for the current window — the plan may not have been solved yet. `feedback` carries the requesting user's own rating and nobody else's. # Get the explanation of a past window for an inverter Source: https://developers.podero.com/api-reference/user-solar-inverters/get-the-explanation-of-a-past-window-for-an-inverter https://app.podero.com/api/partners/v2.0/openapi.json get /api/partners/v2.0/org/{org_id}/users/{user_id}/inverters/{inverter_id}/explainer/historical The customer-facing narrative of what this inverter's battery did over a past window, written in the organization's language unless `language` overrides it. It is generated on the first read of a window and cached, so a call that finds no cached explanation writes one and can take several seconds. `null` means no explanation exists for the window. `feedback` carries the requesting user's own rating and nobody else's. # Reauthenticate a user's inverter Source: https://developers.podero.com/api-reference/user-solar-inverters/reauthenticate-a-users-inverter https://app.podero.com/api/partners/v2.0/openapi.json post /api/partners/v2.0/org/{org_id}/users/{user_id}/inverters/{inverter_id}/auth_session Reauthenticate an inverter related to a specific user under a specific organization. # Register a user's solar inverter Source: https://developers.podero.com/api-reference/user-solar-inverters/register-a-users-solar-inverter https://app.podero.com/api/partners/v2.0/openapi.json post /api/partners/v2.0/org/{org_id}/users/{user_id}/inverters Create a new solar inverter for a specific user under a specific organization, with a JSON payload. # Remove a user's solar inverter Source: https://developers.podero.com/api-reference/user-solar-inverters/remove-a-users-solar-inverter https://app.podero.com/api/partners/v2.0/openapi.json delete /api/partners/v2.0/org/{org_id}/users/{user_id}/inverters/{inverter_id} Remove a solar inverter related to a specific user under a specific organization. # Submit Inverter Explainer Feedback Source: https://developers.podero.com/api-reference/user-solar-inverters/submit-inverter-explainer-feedback https://app.podero.com/api/partners/v2.0/openapi.json post /api/partners/v2.0/org/{org_id}/users/{user_id}/inverters/{inverter_id}/explainer/{explainer_id}/feedback # Update details of a user's solar inverter Source: https://developers.podero.com/api-reference/user-solar-inverters/update-details-of-a-users-solar-inverter https://app.podero.com/api/partners/v2.0/openapi.json put /api/partners/v2.0/org/{org_id}/users/{user_id}/inverters/{inverter_id} Modify the data of a solar inverter related to a specific user under a specific organization, with a JSON payload. # Cancel a live boost and disarm a boost armed for the next session Source: https://developers.podero.com/api-reference/user-wallboxes/cancel-a-live-boost-and-disarm-a-boost-armed-for-the-next-session https://app.podero.com/api/partners/v2.0/openapi.json delete /api/partners/v2.0/org/{org_id}/users/{user_id}/wallboxes/{wallbox_id}/boost Undo a boost on the wallbox — unified "stop boosting" affordance. Cancels a live boost (returns the box to its normal optimization) **and** clears any `boost_for_next_session` arm. Idempotent: 204 whether or not a boost was active or armed. # Enter the connected car's state of charge and schedule for the current charging session Source: https://developers.podero.com/api-reference/user-wallboxes/enter-the-connected-cars-state-of-charge-and-schedule-for-the-current-charging-session https://app.podero.com/api/partners/v2.0/openapi.json post /api/partners/v2.0/org/{org_id}/users/{user_id}/wallboxes/{wallbox_id}/session-soc Provide what is known about the car plugged into the wallbox right now. Wallbox-only spot optimization has no BMS visibility: with `soc_pct` and a battery capacity the optimizer sizes the charging window from the real energy need instead of a fallback estimate. `soc_pct` is always required — it describes the car *now* and re-anchors the session's charge progress on every accepted request. `battery_capacity_kwh` is the connected car's usable capacity. It is stored as the wallbox's durable default, so later sessions need only the state of charge. **It is saved even when the rest of the request is rejected** — losing a first-session capture to an unplug race would send the user through the same dead end again. `charge_deadline` and `charge_target_pct` override the wallbox's configured schedule for this session only ("this once, 90% by 05:00"). They expire with the session — the persistent configuration is never written — and bind from the next recalculation onwards. Returns 204 on success (persisted; a running spot session recalculates immediately). Returns 409 with `reason` when the inputs can't be used: `no_open_session` (no charging session is currently open), `no_battery_capacity` (none supplied here and none configured on the wallbox), or `invalid_charge_deadline` (in the past, or past the point this session stops being steered — spot steering ends 48 hours after the session opened, so a later deadline is unenforceable). Out-of-range values, and a `charge_deadline` without a UTC offset, are rejected as 422 rather than silently clamped or guessed. # Get a user's wallboxes Source: https://developers.podero.com/api-reference/user-wallboxes/get-a-users-wallboxes https://app.podero.com/api/partners/v2.0/openapi.json get /api/partners/v2.0/org/{org_id}/users/{user_id}/wallboxes List all wallboxes of a specific user, at a fixed query cost regardless of fleet size. # Get details about a user's wallbox Source: https://developers.podero.com/api-reference/user-wallboxes/get-details-about-a-users-wallbox https://app.podero.com/api/partners/v2.0/openapi.json get /api/partners/v2.0/org/{org_id}/users/{user_id}/wallboxes/{wallbox_id} Get the wallbox related to a specific user under a specific organization. # Mint a one-time wallbox claim token for the user Source: https://developers.podero.com/api-reference/user-wallboxes/mint-a-one-time-wallbox-claim-token-for-the-user https://app.podero.com/api/partners/v2.0/openapi.json post /api/partners/v2.0/org/{org_id}/users/{user_id}/wallboxes/claim-tokens # Reauthenticate a user's wallbox Source: https://developers.podero.com/api-reference/user-wallboxes/reauthenticate-a-users-wallbox https://app.podero.com/api/partners/v2.0/openapi.json post /api/partners/v2.0/org/{org_id}/users/{user_id}/wallboxes/{wallbox_id}/auth_session Reauthenticate a wallbox related to a specific user under a specific organization. # Register a user's wallbox Source: https://developers.podero.com/api-reference/user-wallboxes/register-a-users-wallbox https://app.podero.com/api/partners/v2.0/openapi.json post /api/partners/v2.0/org/{org_id}/users/{user_id}/wallboxes Create a new wallbox for a specific user under a specific organization, with a JSON payload. # Remove a user's wallbox Source: https://developers.podero.com/api-reference/user-wallboxes/remove-a-users-wallbox https://app.podero.com/api/partners/v2.0/openapi.json delete /api/partners/v2.0/org/{org_id}/users/{user_id}/wallboxes/{wallbox_id} Remove a wallbox related to a specific user under a specific organization. # Send a raw start-charging command to an EV charger (wallbox) Source: https://developers.podero.com/api-reference/user-wallboxes/send-a-raw-start-charging-command-to-an-ev-charger-wallbox https://app.podero.com/api/partners/v2.0/openapi.json post /api/partners/v2.0/org/{org_id}/users/{user_id}/wallboxes/{wallbox_id}/start_charging Push a raw start command onto the wire of the EV charger identified by the given UUID. This is the wire escape hatch, not "charge now". On an OCPP charger it sends one RemoteStart plus a charging profile at the charger's installed maximum, carrying a 4-hour fail-open lease: when nothing renews the command the charger returns to its own configured behaviour. OCPP still applies — the command can resume a paused transaction, but it cannot create one without a cable and authorisation at the charger. It is refused while a charging session steers the charger, because that session re-asserts its own profile within one steering poll and would undo the command: - **Something is steering** (a wallbox solar/price session, or the owner's EV charging through this charger): 409 with `reason=steering_active` and `steerer` naming which one. To charge now under an optimized session, use `POST /boost` instead. - **Nothing is steering**: 204, and the command reaches the charger. Returns 501 when the charger's brand has no remote start, and 503 while the charger is not reachable yet (`retry_after_seconds`). # Send a raw stop-charging command to an EV charger (wallbox) Source: https://developers.podero.com/api-reference/user-wallboxes/send-a-raw-stop-charging-command-to-an-ev-charger-wallbox https://app.podero.com/api/partners/v2.0/openapi.json post /api/partners/v2.0/org/{org_id}/users/{user_id}/wallboxes/{wallbox_id}/stop_charging Push a raw stop command onto the wire of the EV charger identified by the given UUID. The mirror of `POST /start_charging`. On an OCPP charger it pauses the transaction at 0 A under the same 4-hour fail-open lease, so the charger returns to its own configured behaviour when nothing renews the pause. It is refused while a charging session steers the charger, because that session re-asserts its own profile within one steering poll and would undo the pause: - **Something is steering** (a wallbox solar/price session, or the owner's EV charging through this charger): 409 with `reason=steering_active` and `steerer` naming which one. Turn optimization off for the steering device to stop the charge for good. - **Nothing is steering**: 204, and the command reaches the charger. Returns 501 when the charger's brand has no remote stop. # Trigger a boost charge or arm boost for the next session Source: https://developers.podero.com/api-reference/user-wallboxes/trigger-a-boost-charge-or-arm-boost-for-the-next-session https://app.podero.com/api/partners/v2.0/openapi.json post /api/partners/v2.0/org/{org_id}/users/{user_id}/wallboxes/{wallbox_id}/boost Trigger a "charge now" boost on the wallbox, overriding whatever optimization it is under — solar-surplus control, price windows, or both. Behaviour depends on the wallbox's current state: - **EV-managed** (the owner has a connected EV): 409 with `reason=ev_managed` — the EV workflow steers this wallbox; use the EV boost endpoint instead. - **Not steered for charging** (no optimization mode the boost could override — e.g. nothing enabled, unauthenticated, no current modulation): 409 with `reason=not_eligible`. These two checks run before the state checks below. Boost works in all three wallbox-only modes (solar, spot, solar+spot), with two mode-specific limits: - a **spot-optimized** box boosts only while its price-optimization run is actively steering. Plugged with no such run — no session open yet, or the session's charging plan already ran to completion — boost requests 409 `not_eligible` rather than accepting a boost that would not take effect. While unplugged it arms normally; - a box eligible for **nothing but boost** (solar mode without an inverter) is live-fire only: while unplugged it 409s `not_eligible` instead of arming `boost_for_next_session`, because nothing would read the flag. - **Plugged, boostable** (`boost_state=available` — paused at 0 A OR charging on surplus or a price window): immediately holds the box at full rate. - **Unplugged** (`boost_state=unavailable`): arms `boost_for_next_session=True`; the next plug-in's workflow auto-fires boost, then clears the flag. - **A boost already running** (`ongoing` or `requested`): 409 `already_charging`. - **Cancel in flight** (`stopping`): un-cancels the live boost, returning to `ongoing`. Returns 204 on success (boost triggered, un-cancelled, or armed). Returns 409 when the request can't be honoured, with `state` (current `boost_state`) and `reason` (`ev_managed`, `not_eligible`, `already_charging`, or `internal_error`). The arm path is idempotent. To cancel a live boost or clear an armed flag, use `DELETE /boost`. # Update details of a user's wallbox Source: https://developers.podero.com/api-reference/user-wallboxes/update-details-of-a-users-wallbox https://app.podero.com/api/partners/v2.0/openapi.json put /api/partners/v2.0/org/{org_id}/users/{user_id}/wallboxes/{wallbox_id} Modify the data of an wallbox related to a specific user under a specific organization, with a JSON payload. # Aggregate member counts, buckets and facets Source: https://developers.podero.com/api-reference/users/aggregate-member-counts-buckets-and-facets https://app.podero.com/api/partners/v2.0/openapi.json get /api/partners/v2.0/org/{org_id}/users/summary Org-wide aggregate for the console Users screen: member counts, Support and health bucket counts (a server-side count over the same per-member classification the users list serves), and the facet options (OEMs and device kinds present) that drive the filter dropdowns — without the client fetching the org's users or devices. Backed by grouped queries whose count is constant in org device count, so it runs live on every hit with no response cache. # Count of members matching the filters Source: https://developers.podero.com/api-reference/users/count-of-members-matching-the-filters https://app.podero.com/api/partners/v2.0/openapi.json get /api/partners/v2.0/org/{org_id}/users/count Number of members matching the same filters as the users list — the filtered total the paginated list response can't carry itself, so the console can size its pager range and page count to the active filters. Filters compose (AND) exactly as on the list. # Get details about a user Source: https://developers.podero.com/api-reference/users/get-details-about-a-user https://app.podero.com/api/partners/v2.0/openapi.json get /api/partners/v2.0/org/{org_id}/users/{user_id} Get the data of a user by its ID and by the ID of the user's organization. # Get details about an user by external ID Source: https://developers.podero.com/api-reference/users/get-details-about-an-user-by-external-id https://app.podero.com/api/partners/v2.0/openapi.json get /api/partners/v2.0/org/{org_id}/users/by-ext-id/{external_id} Get the data of a user by its external ID. # List users in the organization Source: https://developers.podero.com/api-reference/users/list-users-in-the-organization https://app.podero.com/api/partners/v2.0/openapi.json get /api/partners/v2.0/org/{org_id}/users List users within the specified organization. By default returns ALL users (legacy, unbounded). Pass `page` to fetch one page at a time — same `page`/`page_size` params as GET /org/{org_id}/devices. Whale orgs (100k+ members) must page: the full response is large enough that nginx buffers it to disk. Filters compose (AND) and apply before pagination, and every ordering breaks ties on member id, so a filtered/sorted page sequence is stable — the console's cockpit walks it, and `q` with a member id / email / external id serves its `?user=` deep link. # Register a new user Source: https://developers.podero.com/api-reference/users/register-a-new-user https://app.podero.com/api/partners/v2.0/openapi.json post /api/partners/v2.0/org/{org_id}/users Create a new user in the specified organization, with a JSON payload. # Remove a user Source: https://developers.podero.com/api-reference/users/remove-a-user https://app.podero.com/api/partners/v2.0/openapi.json delete /api/partners/v2.0/org/{org_id}/users/{user_id} Delete a user by its user ID and the ID of the user's organization. # Update the user information Source: https://developers.podero.com/api-reference/users/update-the-user-information https://app.podero.com/api/partners/v2.0/openapi.json put /api/partners/v2.0/org/{org_id}/users/{user_id} Update the user data through the user ID and through the ID of the user's organization, with a JSON payload. # Get one standalone HEMS session with its decision timeline and command verdicts Source: https://developers.podero.com/api-reference/wallbox-hems-sessions/get-one-standalone-hems-session-with-its-decision-timeline-and-command-verdicts https://app.podero.com/api/partners/v2.0/openapi.json get /api/partners/v2.0/org/{org_id}/users/{user_id}/wallboxes/{wallbox_id}/hems-sessions/{session_id} # Get the currently running standalone HEMS session for a wallbox Source: https://developers.podero.com/api-reference/wallbox-hems-sessions/get-the-currently-running-standalone-hems-session-for-a-wallbox https://app.podero.com/api/partners/v2.0/openapi.json get /api/partners/v2.0/org/{org_id}/users/{user_id}/wallboxes/{wallbox_id}/hems-sessions/current Returns the open session wrapped as `{ "session": ... }` with its decision timeline and per-command steering verdicts. When none is running, returns 200 with `{ "session": null }` so clients can poll without exception handling. `energy_from_solar_kwh` and `savings_eur` are running totals computed as of the request time (they are only persisted when the session ends). # List standalone HEMS steering sessions for a wallbox Source: https://developers.podero.com/api-reference/wallbox-hems-sessions/list-standalone-hems-steering-sessions-for-a-wallbox https://app.podero.com/api/partners/v2.0/openapi.json get /api/partners/v2.0/org/{org_id}/users/{user_id}/wallboxes/{wallbox_id}/hems-sessions One row per charging session the wallbox steered on its own, without a connected vehicle account, newest first, for sessions that started on a UTC day between `from` and `to` inclusive. Each row carries the rolled-up outcome, the energy taken from solar, the home battery and the grid in kWh, the savings in EUR with their attribution reason, and the counts of commands sent, applied, ineffective and rejected. A null savings figure means the provenance could not be established, not zero. The per-poll decision timeline and each command's verdict are on the unified charging-sessions detail route under the user, addressed as `wb_{id}`. # Data Reference Source: https://developers.podero.com/deep-dives/day-ahead-trading/data-reference Data specifications and formats for Day-Ahead Trading # Data Reference Technical specifications for Day-Ahead Trading API data. ## Quick Reference | Metric | Value | | - | - | | **Time Resolution** | 15 minutes | | **Intervals per Day** | 96 (no gaps allowed) | | **Price Unit** | EUR/MWh | | **Energy Unit** | Wh per 15 min | | **Timestamp Format** | ISO 8601 UTC (`YYYY-MM-DDTHH:MM:SSZ`) | | **Timestamp Alignment** | :00, :15, :30, :45 | | **Confirmation Deadline** | 14:30 CET (intraday) or 23:30 CET (non-intraday) | *** ## Price Forecast Data | Field | Type | Unit | Constraints | | - | - | - | - | | `date` | String | ISO 8601 Date | Future dates only (`YYYY-MM-DD`) | | `timestamp` | String | ISO 8601 DateTime | UTC, aligned to :00/:15/:30/:45 | | `price_eur_mwh` | Float | EUR/MWh | Positive or negative accepted | **Validation:** * Exactly 96 intervals, no gaps * Chronological order * ISO 8601 UTC format with `Z` suffix *** ## Load Curve Data | Field | Type | Unit | Description | | - | - | - | - | | `trade_id` | String | UUID | Store for confirmation | | `date` | String | ISO 8601 Date | Delivery date | | `expiration` | String | ISO 8601 DateTime | Confirmation deadline | | `timestamp` | String | ISO 8601 DateTime | 15-min interval start | | `energy_wh` | Integer | Wh | Energy per interval | **Curves:** * **Optimized:** Volume to purchase (with Podero steering) * **Unoptimized:** Baseline volume (no steering) * **Delta:** `optimized - unoptimized` (positive = buy more, negative = buy less) *** ## Trade Confirmation Data | Field | Type | Required | Description | | - | - | - | - | | `trade_id` | String (UUID) | ✅ | From load curve response | | `accepted` | Boolean | ✅ | `true` = activate optimization, `false` = baseline | **Submit with 30-minute buffer:** * **Intraday traders:** By 14:30 CET (before intraday trading at 15:00) * **Non-intraday traders:** By 23:30 CET (before optimization starts at midnight) *** ## Unit Conversions | From | To | Formula | | - | - | - | | Wh | MWh | `÷ 1,000,000` | | MWh | Wh | `× 1,000,000` | | EUR/MWh | EUR/kWh | `÷ 1,000` | | EUR/kWh | EUR/MWh | `× 1,000` | *** API integration instructions Back to overview # Integration Guide Source: https://developers.podero.com/deep-dives/day-ahead-trading/integration Step-by-step API integration for Day-Ahead Trading # Integration Guide This guide covers the three-step API integration process. All steps must be completed before the day-ahead market closes (typically 12:00 CET). *** ## Step 1: Upload Price Forecasts **Timing:** \~09:00 Send your price forecasts to Podero to trigger the optimization calculation. ### Endpoint **POST** `/api/partners/v2.0/organizations/trading/dayahead/prices` [View API documentation →](https://developers.podero.com) ### Requirements * 15-minute intervals (96 intervals per day) * EUR/MWh pricing * No gaps in data * Future dates only ### Example ```bash cURL theme={null} curl -X POST \ 'https://app.podero.com/api/partners/v2.0/organizations/trading/dayahead/prices' \ -H 'Authorization: Bearer {auth_token}' \ -H 'Content-Type: application/json' \ -d '{ "date": "2024-02-17", "prices": [ {"timestamp": "2024-02-17T00:00:00Z", "price_eur_mwh": 45.50}, {"timestamp": "2024-02-17T00:15:00Z", "price_eur_mwh": 43.20} // ... 94 more intervals ] }' ``` ```python Python theme={null} response = requests.post( 'https://app.podero.com/api/partners/v2.0/organizations/trading/dayahead/prices', headers={'Authorization': f'Bearer {auth_token}'}, json={'date': '2024-02-17', 'prices': price_data} ) result = response.json() # Wait until result['next_calculation_ready_at'] before Step 2 ``` ### Response ```json theme={null} { "state": "accepted", "next_calculation_ready_at": "2024-02-16T10:30:00Z" } ``` Wait until `next_calculation_ready_at` before fetching load curves in Step 2. *** ## Step 2: Fetch Load Curves **Timing:** After `next_calculation_ready_at` (\~10:30) Fetch the optimized and unoptimized load curves to inform your market bids. ### Endpoints **GET** `/organizations/trading/dayahead/load-curves` [API docs →](https://developers.podero.com) **GET** `/organizations/trading/dayahead/load-curves/by-price-zone` [API docs →](https://developers.podero.com) ### Example ```bash cURL theme={null} curl -X GET \ 'https://app.podero.com/api/partners/v2.0/organizations/trading/dayahead/load-curves?date=2024-02-17' \ -H 'Authorization: Bearer {auth_token}' ``` ```python Python theme={null} response = requests.get( 'https://app.podero.com/api/partners/v2.0/organizations/trading/dayahead/load-curves', headers={'Authorization': f'Bearer {auth_token}'}, params={'date': '2024-02-17'} ) curves = response.json() trade_id = curves['trade_id'] # Save for Step 3! ``` ### Response ```json theme={null} { "trade_id": "550e8400-e29b-41d4-a716-446655440000", "date": "2024-02-17", "expiration": "2024-02-16T23:59:59Z", "curves": { "optimized": [ {"timestamp": "2024-02-17T00:00:00Z", "energy_wh": 125000} // ... 95 more intervals ], "unoptimized": [ {"timestamp": "2024-02-17T00:00:00Z", "energy_wh": 150000} // ... 95 more intervals ] } } ``` Store the `trade_id` - you'll need it for Step 3 confirmation. *** ## Step 3: Confirm Trade **Timing:** Before 14:30 (if trading intraday) or before 23:30 (if not trading intraday) Confirm to Podero that you have purchased the optimized volume to activate the optimization. The confirmation deadline depends on your trading strategy: * **Trading intraday:** Confirm by **14:30** (30-minute buffer before intraday trading starts at 15:00) * **Not trading intraday:** Confirm by **23:30** (30-minute buffer before optimization schedule starts at midnight) ### Endpoint **POST** `/api/partners/v2.0/organizations/trading/dayahead/load-curve-confirmation` [View API documentation →](https://developers.podero.com) ### Example ```bash cURL theme={null} curl -X POST \ 'https://app.podero.com/api/partners/v2.0/organizations/trading/dayahead/load-curve-confirmation' \ -H 'Authorization: Bearer {auth_token}' \ -H 'Content-Type: application/json' \ -d '{ "trade_id": "550e8400-e29b-41d4-a716-446655440000", "accepted": true }' ``` ```python Python theme={null} response = requests.post( 'https://app.podero.com/api/partners/v2.0/organizations/trading/dayahead/load-curve-confirmation', headers={'Authorization': f'Bearer {auth_token}'}, json={'trade_id': trade_id, 'accepted': True} ) # Optimization will begin at 00:00 on delivery day ``` Confirm that you purchased the optimized volume. Devices will be steered according to the optimized curve on Day 2. Confirm that you did not purchase the optimized volume. Devices will operate according to baseline behavior. Confirmation must be submitted before intraday trading starts (15:00) or before optimization begins (midnight). **Recommended deadlines:** 14:30 for intraday traders, 23:30 for non-intraday traders. These buffers allow for contingencies and system processing time. *** ## Common Issues **Issue:** Missing intervals or invalid timestamps **Solution:** Ensure exactly 96 intervals with no gaps, aligned to :00, :15, :30, :45 **Issue:** Calling Step 2 too early **Solution:** Wait until the `next_calculation_ready_at` timestamp from Step 1 **Issue:** Trade confirmation submitted after deadline **Solution:** Submit confirmation with sufficient buffer: * **Intraday traders:** Complete by 14:30 (before intraday trading at 15:00) * **Non-intraday traders:** Complete by 23:30 (before optimization starts at midnight) These 30-minute buffers allow for contingencies and system processing time. *** ## Next Steps View detailed data specifications Back to overview # Overview Source: https://developers.podero.com/deep-dives/day-ahead-trading/overview Understand how Podero optimizes your energy portfolio through day-ahead market participation # Day-Ahead Trading Day-Ahead Trading enables utilities to optimize energy procurement costs by leveraging the flexibility of Podero's connected device fleet. By shifting energy consumption to low-price periods while maintaining end-user comfort, you can reduce wholesale energy costs and improve grid balancing. ## Business Value ### Cost Optimization Podero analyzes your day-ahead price forecasts and calculates an optimized consumption schedule that shifts flexible loads (heat pumps, EV charging, etc.) to periods with lower energy prices. The difference between optimized and baseline consumption represents your potential cost savings. **Example:** If your baseline consumption during peak hours (high prices) is 500 MWh, Podero can shift 150 MWh to off-peak hours (low prices), reducing your procurement costs while maintaining all end-user comfort requirements. ### Revenue Opportunities Beyond cost reduction, the flexible capacity can create additional revenue streams: * **Arbitrage:** Buy energy when prices are low, shift consumption to avoid high-price periods * **Grid Services:** Provide demand response to balance the grid * **Market Participation:** Actively shape your load profile to match your trading strategy ## How It Works The Day-Ahead optimization operates over a **\~36-hour window** with three distinct phases: **Day 1, 09:00 - 12:00** 1. **Upload Prices (\~09:00):** You send your day-ahead price forecasts to Podero 2. **Optimization (\~09:00 - 10:30):** Podero calculates optimized and unoptimized load curves 3. **Fetch Curves (\~10:30):** You retrieve both curves to calculate the delta 4. **Trade on Market (\~10:30 - 12:00):** You adjust your market bids based on the optimized curve **Day 1, 14:30 or 23:30** You confirm to Podero that you have purchased the optimized volume. Timing depends on your trading strategy: * **Intraday traders:** Confirm by 14:30 (before intraday market opens at 15:00) * **Non-intraday traders:** Confirm by 23:30 (before optimization starts at midnight) **Day 2, 00:00 - 24:00** Podero steers the device fleet according to the confirmed optimized load curve, ensuring your actual consumption matches your purchased volumes. **Confirmation deadline depends on your trading strategy:** * **Intraday traders:** Confirm by **14:30** (before intraday trading starts at 15:00) * **Non-intraday traders:** Confirm by **23:30** (before optimization starts at midnight) This confirms that you **have** purchased the optimized volume. Without confirmation, devices operate according to baseline behavior. The 30-minute buffers allow for contingencies and system processing. ## Understanding the Delta The key to Day-Ahead Trading is the **delta** between optimized and unoptimized curves: ``` Delta = Optimized - Unoptimized ``` * **Positive delta:** Increased consumption (buy more energy for that interval) * **Negative delta:** Decreased consumption (buy less energy for that interval) * **Net effect:** Shifts consumption from high-price to low-price periods **Example Scenario:** | Time | Price | Unoptimized | Optimized | Delta | Action | | - | - | - | - | - | - | | 02:00 | 25 EUR/MWh | 100 MWh | 150 MWh | +50 MWh | Buy 50 MWh more (cheap) | | 18:00 | 85 EUR/MWh | 200 MWh | 150 MWh | -50 MWh | Buy 50 MWh less (expensive) | The optimization shifts 50 MWh from the expensive evening period to the cheap night period, saving: `50 MWh × (85 - 25) EUR/MWh = 3,000 EUR` ## Fleet Flexibility Podero optimizes consumption across multiple device types: * **Heat Pumps:** Shift heating/cooling cycles while maintaining temperature comfort * **Electric Vehicles:** Schedule charging during low-price periods while meeting departure times * **PV Systems + Batteries:** Optimize battery charging/discharging and maximize self-consumption The optimization engine respects all user comfort settings, device technical constraints, and grid requirements. ## Risk Mitigation ### You Maintain Control * You can reject the optimization at any time before the confirmation deadline * No activation until you send the confirmation * Devices automatically fall back to unoptimized behavior if not confirmed ### Transparency * Both optimized and unoptimized curves provided * Full visibility into the delta before trading * You see exactly what will happen before committing ## Prerequisites Before integrating, ensure you have: * Active Partner API credentials with trading permissions * System to generate 15-minute price forecasts * Trading desk integration or automation * Process to confirm trades by 14:30 (intraday) or 23:30 (non-intraday) ## Next Steps Learn how to integrate the Day-Ahead Trading API # Device Explainers Source: https://developers.podero.com/partner-api/explainers/integration Show customers why Podero is steering their heat pump or solar inverter Explainers turn a device's optimization plan into a short, customer-facing narrative. The API supports current and historical explainers for heat pumps and solar inverters, together with feedback and dismissal actions. An explainer is generated on the first read of a plan or historical window and then cached. Because the first request can take several seconds, show a loading state and do not use an aggressive request timeout. Only request an explainer when the device is actively using smart optimization and explainers are enabled for the organization. For solar inverters, also confirm that a battery is connected. This is the same fail-closed approach used by myPodero. ## Supported devices and endpoints Substitute `heat-pumps/{heat_pump_id}` or `inverters/{inverter_id}` for `{device_path}` in the endpoints below. | Purpose | Method | Endpoint | | - | - | - | | Explain the active plan | `GET` | `/org/{org_id}/users/{user_id}/{device_path}/explainer/current` | | Explain a completed window | `GET` | `/org/{org_id}/users/{user_id}/{device_path}/explainer/historical` | | Record feedback | `POST` | `/org/{org_id}/users/{user_id}/{device_path}/explainer/{explainer_id}/feedback` | | Dismiss an explainer | `POST` | `/org/{org_id}/users/{user_id}/{device_path}/explainer/{explainer_id}/dismiss` | All examples use the base URL `https://app.podero.com/api/partners/v2.0` and require a bearer token. The `user_id` in the path is the owner of the device. ## 1. Fetch the current explainer Use the current endpoint for the active optimization plan. You can pass an optional `language` query parameter, such as `en` or `de`. When it is omitted, Podero uses the organization's default language. ```bash cURL theme={null} curl -G \ 'https://app.podero.com/api/partners/v2.0/org/{org_id}/users/{user_id}/heat-pumps/{heat_pump_id}/explainer/current' \ -H 'Authorization: Bearer {auth_token}' \ --data-urlencode 'language=de' ``` ```typescript TypeScript theme={null} const params = new URLSearchParams({ language: currentLanguage }); const response = await fetch( `${baseUrl}/org/${orgId}/users/${userId}/heat-pumps/${heatPumpId}/explainer/current?${params}`, { headers: { Authorization: `Bearer ${authToken}` } }, ); if (!response.ok) throw new Error(`Explainer request failed: ${response.status}`); const explainer: Explainer | null = await response.json(); ``` ```bash cURL theme={null} curl -G \ 'https://app.podero.com/api/partners/v2.0/org/{org_id}/users/{user_id}/inverters/{inverter_id}/explainer/current' \ -H 'Authorization: Bearer {auth_token}' \ --data-urlencode 'language=de' ``` ```typescript TypeScript theme={null} const params = new URLSearchParams({ language: currentLanguage }); const response = await fetch( `${baseUrl}/org/${orgId}/users/${userId}/inverters/${inverterId}/explainer/current?${params}`, { headers: { Authorization: `Bearer ${authToken}` } }, ); if (!response.ok) throw new Error(`Explainer request failed: ${response.status}`); const explainer: Explainer | null = await response.json(); ``` A successful response contains a durable `id`, the localized explanation, and the authenticated caller's own most recent feedback: ```json theme={null} { "id": "c92b58d6-14a7-4eba-9836-cef076735a4a", "explanation": "Podero will shift energy use toward the lower-price hours this afternoon.", "feedback": null } ``` The response can be `200 OK` with a JSON body of `null` when no explanation is available, for example when a plan has not been solved yet. Treat this as a normal empty state rather than an error. Include the selected language in your client cache key. When a customer changes language, fetch again instead of displaying text cached in the previous language. myPodero keeps current explainers fresh for five minutes. ## 2. Fetch a historical explainer Use the historical endpoint to explain what happened during a completed past window. Supply `start` and `end` as ISO 8601 timestamps. Use URL encoding rather than concatenating the query string so that timezone offsets containing `+` are preserved. ```bash cURL theme={null} curl -G \ 'https://app.podero.com/api/partners/v2.0/org/{org_id}/users/{user_id}/heat-pumps/{heat_pump_id}/explainer/historical' \ -H 'Authorization: Bearer {auth_token}' \ --data-urlencode 'start=2026-09-16T00:00:00Z' \ --data-urlencode 'end=2026-09-17T00:00:00Z' \ --data-urlencode 'language=de' ``` ```typescript TypeScript theme={null} const params = new URLSearchParams({ start: '2026-09-16T00:00:00Z', end: '2026-09-17T00:00:00Z', language: currentLanguage, }); const response = await fetch( `${baseUrl}/org/${orgId}/users/${userId}/heat-pumps/${heatPumpId}/explainer/historical?${params}`, { headers: { Authorization: `Bearer ${authToken}` } }, ); if (!response.ok) throw new Error(`Explainer request failed: ${response.status}`); const explainer: Explainer | null = await response.json(); ``` ```bash cURL theme={null} curl -G \ 'https://app.podero.com/api/partners/v2.0/org/{org_id}/users/{user_id}/inverters/{inverter_id}/explainer/historical' \ -H 'Authorization: Bearer {auth_token}' \ --data-urlencode 'start=2026-09-16T00:00:00Z' \ --data-urlencode 'end=2026-09-17T00:00:00Z' \ --data-urlencode 'language=de' ``` ```typescript TypeScript theme={null} const params = new URLSearchParams({ start: '2026-09-16T00:00:00Z', end: '2026-09-17T00:00:00Z', language: currentLanguage, }); const response = await fetch( `${baseUrl}/org/${orgId}/users/${userId}/inverters/${inverterId}/explainer/historical?${params}`, { headers: { Authorization: `Bearer ${authToken}` } }, ); if (!response.ok) throw new Error(`Explainer request failed: ${response.status}`); const explainer: Explainer | null = await response.json(); ``` Request completed windows only. A future or otherwise unavailable window returns `200 OK` with `null`. For daily history views, normalize the selected day to explicit UTC instants and use the same window in the cache key. Historical explainers are persisted for their window. myPodero therefore caches a successfully fetched historical explainer for the rest of the session. ## 3. Collect feedback Use the explainer `id` from either read endpoint when a customer rates the explanation. Positive feedback only needs `helpful`. Negative feedback can include one of these stable reason codes: * `wrong_language` * `confusing` * `disagree_with_steering` Send the code, never a translated label. ```bash cURL theme={null} curl -X POST \ 'https://app.podero.com/api/partners/v2.0/org/{org_id}/users/{user_id}/heat-pumps/{heat_pump_id}/explainer/{explainer_id}/feedback' \ -H 'Authorization: Bearer {auth_token}' \ -H 'Content-Type: application/json' \ -d '{ "helpful": false, "reason": "confusing" }' ``` ```typescript TypeScript theme={null} const body = { helpful: false, reason: 'confusing' }; await fetch( `${baseUrl}/org/${orgId}/users/${userId}/heat-pumps/${heatPumpId}/explainer/${explainerId}/feedback`, { method: 'POST', headers: { Authorization: `Bearer ${authToken}`, 'Content-Type': 'application/json', }, body: JSON.stringify(body), }, ); ``` ```bash cURL theme={null} curl -X POST \ 'https://app.podero.com/api/partners/v2.0/org/{org_id}/users/{user_id}/inverters/{inverter_id}/explainer/{explainer_id}/feedback' \ -H 'Authorization: Bearer {auth_token}' \ -H 'Content-Type: application/json' \ -d '{ "helpful": false, "reason": "confusing" }' ``` ```typescript TypeScript theme={null} const body = { helpful: false, reason: 'confusing' }; await fetch( `${baseUrl}/org/${orgId}/users/${userId}/inverters/${inverterId}/explainer/${explainerId}/feedback`, { method: 'POST', headers: { Authorization: `Bearer ${authToken}`, 'Content-Type': 'application/json', }, body: JSON.stringify(body), }, ); ``` The response is: ```json theme={null} { "recorded": true } ``` Feedback belongs to the authenticated caller, not necessarily the device owner named by `user_id`. The next read returns only that caller's latest rating in the `feedback` field. An unsupported reason code returns `422 Unprocessable Entity`. ## 4. Dismiss an explainer Dismiss an explainer when the customer closes it permanently: ```bash theme={null} curl -X POST \ 'https://app.podero.com/api/partners/v2.0/org/{org_id}/users/{user_id}/heat-pumps/{heat_pump_id}/explainer/{explainer_id}/dismiss' \ -H 'Authorization: Bearer {auth_token}' ``` ```bash theme={null} curl -X POST \ 'https://app.podero.com/api/partners/v2.0/org/{org_id}/users/{user_id}/inverters/{inverter_id}/explainer/{explainer_id}/dismiss' \ -H 'Authorization: Bearer {auth_token}' ``` The response is: ```json theme={null} { "dismissed": true } ``` Remove the card from local state immediately, then restore it if the request fails. A dismissed explainer is not returned by subsequent reads. ## Recommended UI behavior 1. Check the organization's explainer setting and the device's smart-optimization state before making a request. 2. Show a loading placeholder because the first read may generate the explanation synchronously. 3. Render nothing when the API returns `null`. 4. Display `explanation` as plain text. Do not interpret it as HTML or Markdown. 5. Use `id` for feedback and dismissal actions. 6. Hide the feedback prompt when `feedback` is already present, or reflect the saved rating. 7. Do not retry generation requests automatically in a tight loop. myPodero disables automatic retries and lets the user or a later refresh try again. ## TypeScript types ```typescript theme={null} type ExplainerFeedback = { helpful: boolean; reason: 'wrong_language' | 'confusing' | 'disagree_with_steering' | null; }; type Explainer = { id: string; explanation: string; feedback: ExplainerFeedback | null; }; ``` The complete endpoint schemas are also available in the interactive API Reference. # Explainer API Reference Source: https://developers.podero.com/partner-api/explainers/reference Endpoints, parameters, and schemas for heat-pump and solar-inverter explainers The Device Explainers API exposes the same operations for heat pumps and solar inverters. All endpoints use the following base URL and require a bearer token: ```text theme={null} https://app.podero.com/api/partners/v2.0 ``` ## Endpoints | Method | Endpoint | Description | | - | - | - | | `GET` | `/org/{org_id}/users/{user_id}/heat-pumps/{heat_pump_id}/explainer/current` | Get the explanation for the active plan | | `GET` | `/org/{org_id}/users/{user_id}/heat-pumps/{heat_pump_id}/explainer/historical` | Get the explanation for a completed window | | `POST` | `/org/{org_id}/users/{user_id}/heat-pumps/{heat_pump_id}/explainer/{explainer_id}/feedback` | Rate an explanation | | `POST` | `/org/{org_id}/users/{user_id}/heat-pumps/{heat_pump_id}/explainer/{explainer_id}/dismiss` | Dismiss an explanation | | Method | Endpoint | Description | | - | - | - | | `GET` | `/org/{org_id}/users/{user_id}/inverters/{inverter_id}/explainer/current` | Get the explanation for the active plan | | `GET` | `/org/{org_id}/users/{user_id}/inverters/{inverter_id}/explainer/historical` | Get the explanation for a completed window | | `POST` | `/org/{org_id}/users/{user_id}/inverters/{inverter_id}/explainer/{explainer_id}/feedback` | Rate an explanation | | `POST` | `/org/{org_id}/users/{user_id}/inverters/{inverter_id}/explainer/{explainer_id}/dismiss` | Dismiss an explanation | ## Path parameters Organization that owns the user and device. Owner of the device. This can differ from the authenticated caller when an organization administrator accesses a member's device. Heat pump to explain. Required on heat-pump endpoints. Solar inverter to explain. Required on inverter endpoints. Durable identifier returned by an explainer read. Required for feedback and dismissal. ## Get the current explainer Returns a customer-facing explanation of the device's active optimization plan. ### Query parameters Optional language code, such as `en` or `de`. When omitted, Podero uses the organization's default language. ### Response ```json theme={null} { "id": "c92b58d6-14a7-4eba-9836-cef076735a4a", "explanation": "Podero will shift energy use toward the lower-price hours this afternoon.", "feedback": null } ``` The request returns `200 OK` with JSON `null` when there is no current explanation, such as when an optimization plan has not been solved. The first request for a plan can take several seconds because it generates and caches the explanation synchronously. ## Get a historical explainer Returns a customer-facing explanation of a completed past window. ### Query parameters Inclusive start of the window as an ISO 8601 timestamp. End of the window as an ISO 8601 timestamp. Request completed past windows only. Optional language code, such as `en` or `de`. When omitted, Podero uses the organization's default language. The response uses the same schema as the current endpoint. An unavailable or future window returns `200 OK` with JSON `null`. ## Explainer response schema Durable explainer identifier used by feedback and dismissal requests. Customer-facing narrative in the resolved language. Render this value as plain text. The authenticated caller's latest rating, or `null` when that caller has not rated the explainer. Whether the caller found the explanation helpful. Negative-feedback reason: `wrong_language`, `confusing`, or `disagree_with_steering`. This is `null` for positive feedback or when no reason was supplied. ## Submit feedback Records a rating for the authenticated caller. The caller is the actor associated with the feedback even when `user_id` identifies another member whose device is being accessed. ### Request body Whether the explanation was helpful. Optional negative-feedback reason. Accepted values are `wrong_language`, `confusing`, and `disagree_with_steering`. Omit this field for positive feedback. ```json theme={null} { "helpful": false, "reason": "confusing" } ``` ### Response ```json theme={null} { "recorded": true } ``` An unsupported `reason` returns `422 Unprocessable Entity`. ## Dismiss an explainer Dismisses the explainer identified by `explainer_id`. The request has no body. ### Response ```json theme={null} { "dismissed": true } ``` A dismissed explainer is not returned by subsequent explainer reads. ## Status codes | Status | Meaning | | - | - | | `200 OK` | The read or action succeeded. Explainer reads can return a JSON body of `null`. | | `401 Unauthorized` | The bearer token is missing or invalid. | | `403 Forbidden` | The authenticated caller cannot access the requested organization resource. | | `404 Not Found` | The user or device does not exist in the specified organization, or the explainer cannot be addressed. | | `422 Unprocessable Entity` | A required value is missing, malformed, or outside the accepted enum values. | See client-side gating, caching, loading, feedback, and dismissal recommendations. # Connect Heat Pump Source: https://developers.podero.com/partner-api/getting-started/connect-heat-pump Add a heat pump device using the Podero Connect UI # Connect a Heat Pump Create an onboarding session and redirect your user to Connect UI to add their device: ```bash cURL theme={null} curl -X POST \ 'https://app.podero.com/api/partners/v2.0/device-onboarding' \ -H 'Authorization: Bearer {auth_token}' \ -H 'Content-Type: application/json' \ -d '{ "language": "en", "price_zone_default": "DE", "success_url": "https://yourapp.com/success", "cancel_url": "https://yourapp.com/cancel", "user": "{user_id}" }' ``` ```python Python theme={null} response = requests.post( 'https://app.podero.com/api/partners/v2.0/device-onboarding', headers={ 'Authorization': f'Bearer {auth_token}', 'Content-Type': 'application/json' }, json={ 'language': 'en', 'price_zone_default': 'DE', 'success_url': 'https://yourapp.com/success', 'cancel_url': 'https://yourapp.com/cancel', 'user': user_id, } ) # Redirect user to this URL authentication_url = response.json()['authentication_url'] print(f"Redirect to: {authentication_url}") ``` **What happens next:** 1. User is redirected to Connect UI 2. User selects their device manufacturer 3. User authenticates with manufacturer credentials 4. Device is connected and linked to their account 5. User is redirected back to your `success_url` with `?deviceId={device_id}` For testing, use demo credentials: `demomyuplink@nibe.se` / `Demo1234` **Need more details?** See [Device Onboarding](/partner-api/user-journeys/end-user/device-onboarding) for the complete workflow, screenshots, best practices, and error handling. *** Read data from your connected device # Create User Source: https://developers.podero.com/partner-api/getting-started/create-user Create your first end-user account via the Partner API # Create a User Create a new end-user account with minimal required information: ```bash cURL theme={null} curl -X POST \ 'https://app.podero.com/api/partners/v2.0/org/{org_id}/users' \ -H 'Authorization: Bearer {auth_token}' \ -H 'Content-Type: application/json' \ -d '{ "role": "user", "email": "newuser@gmail.com" }' ``` ```python Python theme={null} response = requests.post( f'https://app.podero.com/api/partners/v2.0/org/{org_id}/users', headers={ 'Authorization': f'Bearer {auth_token}', 'Content-Type': 'application/json' }, json={ 'role': 'user', 'email': 'newuser@gmail.com' } ) user_id = response.json()['id'] print(f"Created user: {user_id}") ``` Save the `user_id` from the response - you'll need it for the next steps. **Need more details?** See the [User Management Guide](/partner-api/user-journeys/back-office/user-management) for bulk operations, user roles, and advanced workflows. *** Add your first device using Connect UI # Get Access Token Source: https://developers.podero.com/partner-api/getting-started/get-access-token Generate an OAuth2 access token for API authentication # Get Your Token To get an access token and to be able to use the API, you need to make a request to the token endpoint with a Basic Auth header using your base64 encoded client ID and secret. Remember to replace the subdomain if you're in a sandbox environment. ## Encode Your Credentials You will probably need to use a base64 encoder to get the encoded string. For example, DevToys is a useful tool: Base64 Encoder Example The format to encode is: `client_id:client_secret` ## Request an Access Token ```bash cURL theme={null} curl -X POST \ 'https://app.podero.com/oauth2/token/' \ -H 'Authorization: Basic base64_encode(client_id:client_secret)' \ -H 'Cache-Control: no-cache' \ -H 'Content-Type: application/json' \ -d '{ "grant_type": "client_credentials" }' ``` ```python Python theme={null} import requests import base64 # Your credentials client_id = "your_client_id" client_secret = "your_client_secret" # Encode credentials credentials = f"{client_id}:{client_secret}" encoded = base64.b64encode(credentials.encode()).decode() # Request token response = requests.post( 'https://app.podero.com/oauth2/token/', headers={ 'Authorization': f'Basic {encoded}', 'Cache-Control': 'no-cache', 'Content-Type': 'application/json' }, json={'grant_type': 'client_credentials'} ) data = response.json() access_token = data['access_token'] print(f"Access Token: {access_token}") ``` ```javascript JavaScript theme={null} const clientId = 'your_client_id'; const clientSecret = 'your_client_secret'; // Encode credentials const credentials = btoa(`${clientId}:${clientSecret}`); // Request token const response = await fetch('https://app.podero.com/oauth2/token/', { method: 'POST', headers: { 'Authorization': `Basic ${credentials}`, 'Cache-Control': 'no-cache', 'Content-Type': 'application/json' }, body: JSON.stringify({ grant_type: 'client_credentials' }) }); const data = await response.json(); const accessToken = data.access_token; console.log('Access Token:', accessToken); ``` ## Response You will receive a response containing an access token, as well as the expiration time: ```json theme={null} { "access_token": "PaZDOD5UwzbGOFsQr34LQ7JUYOj3yK", "expires_in": 36000, "token_type": "Bearer", "scope": "read write" } ``` Your API access token. Use this in the Authorization header for subsequent requests. Token expiration time in seconds (typically 36000 = 10 hours). The type of token, always "Bearer". The scopes granted to this token. Make sure you store these credentials securely and refresh the token in a timely manner to avoid losing access to the API. ## Using the Token From now on, include the access token in a "Bearer" authorization header for all API requests: ```bash theme={null} Authorization: Bearer {auth_token} ``` ## Next Step Create your first end-user account # Prerequisites Source: https://developers.podero.com/partner-api/getting-started/prerequisites What you need before getting started with the Podero Partner API # Prerequisites This tutorial walks you through some of the main functionalities of our Partner API. Follow these pages in order - each step builds on the previous one. ## Before You Begin Make sure you have completed the following steps: Email [contact@podero.com](mailto:contact@podero.com) to request credentials. We will set up an Organization and an Admin User for you. You will receive: * **Organization ID** (`org_id`) * **Initial username and password** * **Sandbox code** (if you requested Sandbox access) This guide uses **curl** for examples, but you can use Postman, Insomnia, or any other API testing suite. ## What You'll Learn In this tutorial, you'll learn how to: 1. Register a new OAuth2 application 2. Generate an access token 3. Create an end-user 4. Connect a heat pump device 5. Retrieve device information ## Environment Selection Use production when you're ready to go live with real end-user data. **Base URL:** `https://app.podero.com/api/partners/v2.0/` Use sandbox for development and testing with mocked data. **Base URL:** `https://sandbox-app.podero.com/api/partners/v2.0/` If you have sandbox access, your URLs will include your unique sandbox subdomain. ## Next Step Create your OAuth2 application to get started # Register Application Source: https://developers.podero.com/partner-api/getting-started/register-application Create an OAuth2 application to access the Partner API # Register a New Application Sign in to the Podero Console at [https://fleet.podero.com](https://fleet.podero.com) (or [https://sandbox-fleet.podero.com](https://sandbox-fleet.podero.com) for the sandbox) with the credentials you received. It is strongly recommended that you change the password after your first login. Creating API applications requires the organization admin role. If you do not have it, ask an admin of your organization or Podero support. In the sidebar, open **Configuration → API** ([https://fleet.podero.com/configuration/api](https://fleet.podero.com/configuration/api)) and click **Create application**. Fill in the application details: | Field | Value | | - | - | | **Name** | Your application name | | **Grant type** | Client credentials | **Immediately copy the client ID and the client secret and keep them somewhere safe.** The client secret is shown only once. You will not be able to retrieve it later. After copying your credentials, click **I saved the credentials**. ## What You Received After registration, you should have: * **Client ID**: A unique identifier for your application * **Client Secret**: A secure key that proves your application's identity Store these credentials securely using environment variables or a secrets management system. Never commit them to source control. ## Next Step Generate your first API access token # Retrieve Device Data Source: https://developers.podero.com/partner-api/getting-started/retrieve-device-data Read operational data and status from your connected device # Retrieve Device Data Fetch data from the heat pump you just connected: ```bash cURL theme={null} curl -X GET \ 'https://app.podero.com/api/partners/v2.0/org/{org_id}/users/{user_id}/heat-pumps' \ -H 'Authorization: Bearer {auth_token}' ``` ```python Python theme={null} response = requests.get( f'https://app.podero.com/api/partners/v2.0/org/{org_id}/users/{user_id}/heat-pumps', headers={'Authorization': f'Bearer {auth_token}'} ) heat_pumps = response.json() for pump in heat_pumps: print(f"Device: {pump['device_model']['manufacturer']} {pump['device_model']['model']}") print(f"Power: {pump.get('current_power_consumption_w', 0)}W") print(f"Indoor temp: {pump.get('indoor_actual_temperature')}°C") ``` The response includes real-time data: * Device info (manufacturer, model) * Current power consumption * Temperature readings * Historical consumption (day/week/month) * Optimization status Use the device `id` for future API calls to update settings or fetch more detailed data. ## Congratulations! 🎉 You've completed the getting started tutorial: * ✅ Authenticated with OAuth2 * ✅ Created a user * ✅ Connected a device * ✅ Retrieved device data ## Next Steps Explore common workflows Complete device parameters # Integration Guide Source: https://developers.podero.com/partner-api/notifications/integration Build, secure, and verify an endpoint that receives Podero notifications # Integrating notifications This guide walks through building an endpoint that receives Podero notifications, verifying that each delivery is authentic, and handling the delivery semantics correctly. ## Prerequisites 1. **An API token** with admin access for the organization. See [Authentication](/partner-api/overview/authentication). 2. **A public HTTPS endpoint** — a URL reachable from the public internet, with a valid TLS certificate. Podero refuses plain `http`, embedded credentials, and non-public addresses (loopback, private ranges, link-local, cloud metadata). ## Register a webhook Register your endpoint with the [Create Webhook](/partner-api/notifications/reference#create-a-webhook) endpoint. The response includes a **signing secret** — store it securely. ```bash cURL theme={null} curl -X POST \ "https://api.podero.com/api/partners/v2.0/org/{org_id}/notifications/webhooks" \ -H "Authorization: Bearer $TOKEN" \ -H "Content-Type: application/json" \ -d '{ "url": "https://your-endpoint.example.com/podero/notifications", "topics": ["device.action_required", "device.information"] }' ``` ```python Python theme={null} import requests resp = requests.post( f"https://api.podero.com/api/partners/v2.0/org/{org_id}/notifications/webhooks", headers={"Authorization": f"Bearer {token}"}, json={ "url": "https://your-endpoint.example.com/podero/notifications", "topics": ["device.action_required", "device.information"], }, ) webhook = resp.json() signing_secret = webhook["signing_secret"] # store this now ``` ```json 201 Created theme={null} { "webhook_id": "a1b2c3d4-e5f6-7890-abcd-ef1234567890", "url": "https://your-endpoint.example.com/podero/notifications", "enabled": true, "topics": ["device.action_required", "device.information"], "signing_secret": "whsec_MmQ3..." } ``` The signing secret is returned **once** in this response and cannot be retrieved again. Store it in a secrets manager immediately. If it is lost, [rotate it](/partner-api/notifications/reference#rotate-a-webhooks-signing-secret) to get a new one. ## 1. Receive a delivery A notification arrives as an HTTP `POST` with a JSON body and a signature header: ```http theme={null} POST /podero/notifications HTTP/1.1 Host: your-endpoint.example.com Content-Type: application/json User-Agent: Podero-Notifications/1.0 X-Podero-Signature: t=1752660000,v1=5257a869e7ecebeda32affa62cdca3fa51cad7e77a25f2c9e51e0b0b5b1a1234 { "message_id": "3f2504e0-4f89-41d3-9a0c-0305e82c3301", "message_type": "device.action_required", "schema_version": 1, "occurred_at": "2026-07-16T09:30:00+00:00", "data": { "device_id": "9b1deb4d-3b7d-4bad-9bdd-2b0d7b3dcb6d", "device_type": "electric_vehicle", "owner_id": "a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11", "action": "reauthentication_required" } } ``` Your endpoint should read the **raw request body** before doing anything else — you need the exact bytes to verify the signature (see below). Do not verify against a re-serialized copy of the parsed JSON, as key ordering and whitespace will differ. ## 2. Verify the signature Every message is signed so you can prove it came from Podero. The `X-Podero-Signature` header carries a timestamp and an HMAC-SHA256 digest: ``` X-Podero-Signature: t=,v1= ``` To verify a delivery: Split on `,` and read the `t` (unix timestamp) and `v1` (hex digest) fields. Reject the request if `t` is more than **300 seconds** away from your current time. This bounds how long a captured request can be replayed. Compute `HMAC-SHA256(secret, "{t}." + raw_body)` and compare it to `v1` using a constant-time comparison. ```python Python theme={null} import hashlib import hmac import time TOLERANCE_SECONDS = 300 def verify(secret: str, raw_body: bytes, header: str | None) -> bool: if not header: return False fields = dict(p.split("=", 1) for p in header.split(",") if "=" in p) try: timestamp = int(fields["t"]) provided = fields["v1"] except (KeyError, ValueError): return False if abs(time.time() - timestamp) > TOLERANCE_SECONDS: return False signed = f"{timestamp}.".encode() + raw_body expected = hmac.new(secret.encode(), signed, hashlib.sha256).hexdigest() return hmac.compare_digest(expected, provided) ``` ```javascript Node.js theme={null} const crypto = require('crypto'); const TOLERANCE_SECONDS = 300; function verify(secret, rawBody, header) { if (!header) return false; const fields = Object.fromEntries( header.split(',').filter(p => p.includes('=')).map(p => p.split('=', 2)), ); const timestamp = parseInt(fields.t, 10); if (Number.isNaN(timestamp)) return false; if (Math.abs(Date.now() / 1000 - timestamp) > TOLERANCE_SECONDS) return false; const signed = Buffer.concat([Buffer.from(`${timestamp}.`), rawBody]); const expected = crypto.createHmac('sha256', secret).update(signed).digest('hex'); const a = Buffer.from(expected); const b = Buffer.from(fields.v1 || '', 'utf8'); return a.length === b.length && crypto.timingSafeEqual(a, b); } ``` Verify against the **raw body bytes**, exactly as received. Many web frameworks parse the body into an object before your handler runs — configure yours to expose the raw payload (for example, Express's `express.raw()` or Flask's `request.get_data()`). ## 3. Acknowledge the delivery Respond with any `2xx` status code to acknowledge the message. Podero reads only the response status — the body is ignored. Respond quickly. Podero uses tight timeouts (a few seconds) and does **not** follow redirects — a `3xx` is treated as a failed delivery. Acknowledge first, then do slow work asynchronously. Any non-`2xx` response, a redirect, a timeout, or a connection error marks the delivery as failed for that attempt. ## 4. Handle duplicates Because delivery is **at-least-once**, you may occasionally receive the same message more than once. The `message_id` is stable across redeliveries of the same message — use it as an idempotency key: ```python theme={null} def handle(message: dict) -> None: if already_processed(message["message_id"]): return # a duplicate delivery — safely ignored process(message) mark_processed(message["message_id"]) ``` Persist processed `message_id`s (with a suitable retention window) so a duplicate that arrives after a restart is still recognised. ## 5. Fetch the notification content A webhook message is a signal, not the full story: it tells you a device needs attention, and the [Notification Content API](/partner-api/notifications/reference#notification-content-api) tells you exactly what is pending right now. Branch on `message_type` and fetch the matching list: | `message_type` | Fetch | Returns | | - | - | - | | `device.action_required` | [`GET /notifications/actions`](/partner-api/notifications/reference#list-pending-actions) | Pending actions the user must take, each with a `resolution_link` | | `device.information` | [`GET /notifications/information`](/partner-api/notifications/reference#list-information-notifications) | Information notices to show the user, each dismissable via its `resolution_link` | The message's `data` fields feed straight into the list filters — `owner_id`, `device_id`, and `device_type` share one vocabulary across the wire payload and the Content API — so you can scope the fetch to exactly the user and device the message is about: ```python theme={null} def process(message: dict) -> None: data = message["data"] scope = {"owner_id": data["owner_id"], "device_id": data["device_id"]} match message["message_type"]: case "device.action_required": actions = api.get(f"/org/{ORG_ID}/notifications/actions", params=scope) # Surface each action to the user; its resolution_link # tells you the URL to call and the parameters it needs. case "device.information": notices = api.get(f"/org/{ORG_ID}/notifications/information", params=scope) # Show unread notices; call each resolution_link to dismiss. ``` From here you *resolve* each item — starting the action, redirecting the user through the manufacturer flow, and reporting the outcome. [Resolving actions](/partner-api/notifications/resolving-actions) covers that flow and its lifecycle semantics in full. For the end-user-facing walkthrough — badge counts via [`GET /notifications/status`](/partner-api/notifications/reference#get-notification-status), rendering the list, and dismissing notices — see the [Notifications journey](/partner-api/user-journeys/end-user/notifications). Resolution-link secrets expire **one hour** after the response is issued. Fetch the lists when you act on a message rather than caching links from an earlier fetch. ## 6. Test end to end Send a test delivery to your webhook with the [Test Webhook](/partner-api/notifications/reference#send-a-test-message) endpoint. It fires a synthetic sample for one of your subscribed topics, signed exactly like a real notification: ```bash theme={null} curl -X POST \ "https://api.podero.com/api/partners/v2.0/org/{org_id}/notifications/webhooks/{webhook_id}/test" \ -H "Authorization: Bearer $TOKEN" \ -H "Content-Type: application/json" \ -d '{"topic": "device.action_required"}' ``` The response tells you the outcome immediately: ```json theme={null} { "topic": "device.action_required", "schema_version": 1, "outcome": "delivered", "status_code": 200 } ``` If `outcome` is `"delivered"` and your signature check passed, you are ready to go live. A `"failed"` outcome includes a `detail` field with the transport error. ## Best practices Acknowledge with `2xx` immediately and hand off processing to a background queue. Slow handlers risk timing out and being marked as failed. Reject any request whose signature does not verify or whose timestamp is outside the tolerance window. Never act on an unverified payload. Within a `schema_version`, the `data` object is additive — new fields may appear. Ignore fields you do not recognise rather than failing. Store the signing secret in a secrets manager, never in source control. If it is exposed, [rotate it](/partner-api/notifications/reference#rotate-a-webhooks-signing-secret) immediately. ## Next steps The full message envelope, headers, topics, and delivery semantics # Notifications Overview Source: https://developers.podero.com/partner-api/notifications/overview Receive real-time notifications from Podero via signed webhooks # Notifications Notifications let Podero push events to your systems in real time instead of you polling our API. When something happens to one of your users' devices — for example a device needs the end-user to re-authenticate — Podero sends an HTTP `POST` to an endpoint you control. Each notification belongs to a **topic**, is scoped to a single **organization**, and is delivered as a signed JSON message so you can verify it genuinely came from Podero. Register a webhook, verify signatures, and go live Message envelope, headers, topics, and the Webhook Management API ## How it works You call the [Webhook Management API](/partner-api/notifications/integration#register-a-webhook) to register an HTTPS URL and the topics you want to receive. The response includes a **signing secret** — shown once, never retrievable again — that you store securely. Something worth telling you about happens within your organization's tenancy — for example a device needs the end-user to act. Podero raises a **notification** under the relevant topic. The notification is fanned out to every endpoint in your organization subscribed to that topic. Each delivery is a single HTTP `POST` carrying a versioned JSON message, signed with your secret. Your endpoint verifies the signature, responds with a `2xx` status, and queues the message for processing. Any other response (or a timeout) is treated as a failed delivery. The message tells you *that* a device needs attention; the [Notification Content API](/partner-api/notifications/reference#notification-content-api) tells you *what* is pending. Fetch the pending actions or information notices and surface them to your users, each with a ready-made resolution link. ## Core concepts ### Topics A **topic** is the category of event you subscribe to. Topics are stable, lowercase-dotted `entity.category` strings and are deliberately coarse — a new kind of event slots into an existing topic rather than growing the contract, and the specific event rides in the message payload for consumers that want to branch further. | Topic | Description | | - | - | | `device.action_required` | A device needs an action that is resolvable **through Podero's API** before Podero can keep steering or monitoring it — today, re-authentication via the connect flow. | | `device.information` | An advisory device update — informational notices, status changes, and issues the user resolves **at the manufacturer** (a lapsed connected-services subscription, disabled remote access, a missing virtual key). | The boundary is who resolves it: only API-resolvable actions ride `device.action_required`. See the [Reference](/partner-api/notifications/reference#topics) for the full catalogue of `action` and `notice` values each topic carries. Subscribe only to the topics you act on. You can be subscribed to any combination, and each endpoint has its own subscriptions. ### Messages Every delivery is a self-contained **message** — a versioned JSON envelope addressed to one endpoint. It carries a stable `message_id`, the `message_type` (the topic), a `schema_version`, the `occurred_at` timestamp of the originating event, and a topic-specific `data` object. See the [Reference](/partner-api/notifications/reference#message-envelope) for the full envelope. ### Notification content Webhooks are the **push** side; the [Notification Content API](/partner-api/notifications/reference#notification-content-api) is the **pull** side — the message is the signal to go pull the current pending items and surface them to your users. For the full user-facing flow (badges, action lists, resolving a reauthentication, dismissing notices), see the [Notifications journey](/partner-api/user-journeys/end-user/notifications). ### Organizations Notifications are strictly tenant-scoped. A notification reaches only the endpoints registered under the organization that owns the source event — never another organization's, even if it happens to subscribe to the same topic. ## Delivery guarantees Podero guarantees a message is delivered **at least once**. Under some conditions (for example a network hiccup that hides an acknowledgement) you may receive the same message more than once. Every message carries a stable `message_id` — treat it as an **idempotency key** and dedupe on it. See [handling duplicates](/partner-api/notifications/integration#4-handle-duplicates). Every message is signed with an HMAC-SHA256 signature over the exact request body, carried in the `X-Podero-Signature` header alongside a timestamp. Verifying the signature proves the message came from Podero and was not altered in transit, and the timestamp lets you reject replays. See [verifying signatures](/partner-api/notifications/integration#verifying-the-signature). Endpoints must be reachable over HTTPS with a valid certificate. Podero validates the destination address on every delivery and refuses to connect to private, loopback, link-local, or cloud-metadata addresses. Messages are delivered independently. Do not rely on receiving them in the order the underlying events occurred — use each message's `occurred_at` timestamp if ordering matters to you. ## Next steps Register a webhook, build your receiver, and go live Envelope, headers, topics, and the Webhook Management API Surface pending items to end-users and guide them to resolution # Reference Source: https://developers.podero.com/partner-api/notifications/reference Webhook Management API, Notification Content API, message envelope, headers, topics, signatures, and delivery semantics # Notifications Reference The complete contract for messages Podero delivers to your endpoint, and the APIs for managing your webhooks and reading notification content. ## Webhook Management API All endpoints require an admin API token and are scoped to a single organization. **Base URL:** `https://api.podero.com/api/partners/v2.0/org/{org_id}/notifications/webhooks` ### Create a webhook `POST /webhooks` Register an HTTPS endpoint and subscribe it to the given topics. The response includes a signing secret — returned **once** and never retrievable again. Each call creates a new, independent webhook. A retried POST with the same URL creates a second webhook with its own secret — guard retries on your side to avoid duplicates. **Request body** The HTTPS URL to receive notifications. Must be publicly reachable with a valid TLS certificate. Topics to subscribe to. An empty list creates the webhook with no subscriptions. ```json Example request theme={null} { "url": "https://your-endpoint.example.com/podero/notifications", "topics": ["device.action_required", "device.information"] } ``` ```json 201 Created theme={null} { "webhook_id": "a1b2c3d4-e5f6-7890-abcd-ef1234567890", "url": "https://your-endpoint.example.com/podero/notifications", "enabled": true, "topics": ["device.action_required", "device.information"], "signing_secret": "whsec_MmQ3..." } ``` *** ### List webhooks `GET /webhooks` Returns all webhooks registered for the organization, paginated (50 per page). The signing secret is never included. ```json 200 OK theme={null} { "items": [ { "webhook_id": "a1b2c3d4-e5f6-7890-abcd-ef1234567890", "url": "https://your-endpoint.example.com/podero/notifications", "enabled": true, "topics": ["device.action_required", "device.information"], "created_at": "2026-07-16T09:00:00+00:00", "updated_at": "2026-07-16T09:00:00+00:00" } ], "count": 1 } ``` *** ### Retrieve a webhook `GET /webhooks/{webhook_id}` Returns a single webhook. A webhook belonging to another organization returns `404`. ```json 200 OK theme={null} { "webhook_id": "a1b2c3d4-e5f6-7890-abcd-ef1234567890", "url": "https://your-endpoint.example.com/podero/notifications", "enabled": true, "topics": ["device.action_required", "device.information"], "created_at": "2026-07-16T09:00:00+00:00", "updated_at": "2026-07-16T09:00:00+00:00" } ``` *** ### Update a webhook `PATCH /webhooks/{webhook_id}` Update a webhook's enabled state and/or its subscribed topics. Only the fields present in the request change. The endpoint URL is immutable — delete and recreate to change it. Set to `false` to pause deliveries, `true` to resume. While disabled, messages for this webhook are dropped, not queued. Replaces the entire subscription set. Pass an empty list to unsubscribe from all topics. ```json Example request theme={null} { "enabled": false, "topics": ["device.action_required"] } ``` ```json 200 OK theme={null} { "webhook_id": "a1b2c3d4-e5f6-7890-abcd-ef1234567890", "url": "https://your-endpoint.example.com/podero/notifications", "enabled": false, "topics": ["device.action_required"], "created_at": "2026-07-16T09:00:00+00:00", "updated_at": "2026-07-16T10:15:00+00:00" } ``` *** ### Delete a webhook `DELETE /webhooks/{webhook_id}` Remove a webhook permanently. No further deliveries are made and the webhook disappears from the listing. **Response:** `204 No Content` *** ### Rotate a webhook's signing secret `POST /webhooks/{webhook_id}/rotate-secret` Mint a fresh signing secret, superseding the previous one. The next delivery is signed with the new secret. The new secret is returned **once** in this response — store it immediately. ```json 200 OK theme={null} { "signing_secret": "whsec_Njdk..." } ``` After rotating, update your endpoint's verification code to use the new secret before the next delivery arrives. *** ### Send a test message `POST /webhooks/{webhook_id}/test` Send a synthetic sample for one subscribed topic to the webhook and return the delivery outcome synchronously. The topic must be one the webhook is currently subscribed to. The topic to test. Must be in the webhook's current subscription set. ```json Example request theme={null} { "topic": "device.action_required" } ``` ```json 200 OK theme={null} { "topic": "device.action_required", "schema_version": 1, "outcome": "delivered", "status_code": 200 } ``` `delivered` — your endpoint accepted the test (check `status_code`). `failed` — transport error (`detail` explains). `cancelled` — the webhook is disabled or was removed (`detail` explains). The HTTP status code your endpoint returned, present only when `outcome` is `delivered`. Error or cancellation reason, present when `outcome` is `failed` or `cancelled`. The HTTP response is always `200` regardless of the delivery outcome — branch on `outcome`, not the HTTP status. *** ## Notification Content API A webhook message tells you *that* something happened; these read endpoints tell you *what* is currently pending. When a `device.action_required` or `device.information` message arrives, call these to fetch the actual items to surface to your users. See [acting on a notification](/partner-api/notifications/integration#5-fetch-the-notification-content) for the integration pattern. **Base URL:** `https://api.podero.com/api/partners/v2.0/org/{org_id}/notifications` All three endpoints accept an optional `owner_id` query parameter. An admin token may pass any user in the organization (or omit it for org-wide results); a non-admin token is always scoped to its own user. The two list endpoints additionally filter by `device_id` and `device_type` — these match the fields a [webhook message's `data`](#topics) carries, so you can pass them straight through — and narrow further by notification `code` and a `created_after`/`created_before` time range. ### Get notification status `GET /status` Counts of pending action items and unread information notifications, grouped by device type. Useful for badge counts and for deciding which list to fetch. Restrict counts to a single user's devices. Omit for org-wide counts (admin only). ```json 200 OK theme={null} { "electric_vehicle": { "action_required": 1, "information_available": 0 }, "heat_pump": { "action_required": 0, "information_available": 2 }, "inverter": { "action_required": 0, "information_available": 0 }, "wallbox": { "action_required": 0, "information_available": 0 } } ``` All four device types are always present, so the shape is predictable regardless of which devices the organization owns. `action_required` counts pending action items (the same semantic as the per-device `action_needed` flag); `information_available` counts unread information notifications. *** ### List pending actions `GET /actions` The organization's pending user-facing actions, newest first — every item a user still needs to act on, plus unread information notices, merged into one list. This is the endpoint to call when a `device.action_required` webhook message arrives. This list merges two sources: API-resolvable **actions** (e.g. `reauthenticate`) and **unread information notices**. An `information`-coded item can therefore appear here — including under a `code` filter that matches a notice. The list is unread-only, so dismissed notices drop out of it; the full notice history (including dismissed) lives at [`GET /information`](#list-information-notifications). Restrict to a single user's actions. Omit for org-wide results (admin only). Restrict to a single device's actions. Restrict to one device type: `electric_vehicle`, `heat_pump`, `inverter`, or `wallbox`. Restrict to items carrying one of these codes (repeatable — pass `code` multiple times). An action item matches its own `code` (e.g. `reauthenticate`); an information item merged in here matches its underlying condition code (the [`notice` values](#notice-values-device-information)). Items with no code are excluded when this filter is set. Only items raised at or after this instant, inclusive. Applies to each item's own timestamp — an action's `created_at`, an information item's `sent_at`. A naive (offset-less) value is read as UTC. Only items raised at or before this instant, inclusive. Page size, 1–100. Items to skip. Each item is discriminated by its `code`: ```json 200 OK theme={null} [ { "code": "reauthenticate", "device_id": "9b1deb4d-3b7d-4bad-9bdd-2b0d7b3dcb6d", "device_type": "electric_vehicle", "resolution_link": { "url": "/api/partners/v2.0/cues/6f1c2e58-.../resolve?secret=eyJhb...", "required_parameters": ["success_url", "cancel_url", "language"] }, "created_at": "2026-07-16T09:00:00+00:00" }, { "code": "information", "device_id": "9b1deb4d-3b7d-4bad-9bdd-2b0d7b3dcb6d", "device_type": "electric_vehicle", "resolution_link": { "url": "/api/partners/v2.0/cues/89ab01cd-.../information/resolve?secret=eyJhb...", "required_parameters": [] }, "metadata": { "message": "Your vehicle's connected-services subscription has lapsed." }, "sent_at": "2026-07-16T09:30:00+00:00" } ] ``` The action type. `reauthenticate` — the user must re-authenticate their device against the manufacturer. `information` — a message to show the user, carried in `metadata.message`. The device the action belongs to. The device's type key (`electric_vehicle`, `heat_pump`, `inverter`, `wallbox`) — the same vocabulary the status roll-up and the webhook `data.device_type` use. How to resolve the action. `url` is the relative URL to call — it already carries the item's ID and a signed `secret` query parameter bound to the notification's owner. `required_parameters` names the body fields you must supply when calling it (empty for information items, which are resolved by the call alone). When the action was raised. Present on action items (e.g. `reauthenticate`); information items carry `sent_at` instead (see the `information` item above). This is the timestamp the list is ordered by and the one the `created_after` / `created_before` filters match. The `secret` in a resolution link expires **one hour** after the response is issued. Fetch actions when you need them rather than storing resolution links. *** ### List information notifications `GET /information` The organization's information notification history, newest first — including already-dismissed items. This is the endpoint to call when a `device.information` webhook message arrives. Restrict to a single user's notifications. Omit for org-wide results (admin only). Restrict to a single device's notifications. Restrict to one device type: `electric_vehicle`, `heat_pump`, `inverter`, or `wallbox`. Restrict to notifications whose underlying device condition matches one of these codes (repeatable — pass `code` multiple times) — the same values as the [`notice` catalogue](#notice-values-device-information), e.g. `steering_recovery_failed`, `subscription_required`. Manually broadcast notifications carry no code and are excluded when this filter is set. Only notifications with `sent_at` at or after this instant, inclusive. A naive (offset-less) value is read as UTC. Only notifications with `sent_at` at or before this instant, inclusive. Page size, 1–100. Items to skip. ```json 200 OK theme={null} [ { "id": "89ab01cd-1234-5678-9abc-def012345678", "message": "Your vehicle's connected-services subscription has lapsed.", "sent_at": "2026-07-16T09:30:00+00:00", "dismissed": false, "device_id": "9b1deb4d-3b7d-4bad-9bdd-2b0d7b3dcb6d", "device_type": "electric_vehicle", "resolution_link": { "url": "/api/partners/v2.0/cues/89ab01cd-.../information/resolve?secret=eyJhb...", "required_parameters": [] } } ] ``` Whether the user has already dismissed the notification. Call the `resolution_link` to dismiss it. The device the notification relates to, if any. The device's type key (`electric_vehicle`, `heat_pump`, `inverter`, `wallbox`), matching the webhook `data.device_type` vocabulary. *** ## Request Each notification is delivered as a single HTTP `POST` with a JSON body. | | | | - | - | | Method | `POST` | | Content-Type | `application/json` | | User-Agent | `Podero-Notifications/1.0` | | Transport | HTTPS only, valid certificate required | | Redirects | Not followed — a `3xx` counts as a failed delivery | ### Headers Always `application/json`. Always `Podero-Notifications/1.0`. Identifies deliveries originating from Podero. The HMAC-SHA256 signature and timestamp for the request body. Format: `t=,v1=`. See [Signatures](#signatures). ## Message envelope The request body is a JSON object with the following fields: ```json theme={null} { "message_id": "3f2504e0-4f89-41d3-9a0c-0305e82c3301", "message_type": "device.action_required", "schema_version": 1, "occurred_at": "2026-07-16T09:30:00+00:00", "data": { "device_id": "9b1deb4d-3b7d-4bad-9bdd-2b0d7b3dcb6d", "device_type": "electric_vehicle", "owner_id": "a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11", "action": "reauthentication_required" } } ``` A stable identifier for this message. Constant across redeliveries of the same message — use it as your **idempotency key** to dedupe. The [topic](#topics) this message belongs to, e.g. `device.action_required`. Branch your handling on this value. Test messages carry `podero.test`. The version of the `data` schema for this `message_type`. Within a version, `data` is additive — new fields may be introduced without a version bump. A breaking change to a topic's shape is published as a new version. When the originating event occurred, in UTC. Use this for ordering rather than the arrival time. The topic-specific payload. Its shape depends on `message_type` and `schema_version` — see [Topics](#topics). Internal identifiers are deliberately not exposed on the wire. You will not receive Podero's internal notification or endpoint IDs. ## Topics A topic is both what you subscribe to and the `message_type` carried on the wire. Topics are stable, coarse categories; the specific event rides inside `data`. The boundary between the two topics is **who resolves the issue**: an action a partner can drive to resolution *through Podero's API* rides `device.action_required`; everything else — advisory notices, and issues the user resolves at the manufacturer — rides `device.information`. For both topics, `data` carries the device as the subject, its owner, and a reason discriminator: The device the message is about. Feed it straight into the [Notification Content API](#notification-content-api)'s `device_id` filter. The kind of device: `electric_vehicle`, `heat_pump`, `inverter`, or `wallbox` — the same keys the [status roll-up](#get-notification-status) uses and the `device_type` filter accepts. The user who owns the device — the person who must act. Feed it straight into the Content API's `owner_id` filter, or use it to deep-link the right user in your own app. The reason discriminator — `action` on `device.action_required`, `notice` on `device.information`. See the value catalogues below. A device needs an action that is resolvable **through Podero's API** before Podero can keep steering or monitoring it. On receipt, fetch the pending items with [`GET /notifications/actions`](#list-pending-actions) and resolve them via their resolution links. See the [`action` catalogue](#action-values-device-action-required). ```json theme={null} { "message_id": "3f2504e0-4f89-41d3-9a0c-0305e82c3301", "message_type": "device.action_required", "schema_version": 1, "occurred_at": "2026-07-16T09:30:00+00:00", "data": { "device_id": "9b1deb4d-3b7d-4bad-9bdd-2b0d7b3dcb6d", "device_type": "electric_vehicle", "owner_id": "a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11", "action": "reauthentication_required" } } ``` An advisory device update — informational notices, status changes, and issues the user resolves **at the manufacturer** rather than through Podero's API. On receipt, fetch the notices with [`GET /notifications/information`](#list-information-notifications); the user-visible message text is in each item's `message` field. See the [`notice` catalogue](#notice-values-device-information). ```json theme={null} { "message_id": "7c9e6679-7425-40de-944b-e07fc1f90ae7", "message_type": "device.information", "schema_version": 1, "occurred_at": "2026-07-16T09:30:00+00:00", "data": { "device_id": "9b1deb4d-3b7d-4bad-9bdd-2b0d7b3dcb6d", "device_type": "electric_vehicle", "owner_id": "a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11", "notice": "subscription_required" } } ``` ### `action` values (device.action\_required) | Value | Meaning | | - | - | | `reauthentication_required` | The manufacturer connection has lapsed and the end-user must re-authenticate. Fetch the pending actions and redirect the user into the `reauthenticate` resolution flow. | ### `notice` values (device.information) | Value | Device types | Meaning | | - | - | - | | `information` | any | A general informational message for the user. Manually broadcast messages may carry no device at all (`device_id` and `device_type` are `null`). | | `steering_recovery_failed` | `electric_vehicle` | An electric vehicle is not expected to reach its charge target by its deadline, despite recovery attempts. | | `oem_charge_cap_detected` | `electric_vehicle` | A charge limit configured in the manufacturer's app was detected; Podero respects it when planning charging. | | `wallbox_current_cap_detected` | `wallbox` | A wallbox is capped by a local current limit that steering cannot exceed; raising it (if safe) restores full optimization. | | `subscription_required` | `electric_vehicle` | The device's manufacturer connected-services subscription has lapsed; the user must renew it with the manufacturer. | | `remote_access_disabled` | `electric_vehicle` | Remote access is disabled in the manufacturer's app; the user must re-enable it there. | | `virtual_key_required` | `electric_vehicle` | Podero needs a virtual key to command the vehicle; the user must grant it in the manufacturer's app (e.g. add Podero's key in the Tesla app). | | `fully_charged` | `electric_vehicle` | A scheduled charge was skipped because the vehicle reported itself already full — on some manufacturers an in-app charge limit triggers this below 100%. | | `terms_not_accepted` | `inverter` | The manufacturer requires the user to accept updated Terms & Conditions in the manufacturer's portal (e.g. Fronius Solar.web) before Podero can resume monitoring and steering. Cleared automatically — and silently, like `device_offline` — once access is restored. | | `device_offline` | `heat_pump` | Podero has been unable to reach the device for a sustained period — usually a power or internet problem at the user's home. Steering and monitoring stay paused until it reconnects. | `device_offline` is scoped to a single outage: it is sent once, however long the device stays unreachable, and Podero clears it automatically when the device reconnects. That recovery is silent — no webhook is delivered when the device comes back. A later outage is a new episode and sends a new message. The **Device types** column lists the device types that produce each notice today. Do not hard-code the pairing: every message's `data.device_type` names the type explicitly, and a notice may extend to further device types without a schema change — `device_offline` in particular is defined for any device type. New `action` and `notice` values may be introduced within a schema version — treat an unknown value as "something needs attention" and fall back to the [Notification Content API](#notification-content-api), which always carries ready-to-display message text and resolution links. On `device.information`, the `notice` value equals the notification's `code` — so this catalogue is exactly the value space of the [`GET /information`](#list-information-notifications) `code` filter. (On `device.action_required`, the wire `action` is `reauthentication_required` while the item and filter `code` is `reauthenticate`.) ## Signatures Every delivery is signed so you can prove it originated from Podero and was not altered in transit. ### Header format ``` X-Podero-Signature: t=,v1= ``` The unix timestamp (seconds) at which the request was signed. Also included in the signed string. The hex-encoded HMAC-SHA256 digest. `v1` names the scheme version so a future scheme can be added alongside it. ### Signing scheme The digest is computed over the timestamp and the exact request body: ``` signed_payload = "{t}." + raw_body # bytes: the ASCII timestamp, a dot, then the body v1 = HMAC_SHA256(secret, signed_payload) # hex-encoded ``` To verify, recompute `v1` over the **raw body bytes** you received and compare using a constant-time comparison. Reject the request if the timestamp is more than **300 seconds** from your current time. See the [Integration Guide](/partner-api/notifications/integration#verifying-the-signature) for working code. Always verify against the raw bytes as received — not a re-serialized copy of the parsed JSON. ## Responding Any `2xx` marks the delivery as successful. Only the status code is read; the response body is ignored. A non-`2xx` status, a redirect, a timeout, or a connection error marks the delivery as a failed attempt. Respond within a few seconds. Podero applies short connect and read timeouts and reads only enough of your response to obtain the status code. ## Delivery semantics A message is delivered at least once. You may occasionally receive a duplicate; dedupe on `message_id`. See [handling duplicates](/partner-api/notifications/integration#4-handle-duplicates). Each message is delivered on its own. Do not assume messages arrive in the order their events occurred — use `occurred_at`. A message is only ever delivered to endpoints registered under the organization that owns the source event. Deliveries go only to HTTPS endpoints with a valid certificate. Podero resolves and validates the destination on every delivery and refuses private, loopback, link-local, carrier-grade NAT, multicast, and cloud-metadata addresses. ## Endpoint lifecycle [Create a webhook](#create-a-webhook) to register your HTTPS endpoint. The signing secret is returned once in the response — store it immediately. Each webhook subscribes to a set of topics. A message is delivered only if the webhook is subscribed to that message's topic. [Update the webhook](#update-a-webhook) to change subscriptions at any time. [Update the webhook](#update-a-webhook) with `enabled: false` to pause deliveries. While disabled, messages are dropped rather than queued — they are not flushed when re-enabled. Subscriptions are preserved. [Rotate the secret](#rotate-a-webhooks-signing-secret) to mint a fresh signing key. The new secret is returned once; update your verification code before the next delivery arrives. [Delete the webhook](#delete-a-webhook) to stop all deliveries permanently. The webhook is removed from the listing and cannot be recovered. # Resolving actions Source: https://developers.podero.com/partner-api/notifications/resolving-actions Turn a collected action into a resolved one — the resolve, redirect, and report flow # Resolving actions Collecting a pending action tells you *what* needs to happen. This page covers the other half — actually resolving it: starting the action, redirecting the end-user, and reporting the outcome so the item clears. Discover pending actions first with [Fetch the notification content](/partner-api/notifications/integration#5-fetch-the-notification-content) (webhook-driven) or [List what needs attention](/partner-api/user-journeys/end-user/notifications#list-what-needs-attention) (polling). Both hand you an action carrying the `resolution_link` this page acts on. ## The resolution link Every action is self-describing — you act on it without knowing the device type. You start from its `resolution_link`: ```json theme={null} "resolution_link": { "url": "/api/partners/v2.0/cues/{cue_id}/resolve?secret=", "required_parameters": ["success_url", "cancel_url", "language"] } ``` The `url` is relative (prefix `https://app.podero.com`) and already embeds the action's `cue_id` and a signed `secret` — send it verbatim, never construct it yourself. Branch on the action's `code`; each code names its own `required_parameters`. The `secret` is bound to the notified user and **expires one hour after it is issued**. If it expires before the user acts, re-collect the action to obtain a fresh link. ## Resolve a `reauthenticate` action A `reauthenticate` action means a device's manufacturer connection has lapsed and optimization is paused for it. Resolving it is a three-call flow. `POST` the `resolution_link.url`, supplying the fields named in `required_parameters`. This call needs **both** your bearer token **and** the signed `secret`. ```bash cURL theme={null} curl -X POST \ 'https://app.podero.com/api/partners/v2.0/cues/{cue_id}/resolve?secret=' \ -H 'Authorization: Bearer {access_token}' \ -H 'Content-Type: application/json' \ -d '{ "success_url": "https://your-app.example.com/devices/reconnected", "cancel_url": "https://your-app.example.com/devices", "language": "de" }' ``` | Field | Required | Description | | - | - | - | | `success_url` | Yes | Where the user lands after a successful reauthentication. | | `cancel_url` | Yes | Where the user lands if they cancel or it fails. | | `language` | No | IETF tag localising the flow: `sv`, `de`, `en`, `hu`, `it`, `et`, `pl`, `ro`, `hr`, `nl`. Omitted or unsupported falls back to the org default. | The response carries the manufacturer flow to send the user into: ```json theme={null} { "redirect_url": "https://connect.podero.com/inverters/instructions?onboarding_session_id=...&device=foxess" } ``` Send the user to `redirect_url`. They re-authenticate with the manufacturer in Podero's hosted flow, then land back on the `success_url` (or `cancel_url`) you supplied. The `redirect_url` is single-use and tied to this action — start a fresh action per user, don't cache it. From your `success_url` / `cancel_url` handler, report the result. This call is authenticated by the **`secret` alone** — no bearer token. ```bash cURL theme={null} curl -X POST \ 'https://app.podero.com/api/partners/v2.0/cues/{cue_id}/state?secret=' \ -H 'Content-Type: application/json' \ -d '{ "state": "success" }' ``` | `state` | Effect | | - | - | | `success` | Marks the action done. It drops out of the pending list and optimization resumes. | | `fail` | Records the failure but leaves the action available — retry from **Start the action**. | ## Resolve an `information` action An `information` action is a notice to show the user (`metadata.message`), not a flow to walk. It has **no `required_parameters`** and is resolved — dismissed — by a single call to its `resolution_link`, with no body: ```bash cURL theme={null} curl -X POST \ 'https://app.podero.com/api/partners/v2.0/cues/{notification_id}/information/resolve?secret=' ``` The notice is marked read: it leaves the pending list and the `information_available` count, but stays retrievable in history via [`GET /notifications/information`](/partner-api/notifications/reference#list-information-notifications) with `dismissed: true`. ## Lifecycle & semantics Understanding the state machine behind an action keeps your integration correct under retries and expiry. ``` raised ──▶ started ──▶ succeeded ──▶ done (clears from the pending list) │ └──────▶ failed ──▶ (still pending — retry from "Start") ``` The `secret` inside every `resolution_link.url` is bound to the notified user and expires **one hour after it was issued**. Resolve promptly. If a call returns `404`, the secret has expired or the action is already resolved — re-collect the action to obtain a fresh `resolution_link`, then retry. Submitting `success` twice for the same action returns the same `action_id` and does not double-resolve. Safe to retry the report call after a network error. Reporting `fail` records the attempt but leaves the action pending, so the user can try again. Only `success` clears it. **Start** (`/resolve`) needs your bearer token **and** the `secret`. **Report** (`/state`) and the information **dismiss** need the `secret` **only** — the signed token is the authorization, so these can be called from a lightweight redirect handler without your API credentials. ## Forward compatibility Every action is fully described by its own `code`, `resolution_link`, and `required_parameters`. Your resolver branches on `code`, calls the `url` with the parameters it names, and reports the outcome — no device-type-specific logic, no hand-built URLs. When Podero introduces a new action code, it flows through the resolver you already wrote; you only add rendering for the new code. ## Next steps The end-user-facing walkthrough: badges, lists, and resolution in your app. The message envelope, topics, and the Notification Content API. # Authentication Source: https://developers.podero.com/partner-api/overview/authentication OAuth2 Client Credentials flow for server-to-server authentication # Server-to-Server Authentication The Partner API uses the **OAuth2 Client Credentials flow** for secure server-to-server communication. For server-to-server communication, this API uses the OAuth2 Client Credentials flow. Please feel free to contact your account manager to receive your initial admin username and password. ## Prerequisites Contact your account manager to receive your initial admin username and password. Sign in to the Podero Console at [https://fleet.podero.com](https://fleet.podero.com) (or [https://sandbox-fleet.podero.com](https://sandbox-fleet.podero.com) for the sandbox). Please make sure you change your password after your first login. ## Register a New Application In the Console sidebar, open **Configuration → API** ([https://fleet.podero.com/configuration/api](https://fleet.podero.com/configuration/api)) and click **Create application**. This requires the organization admin role (or Podero support). Fill in the application details: * **Name:** Your application name * **Grant type:** Select **Client credentials** **Immediately copy the client ID and the client secret and keep them somewhere safe.** The client secret is shown only once; you will not be able to retrieve it later. Click **I saved the credentials** after copying your credentials. ## Generating an Access Token To get an access token and to be able to use the API, you need to make a request to the token endpoint with a Basic Auth header using your base64 encoded client ID and secret. You may need to use a base64 encoder tool to get the encoded string. For example, DevToys is a useful tool for this purpose. ### Request ```bash cURL theme={null} curl -X POST 'https://app.podero.com/oauth2/token/' \ -H 'Authorization: Basic base64_encode(client_id:client_secret)' \ -H 'Cache-Control: no-cache' \ -H 'Content-Type: application/json' \ -d '{ "grant_type": "client_credentials" }' ``` ```python Python theme={null} import requests import base64 # Encode credentials credentials = f"{client_id}:{client_secret}" encoded = base64.b64encode(credentials.encode()).decode() # Request access token response = requests.post( 'https://app.podero.com/oauth2/token/', headers={ 'Authorization': f'Basic {encoded}', 'Cache-Control': 'no-cache', 'Content-Type': 'application/json' }, json={'grant_type': 'client_credentials'} ) token_data = response.json() access_token = token_data['access_token'] ``` ```javascript JavaScript theme={null} const clientId = 'your_client_id'; const clientSecret = 'your_client_secret'; // Encode credentials const credentials = btoa(`${clientId}:${clientSecret}`); // Request access token const response = await fetch('https://app.podero.com/oauth2/token/', { method: 'POST', headers: { 'Authorization': `Basic ${credentials}`, 'Cache-Control': 'no-cache', 'Content-Type': 'application/json' }, body: JSON.stringify({ grant_type: 'client_credentials' }) }); const tokenData = await response.json(); const accessToken = tokenData.access_token; ``` ### Response You will receive a response containing an access token, as well as the expiration time. ```json theme={null} { "access_token": "PaZDOD5UwzbGOFsQr34LQ7JUYOj3yK", "expires_in": 36000, "token_type": "Bearer", "scope": "read write" } ``` Bearer token for API authentication. Use this in the Authorization header for all subsequent API requests. Token lifetime in seconds. Typically 36000 seconds (10 hours). The type of token. Always "Bearer" for this flow. The scopes granted to this token. Typically "read write" for full access. Make sure you store these credentials securely and refresh the token in a timely manner to avoid losing access to the API. ## Using the Access Token For subsequent requests to the API, include the access token in the Authorization header: ```bash theme={null} Authorization: Bearer {access_token} ``` ### Example API Request ```bash cURL theme={null} curl -X GET \ 'https://app.podero.com/api/partners/v2.0/org/{org_id}/users' \ -H 'Authorization: Bearer {access_token}' \ -H 'Accept: application/json' ``` ```python Python theme={null} headers = { 'Authorization': f'Bearer {access_token}', 'Accept': 'application/json' } response = requests.get( f'https://app.podero.com/api/partners/v2.0/org/{org_id}/users', headers=headers ) ``` ```javascript JavaScript theme={null} const headers = { 'Authorization': `Bearer ${accessToken}`, 'Accept': 'application/json' }; const response = await fetch( `https://app.podero.com/api/partners/v2.0/org/${orgId}/users`, { headers } ); ``` ## Refreshing the Token Refreshing the token can be done with the same request you used to get the initial token. **There is no refresh token** - simply request a new access token using your client credentials. When your token is about to expire, make the same POST request to `/oauth2/token/` with your client credentials to obtain a new access token. ## Best Practices * Store client secrets in environment variables or secure vaults * Never commit credentials to source control * Use different credentials for each environment (production, sandbox) * Implement automatic token refresh before expiration * Handle 401 Unauthorized responses by refreshing the token * Cache tokens to avoid unnecessary token requests * Implement retry logic for transient failures * Log authentication errors for debugging * Monitor token expiration and refresh patterns ## Next Steps Follow our step-by-step tutorial Explore common workflows # Partner API Overview Source: https://developers.podero.com/partner-api/overview/introduction Comprehensive guide to the Podero Partner API for server-to-server integration # Podero Partner API Developer Reference **Version:** 2.0.0 This resource provides a concise overview of the Podero Partner API endpoints, designed for interacting with and governing its hardware and features. Begin your integration journey with our step-by-step tutorial Explore common use cases and workflows Learn about OAuth2 server-to-server authentication Browse partner-facing endpoints ## Versioning Podero follows **Semantic Versioning** (MAJOR.MINOR.PATCH) to ensure stability and compatibility. Given a version number **MAJOR.MINOR.PATCH**, we increment: 1. **MAJOR** version when incompatible API changes are made 2. **MINOR** version when functionality is added in a backward-compatible manner 3. **PATCH** version when backward-compatible bug fixes are made The developer documentation is tagged with the corresponding version number. The API URL is tagged with the current MAJOR.MINOR version. New versions are issued when significant changes occur or new features are introduced that may break existing functionality. Bug fixes are made available across all supported API versions. ## Environments You can access multiple environments within our systems. Each has its unique access policies and live/mocked confiugrations. Environments are self-contained and isolated. Client credentials are associated with a specific environment and cannot be employed in other environments. | Resource | URL | | - | - | | API Base | `https://app.podero.com/api/partners/v2.0/` | | Documentation | [API Reference](/api-reference) | | OAuth Authorization | Client Credentials | | Resource | URL | | - | - | | API Base | `https://sandbox-app.podero.com/api/partners/v2.0/` | | Documentation | [API Reference](/api-reference) | | OAuth Authorization | Client Credentials | ## API Documentation A detailed low-level documentation of the API can be found in the [API Reference](/api-reference). ## Organization and User Management There are 3 access levels within an organization: * **Administrator** * **Staff** * **User** The "Administrator" and "Staff" roles can view and edit all other users and their devices. An Administrator can add other Staff and Administrators. The Client Credential access for a server-to-server connection has the same privileges as an organization's Administrator. ### Permission Matrix | Role | Create | Read | Update | Delete | | - | - | - | - | - | | Admin Users | ✅ | ✅ | ✅ | ✅ | | Staff Users | ✅ | ✅ | ✅ | ✅ | | Users | ✅ | ✅ | ✅ | ✅ | | Buildings | ✅ | ✅ | ✅ | ✅ | | Energy Contracts | ✅ | ✅ | ✅ | ✅ | | Devices | ✅ | ✅ | ✅ | ✅ | | Role | Create | Read | Update | Delete | | - | - | - | - | - | | Admin User | ❌ | ✅ | ❌ | ❌ | | Staff User | ❌ | ✅ | ❌ | ❌ | | Users | ✅ | ✅ | ✅ | ✅ | | Buildings | ✅ | ✅ | ✅ | ✅ | | Energy Contracts | ✅ | ✅ | ✅ | ✅ | | Devices | ✅ | ✅ | ✅ | ✅ | The "User" can only see and edit their own assets and no assets owned by other users. | Role | Create | Read | Update | Delete | | - | - | - | - | - | | User | ❌ | ✅ | ✅ | ❌ | | Building | ✅ | ✅ | ✅ | ✅ | | Device | ✅ | ✅ | ✅ | ✅ | ## Core Concepts ### Organization An organization is the highest level our Partners have access to. For management purposes, one Partner can maintain multiple organizations. Please reach out to [contact@podero.com](mailto:contact@podero.com) if you need more than one organization. ### Users The user refers to the Partner's end-user, who owns the devices that are being monitored, steered, and optimized through Podero's platform. The Partner can choose to add their own internal ID, as well as a host of other additional information. Our API is connected to a rich database, allowing the Partners to add extensive information about their users, reducing effort and needed disk space on their own server side. ### Devices The devices that can be monitored, steered, and optimized through the Podero platform are: * **Heat Pumps** * **Electric Vehicles** * **EV Chargers** * **Solar Inverters** ## Next Steps Set up OAuth2 authentication Follow our step-by-step tutorial # Electric Vehicle Attributes Source: https://developers.podero.com/partner-api/reference/electric-vehicles/attributes Writable parameters for configuring electric vehicle charging # Electric Vehicle Attributes Electric vehicle attributes are writable parameters that control charging behavior, optimization settings, and user preferences for charge limits and schedules. ## Required Parameters User ID that owns this electric vehicle. **Example:** `016b78a7-0c7c-4241-a277-015c3ad3cb90` **Writable:** No (set at device creation) ## Device Model The device model assigned to this electric vehicle. Set during onboarding. **Writable:** No (set at device creation) Manufacturer name. **Example:** `Tesla` Model name. **Example:** `Model 3` Model year, if available. **Example:** `2023` Machine-readable device type identifier. **Example:** `ev` Human-readable device type label. **Example:** `Electric Vehicle` ## Optimization Control Flag indicating whether Podero's smart optimization is actively controlling charging. Set to `false` to pause optimization without disconnecting the vehicle. **Example:** `true` **Writable:** Yes ## Charge Limits OEM-detected hard cap on the battery charge level in percent. Set automatically by the system based on the vehicle's detected charge limit — `null` means no cap has been detected yet. **Example:** `80` **Range:** 0-100 **Writable:** No (system-managed) ## Charge Policy Charge policies allow users to specify a required charge level by a specific deadline, ensuring the vehicle is ready for planned trips. Flag indicating whether a charge policy is active. **Example:** `true` **Writable:** Yes Time of day by which the specified charge level must be reached (HH:MM format, 24h). Used in combination with `minimum_charge_limit` to ensure the vehicle is ready by a specific time each day. **Example:** `07:00` **Writable:** Yes Minimum charge level in percent that must be reached by the deadline specified in `charge_deadline_at`. This overrides normal charging optimization to prioritize meeting the deadline. **Example:** `75` **Range:** 0-100 **Writable:** Yes Timestamp when the charge policy was last updated. Read-only, automatically managed. **Example:** `2023-03-22T13:54:34.000Z` **Writable:** No (system-managed) ## HEMS Configuration When a user also has a solar inverter, the EV can be set to charge reactively based on solar production and grid export signals. The following thresholds control when charging starts and stops. Minimum grid export in Watts required to start charging. Charging begins when the household is exporting at least this much power to the grid. **Example:** `2000` **Writable:** Yes Maximum grid import in Watts before charging stops. If the household starts importing more than this from the grid, EV charging is paused. **Example:** `4000` **Writable:** Yes Minimum solar production in Watts required to start charging. **Example:** `3000` **Writable:** Yes Minimum solar production in Watts required to keep charging. If production drops below this, charging stops. **Example:** `2000` **Writable:** Yes ## Usage Examples ### Configure Daily Charging ```bash cURL theme={null} curl -X PUT \ 'https://app.podero.com/api/partners/v2.0/org/{org_id}/users/{user_id}/electric-vehicles/{device_id}' \ -H 'Authorization: Bearer {auth_token}' \ -H 'Content-Type: application/json' \ -d '{ "is_smart_optimization_active": true, "is_charge_policy_enabled": true, "charge_deadline_at": "07:00", "minimum_charge_limit": 80 }' ``` ```python Python theme={null} response = requests.put( f'https://app.podero.com/api/partners/v2.0/org/{org_id}/users/{user_id}/electric-vehicles/{device_id}', headers={ 'Authorization': f'Bearer {auth_token}', 'Content-Type': 'application/json' }, json={ 'is_smart_optimization_active': True, 'is_charge_policy_enabled': True, 'charge_deadline_at': '07:00', 'minimum_charge_limit': 80 } ) ``` ### Set Charge Deadline for Trip ```bash cURL theme={null} curl -X PUT \ 'https://app.podero.com/api/partners/v2.0/org/{org_id}/users/{user_id}/electric-vehicles/{device_id}' \ -H 'Authorization: Bearer {auth_token}' \ -H 'Content-Type: application/json' \ -d '{ "is_charge_policy_enabled": true, "charge_deadline_at": "07:00", "minimum_charge_limit": 90 }' ``` ```python Python theme={null} response = requests.put( f'https://app.podero.com/api/partners/v2.0/org/{org_id}/users/{user_id}/electric-vehicles/{device_id}', headers={ 'Authorization': f'Bearer {auth_token}', 'Content-Type': 'application/json' }, json={ 'is_charge_policy_enabled': True, 'charge_deadline_at': '07:00', 'minimum_charge_limit': 90 } ) ``` ## Best Practices * Use charge policies for planned trips requiring specific charge levels * Set deadlines with enough buffer time for charging completion * Clear charge policies after the deadline passes * Monitor `charge_policy_last_updated_at` to track changes * Keep `is_smart_optimization_active` enabled for cost savings * Optimization works best with spot hourly energy pricing * Vehicle will always respect deadlines and minimum charge requirements ## Charge Policy Scenarios **Scenario:** User needs 70% charge by 7 AM every weekday ```python theme={null} update_vehicle({ 'is_charge_policy_enabled': True, 'charge_deadline_at': '07:00', 'minimum_charge_limit': 70, }) ``` **Scenario:** User needs full charge for long trip on Saturday morning ```python theme={null} update_vehicle({ 'is_charge_policy_enabled': True, 'charge_deadline_at': '08:00', 'minimum_charge_limit': 100, }) # Clear after trip # ... after trip completes ... update_vehicle({ 'is_charge_policy_enabled': False, }) ``` **Scenario:** No specific deadline, optimize for lowest cost ```python theme={null} # Disable policy, rely on optimization update_vehicle({ 'is_charge_policy_enabled': False, 'is_smart_optimization_active': True, }) ``` Read-only state data and current readings User workflow for configuring charging Connecting electric vehicles # Electric Vehicle State Source: https://developers.podero.com/partner-api/reference/electric-vehicles/state Read-only state data and current readings from electric vehicles # Electric Vehicle State Electric vehicle state parameters provide real-time charging status and battery information. These fields are read-only and automatically updated from the manufacturer's API. State data is sourced from Smartcar webhooks and updates whenever the vehicle reports a change. ## Charging Status Indicates whether the charging cable is connected to the vehicle. **Example:** `true` Indicates whether charging is currently in progress. A vehicle can be plugged in but not actively charging (waiting for low-price period, charge limit reached, etc.). **Example:** `true` Timestamp when the device state was last updated from the manufacturer's API. Use this to determine data freshness. **Example:** `2023-03-22T13:54:34.000Z` ## Charging Power Current charging rate in Watts. **Example:** `7400` ## Battery Information Current battery charge level in percent. **Example:** `90` **Range:** 0-100 Total battery capacity in kilowatt-hours. **Example:** `79.5` Whether the battery has reached the vehicle's charge limit. **Example:** `false` Estimated driving range based on the current battery level, in kilometers. **Example:** `280` Current state of a boost charge. Use this to drive the charge now UI — see [Setting Preferences](/partner-api/user-journeys/end-user/setting-preferences) for how to trigger a boost. | Value | Meaning | | - | - | | `available` | A boost can be triggered | | `requested` | Boost triggered, charge starting | | `ongoing` | Actively charging via boost | | `unavailable` | Vehicle full, already charging, or not connected | **Example:** `available` ## Usage Examples ### Get Vehicle State ```bash cURL theme={null} curl -X GET \ 'https://app.podero.com/api/partners/v2.0/org/{org_id}/users/{user_id}/electric-vehicles/{device_id}' \ -H 'Authorization: Bearer {auth_token}' \ -H 'Accept: application/json' ``` ```python Python theme={null} response = requests.get( f'https://app.podero.com/api/partners/v2.0/org/{org_id}/users/{user_id}/electric-vehicles/{device_id}', headers={ 'Authorization': f'Bearer {auth_token}', 'Accept': 'application/json' } ) vehicle = response.json() # Access state fields battery_level = vehicle['battery_level'] is_charging = vehicle['is_charging'] is_plugged_in = vehicle['is_plugged_in'] ``` ```javascript JavaScript theme={null} const response = await fetch( `https://app.podero.com/api/partners/v2.0/org/${orgId}/users/${userId}/electric-vehicles/${deviceId}`, { headers: { 'Authorization': `Bearer ${authToken}`, 'Accept': 'application/json' } } ); const vehicle = await response.json(); // Access state fields const batteryLevel = vehicle.battery_level; const isCharging = vehicle.is_charging; const isPluggedIn = vehicle.is_plugged_in; ``` ## Charging States Explained **Conditions:** `is_plugged_in: true`, `is_charging: true` Vehicle is actively drawing power and charging the battery. **Typical Duration:** 1-8 hours depending on battery size and charge rate **Conditions:** `is_plugged_in: true`, `is_charging: false` Vehicle is connected but not actively charging. This is normal during optimized charging - waiting for low-price periods. **Typical Duration:** Variable, can be several hours **Conditions:** `is_plugged_in: false` Vehicle is not connected to a charger. Battery level remains static (minus any driving consumption). **Typical Duration:** Until plugged in ## Best Practices * Poll vehicle state every 5-10 minutes when plugged in * Reduce polling to 15-30 minutes when not plugged in * Check `charge_state_last_updated_at` to avoid unnecessary calls * Show last update timestamp to users for transparency * Highlight when vehicle is waiting for optimal charging time * Provide context for why charging may be paused * Use `battery_level` to show charge progress to the user Writable parameters and configuration Building end-user dashboards # Heat Pump Attributes Source: https://developers.podero.com/partner-api/reference/heat-pumps/attributes Writable parameters for configuring heat pump devices # Heat Pump Attributes Heat pump attributes are writable parameters that control device behavior and optimization settings. ## Required Parameters User ID that owns this heat pump device. **Example:** `016b78a7-0c7c-4241-a277-015c3ad3cb90` **Writable:** No (set at device creation) ## Device Model The device model assigned to this heat pump. Set during onboarding. **Writable:** No (set at device creation) Manufacturer name. **Example:** `Nibe` Model name. **Example:** `S2125-8` Model year, if available. **Example:** `2022` Machine-readable device type identifier. **Example:** `hp_atw` Human-readable device type label. **Example:** `Heat Pump (Air-to-Water)` ## Optimization Control Flag indicating whether Podero's smart optimization is actively controlling this device. Set to `false` to pause optimization without disconnecting the device. **Example:** `true` **Writable:** Yes The aggressiveness ceiling at which Podero optimizes this heat pump. Controls how far the system will shift the heat pump's operation to chase cheap spot price windows. **Options:** `Low`, `Mid`, `Max` **Example:** `Mid` **Writable:** Yes ## Usage Examples ### Enable Optimization ```bash cURL theme={null} curl -X PUT \ 'https://app.podero.com/api/partners/v2.0/org/{org_id}/users/{user_id}/heat-pumps/{device_id}' \ -H 'Authorization: Bearer {auth_token}' \ -H 'Content-Type: application/json' \ -d '{ "is_smart_optimization_active": true }' ``` ```python Python theme={null} response = requests.put( f'https://app.podero.com/api/partners/v2.0/org/{org_id}/users/{user_id}/heat-pumps/{device_id}', headers={ 'Authorization': f'Bearer {auth_token}', 'Content-Type': 'application/json' }, json={ 'is_smart_optimization_active': True, } ) ``` ## Best Practices * Keep `is_smart_optimization_active` enabled for cost savings * Optimization works best with spot hourly energy pricing Read-only state data and current readings User workflow for configuring preferences Connecting heat pump devices # Heat Pump State Source: https://developers.podero.com/partner-api/reference/heat-pumps/state Read-only state data and current readings from heat pump devices # Heat Pump State Heat pump state parameters provide real-time sensor readings and current device status. These fields are read-only and automatically updated from the manufacturer's API. State data refresh frequency depends on the manufacturer's API. Most values update every 5-15 minutes. ## Operational Status Current power consumption in Watts. **Example:** `2341` The optimization mode Podero is running the heat pump at right now. This reflects the actual real-time operation and may vary from `optimization_level` as the system responds to spot prices. Only meaningful when `is_smart_optimization_active` is `true`. **Options:** `min`, `low`, `mid`, `max` **Example:** `mid` Timestamp when the device state was last updated from the manufacturer's API. Use this to determine data freshness. **Example:** `2023-03-22T13:54:34.000Z` ## Temperature Readings Current outdoor temperature in °C measured by the heat pump. **Example:** `9.3` Current indoor temperature in °C (if indoor sensor is available). May be `null` if the device doesn't have an indoor temperature sensor. **Example:** `21.2` Target indoor temperature in °C requested by the heating system. May be `null` if not reported by the device. **Example:** `22.0` Offset applied to the indoor target temperature in °C. Podero uses this to steer heating up or down relative to the user's base target. **Example:** `1.5` The configured optimization aggressiveness for this heat pump — the ceiling Podero will operate at. **Options:** `Low`, `Mid`, `Max` **Example:** `Mid` Temperature of the heating circuit water entering the heat pump in °C. **Example:** `35.4` Temperature of the heating circuit water leaving the heat pump in °C. **Example:** `42.1` Current temperature of domestic hot water in °C. **Example:** `51.1` Domestic hot water setpoint temperature in °C as reported by the device. **Example:** `48.0` ## Usage Examples ### Get Device State ```bash cURL theme={null} curl -X GET \ 'https://app.podero.com/api/partners/v2.0/org/{org_id}/users/{user_id}/heat-pumps/{device_id}' \ -H 'Authorization: Bearer {auth_token}' \ -H 'Accept: application/json' ``` ```python Python theme={null} response = requests.get( f'https://app.podero.com/api/partners/v2.0/org/{org_id}/users/{user_id}/heat-pumps/{device_id}', headers={ 'Authorization': f'Bearer {auth_token}', 'Accept': 'application/json' } ) device = response.json() # Access state fields current_power = device['current_power_consumption_w'] indoor_temp = device['indoor_actual_temperature'] dhw_temp = device['dhw_temperature'] ``` ```javascript JavaScript theme={null} const response = await fetch( `https://app.podero.com/api/partners/v2.0/org/${orgId}/users/${userId}/heat-pumps/${deviceId}`, { headers: { 'Authorization': `Bearer ${authToken}`, 'Accept': 'application/json' } } ); const device = await response.json(); // Access state fields const currentPower = device.current_power_consumption_w; const indoorTemp = device.indoor_actual_temperature; const dhwTemp = device.dhw_temperature; ``` ## Best Practices * Poll device state every 5-15 minutes for dashboard updates * Check `current_state_last_updated_at` to avoid unnecessary API calls * Implement caching to reduce API load * Show last update timestamp to users for transparency * Show both indoor and outdoor temperatures for context * Highlight when indoor temperature is outside comfort range * DHW temperature should typically be 45-55°C * Consider outdoor temperature for heating efficiency expectations * Handle `null` values gracefully (e.g., missing indoor sensor) * Display user-friendly messages for stale data * Provide troubleshooting steps when data stops updating Writable parameters and configuration Building end-user dashboards # Solar Inverter Attributes Source: https://developers.podero.com/partner-api/reference/inverters/attributes Writable parameters for configuring solar inverters and battery systems # Solar Inverter Attributes Solar inverter attributes are writable parameters that control battery behavior, self-consumption optimization, and system configuration for photovoltaic installations. ## Required Parameters User ID that owns this solar inverter. **Example:** `016b78a7-0c7c-4241-a277-015c3ad3cb90` **Writable:** No (set at device creation) ## Device Model The device model assigned to this inverter. Set during onboarding. **Writable:** No (set at device creation) Manufacturer name. **Example:** `Fronius` Model name. **Example:** `Symo GEN24 10.0 Plus` Model year, if available. **Example:** `2022` Machine-readable device type identifier. **Example:** `inverter` Human-readable device type label. **Example:** `Solar Inverter` ## Optimization Control Flag indicating whether Podero's smart optimization is actively controlling this inverter. Set to `false` to pause optimization without disconnecting the device. **Example:** `true` **Writable:** Yes ## Solar System Configuration Currently installed peak power rating of the solar system in kilowatts. **Example:** `10.2` **Writable:** Yes ## Battery Configuration Flag indicating whether the inverter has a storage battery connected. Set to `false` for solar-only installations without battery storage. **Example:** `true` **Writable:** Yes Currently installed battery capacity in kilowatt-hours. Required if `is_battery_connected` is `true`. **Example:** `10.0` **Writable:** Yes ## Battery Charge Limits Minimum allowed battery charge level in percent. Battery will not discharge below this level, ensuring backup power availability. **Example:** `20` **Range:** 0-100 **Writable:** Yes Maximum allowed battery charge level in percent. Useful for battery longevity or to reserve capacity for grid services. **Example:** `90` **Range:** 0-100 **Writable:** Yes ## Usage Examples ### Configure Solar System with Battery ```bash cURL theme={null} curl -X PUT \ 'https://app.podero.com/api/partners/v2.0/org/{org_id}/users/{user_id}/inverters/{device_id}' \ -H 'Authorization: Bearer {auth_token}' \ -H 'Content-Type: application/json' \ -d '{ "solar_power_rating_kw": 10.2, "is_battery_connected": true, "battery_capacity_kwh": 13.5, "min_battery_charge": 20, "max_battery_charge": 100 }' ``` ```python Python theme={null} response = requests.put( f'https://app.podero.com/api/partners/v2.0/org/{org_id}/users/{user_id}/inverters/{device_id}', headers={ 'Authorization': f'Bearer {auth_token}', 'Content-Type': 'application/json' }, json={ 'solar_power_rating_kw': 10.2, 'is_battery_connected': True, 'battery_capacity_kwh': 13.5, 'min_battery_charge': 20, 'max_battery_charge': 100 } ) ``` ### Configure Solar-Only System (No Battery) ```bash cURL theme={null} curl -X PUT \ 'https://app.podero.com/api/partners/v2.0/org/{org_id}/users/{user_id}/inverters/{device_id}' \ -H 'Authorization: Bearer {auth_token}' \ -H 'Content-Type: application/json' \ -d '{ "solar_power_rating_kw": 8.5, "is_battery_connected": false }' ``` ```python Python theme={null} response = requests.put( f'https://app.podero.com/api/partners/v2.0/org/{org_id}/users/{user_id}/inverters/{device_id}', headers={ 'Authorization': f'Bearer {auth_token}', 'Content-Type': 'application/json' }, json={ 'solar_power_rating_kw': 8.5, 'is_battery_connected': False } ) ``` ### Configure Battery Limits for Backup Reserve ```bash cURL theme={null} # Reserve 30% battery for backup power curl -X PUT \ 'https://app.podero.com/api/partners/v2.0/org/{org_id}/users/{user_id}/inverters/{device_id}' \ -H 'Authorization: Bearer {auth_token}' \ -H 'Content-Type: application/json' \ -d '{ "min_battery_charge": 30, "max_battery_charge": 90 }' ``` ```python Python theme={null} response = requests.put( f'https://app.podero.com/api/partners/v2.0/org/{org_id}/users/{user_id}/inverters/{device_id}', headers={ 'Authorization': f'Bearer {auth_token}', 'Content-Type': 'application/json' }, json={ 'min_battery_charge': 30, 'max_battery_charge': 90 } ) ``` ## Best Practices * Set `min_battery_charge` to 20-30% to ensure backup power availability * Set `max_battery_charge` to 90-95% for battery longevity * Adjust limits seasonally based on usage patterns * Keep `solar_power_rating_kw` updated if panels are added or removed * Update `battery_capacity_kwh` if the battery is upgraded * Set `is_battery_connected` to `false` for solar-only installations * Review configuration after system maintenance ## Common Scenarios ```python theme={null} # Configure newly installed 10kW system with 13.5kWh battery update_inverter({ 'solar_power_rating_kw': 10.0, 'is_battery_connected': True, 'battery_capacity_kwh': 13.5, 'min_battery_charge': 20, 'max_battery_charge': 100, }) ``` ```python theme={null} # Update system after battery retrofit update_inverter({ 'is_battery_connected': True, 'battery_capacity_kwh': 10.0, 'min_battery_charge': 20, 'max_battery_charge': 90 }) ``` ```python theme={null} # Increase backup reserve for expected power outage update_inverter({ 'min_battery_charge': 50, # Reserve 50% for backup }) # After emergency passes, return to normal update_inverter({ 'min_battery_charge': 20 }) ``` ```python theme={null} # Summer: more production, higher max charge update_inverter({ 'max_battery_charge': 100 }) # Winter: less production, reserve more battery update_inverter({ 'min_battery_charge': 30 }) ``` Read-only state data and current readings User workflow for configuring preferences # Solar Inverter State Source: https://developers.podero.com/partner-api/reference/inverters/state Read-only state data and current readings from solar inverters # Solar Inverter State Solar inverter state parameters provide real-time production data, battery status, household consumption, and energy metrics. These fields are read-only and automatically updated from the manufacturer's API. State data refresh frequency depends on the manufacturer's API. Most values update every 5-15 minutes. ## Grid Exchange Current power being exported to or imported from the grid in Watts. Positive values indicate export; negative values indicate import. **Example:** `2500` (exporting 2.5 kW) ## Solar Production Current solar power production in Watts. Returns `0` during nighttime or cloudy conditions. **Example:** `6250` ## Household Consumption Current total power consumption of the household in Watts. Includes all electrical loads in the building. **Example:** `950` ## Solar Surplus Solar power available after household consumption, in Watts. Represents excess production not consumed by the home. **Example:** `5300` ## Battery Status Current battery charge level in percent. Returns `null` or `0` if no battery is connected. **Example:** `85` **Range:** 0-100 Current battery power flow in Watts. **Positive values:** Battery is discharging **Negative values:** Battery is charging **Example:** `-755` (charging at 755W) Timestamp when the battery and inverter state was last updated from the manufacturer's API. Use this to determine data freshness. **Example:** `2023-03-22T13:54:34.000Z` ## Usage Examples ### Get Inverter State ```bash cURL theme={null} curl -X GET \ 'https://app.podero.com/api/partners/v2.0/org/{org_id}/users/{user_id}/inverters/{device_id}' \ -H 'Authorization: Bearer {auth_token}' \ -H 'Accept: application/json' ``` ```python Python theme={null} response = requests.get( f'https://app.podero.com/api/partners/v2.0/org/{org_id}/users/{user_id}/inverters/{device_id}', headers={ 'Authorization': f'Bearer {auth_token}', 'Accept': 'application/json' } ) inverter = response.json() # Access state fields solar_production = inverter['current_solar_production_w'] battery_level = inverter['battery_charge_level_percent'] consumption = inverter['household_consumption_w'] ``` ```javascript JavaScript theme={null} const response = await fetch( `https://app.podero.com/api/partners/v2.0/org/${orgId}/users/${userId}/inverters/${deviceId}`, { headers: { 'Authorization': `Bearer ${authToken}`, 'Accept': 'application/json' } } ); const inverter = await response.json(); // Access state fields const solarProduction = inverter.current_solar_production_w; const batteryLevel = inverter.battery_charge_level_percent; const consumption = inverter.household_consumption_w; ``` ## Understanding Power Flows **Scenario:** `current_solar_production_w: 8000`, `household_consumption_w: 1500` * 1500W used directly in home * 6500W available for battery charging and grid export * Battery charges if below max charge limit **Battery:** Charging at maximum rate **Grid:** Exporting excess power **Scenario:** `current_solar_production_w: 0`, `household_consumption_w: 2000` * No solar production * Battery discharges to meet demand * Grid supplements if battery can't meet full demand **Battery:** Discharging **Grid:** Importing if needed **Scenario:** `current_solar_production_w: 500`, `household_consumption_w: 1500` * 500W from solar used directly * 1000W deficit met by battery or grid * Battery may discharge if policy allows **Battery:** Idle or discharging **Grid:** Importing to meet demand **Scenario:** `current_solar_production_w: 10000`, `battery_charge_level_percent: 100` * Home consumption met from solar * Battery at maximum charge * All surplus exported to grid **Battery:** Full, idle **Grid:** Exporting maximum surplus ## Best Practices * Poll inverter state every 5-10 minutes during daylight hours * Reduce polling to 15-30 minutes during nighttime * Check `current_state_last_updated_at` to avoid unnecessary calls * Display last update timestamp for transparency * Show current production prominently during daylight * Calculate and show self-consumption percentage using `current_solar_production_w` and `household_consumption_w` * Highlight peak production times * Display battery level with charge/discharge status * Show power flow direction (charging/discharging) * Alert on unusual battery behavior * Track cycling patterns for health monitoring * Visualize power flows between solar, battery, and home * Calculate and display self-consumption rate * Provide historical energy flow analysis Writable parameters and configuration Building end-user dashboards # User Parameters Source: https://developers.podero.com/partner-api/reference/users Complete reference for user account attributes and properties # User Parameters User parameters define end-user account information, contact details, and metadata for the Podero platform. Use the `external_user_id` field to link Podero users with your internal customer management system. ## Required Parameters Organization ID that the user belongs to. Assigned during partner onboarding. **Example:** `016b78a7-0c7c-4241-a277-015c3ad3cb90` **Writable:** No (set at creation, cannot be changed) User's email address. Must be unique within the organization. **Example:** `peter.schmidt@gmail.com` **Writable:** Yes User's access level within the organization. **Options:** * `admin` - Full access to all organization resources * `staff` - Can manage end-users and devices, but not other staff/admins * `user` - End-user with access only to their own resources **Example:** `user` **Writable:** Yes (admin only can change roles) ## Optional Parameters ### Personal Information Partner's internal user identifier for cross-referencing with your systems. **Example:** `134681893870` **Writable:** Yes User's first name. **Example:** `Peter` **Writable:** Yes User's last name. **Example:** `Schmidt` **Writable:** Yes ### Address Information Primary street address with house number. **Example:** `Platz der Republik 1` **Writable:** Yes Additional address information (apartment number, floor, building, etc.). **Example:** `Apt 4B` **Writable:** Yes Postal/ZIP code. **Example:** `11011` **Writable:** Yes City or town name. **Example:** `Berlin` **Writable:** Yes Country code in ISO 3166-1 alpha-2 format. **Example:** `DE` **Writable:** Yes ### Location Coordinates Latitude and longitude can be used for location-based optimization and regional pricing. Geographic latitude coordinate. **Example:** `40.7128` **Writable:** Yes Geographic longitude coordinate. **Example:** `74.0060` **Writable:** Yes ## Usage Examples ### Create User with Minimum Required Fields ```bash cURL theme={null} curl -X POST \ 'https://app.podero.com/api/partners/v2.0/org/{org_id}/users' \ -H 'Authorization: Bearer {auth_token}' \ -H 'Content-Type: application/json' \ -d '{ "role": "user", "email": "customer@example.com" }' ``` ```python Python theme={null} response = requests.post( f'https://app.podero.com/api/partners/v2.0/org/{org_id}/users', headers={ 'Authorization': f'Bearer {auth_token}', 'Content-Type': 'application/json' }, json={ 'role': 'user', 'email': 'customer@example.com' } ) ``` ### Create User with Complete Information ```bash cURL theme={null} curl -X POST \ 'https://app.podero.com/api/partners/v2.0/org/{org_id}/users' \ -H 'Authorization: Bearer {auth_token}' \ -H 'Content-Type: application/json' \ -d '{ "role": "user", "email": "peter.schmidt@gmail.com", "external_user_id": "134681893870", "first_name": "Peter", "last_name": "Schmidt", "street_and_number": "Platz der Republik 1", "street_add_info": "Apt 4B", "zip_code": "11011", "town": "Berlin", "country": "DE", "latitude": 52.5200, "longitude": 13.4050 }' ``` ```python Python theme={null} response = requests.post( f'https://app.podero.com/api/partners/v2.0/org/{org_id}/users', headers={ 'Authorization': f'Bearer {auth_token}', 'Content-Type': 'application/json' }, json={ 'role': 'user', 'email': 'peter.schmidt@gmail.com', 'external_user_id': '134681893870', 'first_name': 'Peter', 'last_name': 'Schmidt', 'street_and_number': 'Platz der Republik 1', 'street_add_info': 'Apt 4B', 'zip_code': '11011', 'town': 'Berlin', 'country': 'DE', 'latitude': 52.5200, 'longitude': 13.4050 } ) ``` ### Update User Information ```bash cURL theme={null} curl -X PUT \ 'https://app.podero.com/api/partners/v2.0/org/{org_id}/users/{user_id}' \ -H 'Authorization: Bearer {auth_token}' \ -H 'Content-Type: application/json' \ -d '{ "external_user_id": "updated_id_12345", "town": "Munich", "country": "DE" }' ``` ```python Python theme={null} # Only send fields that need to be updated response = requests.put( f'https://app.podero.com/api/partners/v2.0/org/{org_id}/users/{user_id}', headers={ 'Authorization': f'Bearer {auth_token}', 'Content-Type': 'application/json' }, json={ 'external_user_id': 'updated_id_12345', 'town': 'Munich', 'country': 'DE' } ) ``` ## Best Practices * Always set `external_user_id` to link with your internal systems * Use a consistent ID format across all users * This makes it easy to sync data between systems * Useful for customer support and troubleshooting * Collect user names and addresses for better optimization * Location data helps with regional pricing and weather-based optimization * Keep email addresses up-to-date for important notifications * Validate email format before sending to API * Use `user` role for end-customers * Use `staff` role for support team members * Reserve `admin` role for managers and senior staff * Only admins can change user roles * Only collect data you need and have permission to store * Follow GDPR and other privacy regulations * Provide users with access to their own data * Implement data retention policies ## Related Resources Create your first user Back-office user workflows Manage staff and admin users # Team Administration Source: https://developers.podero.com/partner-api/user-journeys/back-office/team-administration Manage staff and admin users within your organization # Team Administration Partners can create and manage multiple admin and staff users within their organization to collaborate effectively on device fleet management and customer support. ## User Role Overview Full access to all organization resources. Can manage other admins and staff. Can view and manage all end-users and devices, but cannot manage other staff or admins. End-users who can only access their own devices and data. ## Adding Staff or Admin Users Admin and Staff users are created the same way as regular users, but with a different role specified. ### Create Admin User Admins have full access to all organization resources: ```bash cURL theme={null} curl -X POST \ 'https://app.podero.com/api/partners/v2.0/org/{org_id}/users' \ -H 'accept: application/json' \ -H 'Content-Type: application/json' \ -H 'Authorization: Bearer {auth_token}' \ -d '{ "role": "admin", "email": "mycolleague@mycompany.com", "first_name": "Jane", "last_name": "Smith" }' ``` ```python Python theme={null} import requests response = requests.post( f'https://app.podero.com/api/partners/v2.0/org/{org_id}/users', headers={ 'accept': 'application/json', 'Content-Type': 'application/json', 'Authorization': f'Bearer {auth_token}' }, json={ 'role': 'admin', 'email': 'mycolleague@mycompany.com', 'first_name': 'Jane', 'last_name': 'Smith' } ) new_admin = response.json() print(f"Admin user created: {new_admin['id']}") ``` ```javascript JavaScript theme={null} const response = await fetch( `https://app.podero.com/api/partners/v2.0/org/${orgId}/users`, { method: 'POST', headers: { 'accept': 'application/json', 'Content-Type': 'application/json', 'Authorization': `Bearer ${authToken}` }, body: JSON.stringify({ role: 'admin', email: 'mycolleague@mycompany.com', first_name: 'Jane', last_name: 'Smith' }) } ); const newAdmin = await response.json(); console.log('Admin user created:', newAdmin.id); ``` ### Create Staff User Staff users can manage end-users but not other staff or admins: ```bash cURL theme={null} curl -X POST \ 'https://app.podero.com/api/partners/v2.0/org/{org_id}/users' \ -H 'accept: application/json' \ -H 'Content-Type: application/json' \ -H 'Authorization: Bearer {auth_token}' \ -d '{ "role": "staff", "email": "support@mycompany.com", "first_name": "Support", "last_name": "Team" }' ``` ```python Python theme={null} response = requests.post( f'https://app.podero.com/api/partners/v2.0/org/{org_id}/users', headers={ 'accept': 'application/json', 'Content-Type': 'application/json', 'Authorization': f'Bearer {auth_token}' }, json={ 'role': 'staff', 'email': 'support@mycompany.com', 'first_name': 'Support', 'last_name': 'Team' } ) new_staff = response.json() ``` ## Email Invitation Flow When you create an admin or staff user via the API, the user is created in the system. Your colleague will receive an email invitation to join the platform as an admin or staff member. They'll use the invitation link to set their password and configure their account. After setting up their account, they can log in and will have the appropriate permissions based on their role. Make sure the email address is correct - the invitation will be sent to this address. ## Permission Matrix ### What Each Role Can Do **Full Access** | Action | End-Users | Devices | Staff | Admins | | - | - | - | - | - | | Create | ✅ | ✅ | ✅ | ✅ | | Read | ✅ | ✅ | ✅ | ✅ | | Update | ✅ | ✅ | ✅ | ✅ | | Delete | ✅ | ✅ | ✅ | ✅ | Admins can also: * Access organization settings * Manage API credentials * View all audit logs * Manage billing (via web portal) **Limited Admin Access** | Action | End-Users | Devices | Staff | Admins | | - | - | - | - | - | | Create | ✅ | ✅ | ❌ | ❌ | | Read | ✅ | ✅ | ✅ | ✅ | | Update | ✅ | ✅ | ❌ | ❌ | | Delete | ✅ | ✅ | ❌ | ❌ | Staff can: * Manage all end-users and their devices * Provide customer support * View (but not manage) other staff and admins **API Access** Client Credentials (server-to-server) have the same privileges as an Administrator. This allows your backend systems to: * Automate user and device management * Integrate with your internal systems * Perform bulk operations * Access all organization data ## List Team Members Get all admin and staff users in your organization: ```bash cURL theme={null} curl -X GET \ 'https://app.podero.com/api/partners/v2.0/org/{org_id}/users' \ -H 'accept: application/json' \ -H 'Authorization: Bearer {auth_token}' ``` ```python Python theme={null} response = requests.get( f'https://app.podero.com/api/partners/v2.0/org/{org_id}/users', headers={ 'accept': 'application/json', 'Authorization': f'Bearer {auth_token}' } ) all_users = response.json() # Filter for team members team_members = [ user for user in all_users if user['role'] in ['admin', 'staff'] ] print(f"Total team members: {len(team_members)}") for member in team_members: print(f" {member['email']} - {member['role']}") ``` ```javascript JavaScript theme={null} const response = await fetch( `https://app.podero.com/api/partners/v2.0/org/${orgId}/users`, { headers: { 'accept': 'application/json', 'Authorization': `Bearer ${authToken}` } } ); const allUsers = await response.json(); // Filter for team members const teamMembers = allUsers.filter(user => ['admin', 'staff'].includes(user.role) ); console.log(`Total team members: ${teamMembers.length}`); teamMembers.forEach(member => { console.log(` ${member.email} - ${member.role}`); }); ``` ## Update Team Member Role Change a user's role (requires admin access): ```bash cURL theme={null} # Promote staff to admin curl -X PUT \ 'https://app.podero.com/api/partners/v2.0/org/{org_id}/users/{user_id}' \ -H 'accept: application/json' \ -H 'Content-Type: application/json' \ -H 'Authorization: Bearer {auth_token}' \ -d '{ "role": "admin" }' ``` ```python Python theme={null} # Promote staff to admin response = requests.put( f'https://app.podero.com/api/partners/v2.0/org/{org_id}/users/{user_id}', headers={ 'accept': 'application/json', 'Content-Type': 'application/json', 'Authorization': f'Bearer {auth_token}' }, json={'role': 'admin'} ) updated_user = response.json() print(f"User role updated to: {updated_user['role']}") ``` Only administrators can change user roles. Staff users cannot promote or demote other users. ## Remove Team Member Delete a staff or admin user: ```bash cURL theme={null} curl -X DELETE \ 'https://app.podero.com/api/partners/v2.0/org/{org_id}/users/{user_id}' \ -H 'accept: application/json' \ -H 'Authorization: Bearer {auth_token}' ``` ```python Python theme={null} response = requests.delete( f'https://app.podero.com/api/partners/v2.0/org/{org_id}/users/{user_id}', headers={ 'accept': 'application/json', 'Authorization': f'Bearer {auth_token}' } ) if response.status_code == 204: print("User successfully removed") ``` To soft-delete a user — keeping their data intact but revoking access — pass the `soft_delete` query parameter: ```bash theme={null} curl -X DELETE \ 'https://app.podero.com/api/partners/v2.0/org/{org_id}/users/{user_id}?soft_delete=true' \ -H 'Authorization: Bearer {auth_token}' ``` A hard delete (default) removes the user and their data permanently. A soft delete revokes access while retaining their data for audit or re-activation. ## Team Member Onboarding Checklist When adding a new team member, follow this checklist: * **Admin**: For managers, senior support staff, or developers who need full access * **Staff**: For support team members who work with end-users daily Consider the principle of least privilege - start with staff role and upgrade if needed. ```python theme={null} new_member = create_user( org_id=org_id, role='staff', # or 'admin' email='newmember@company.com', first_name='John', last_name='Doe' ) ``` Confirm the team member received the invitation email. Check spam folders if needed. Wait for the team member to complete account setup: * Set password * Configure profile * Accept terms of service Provide team members with: * Access to this API documentation * Your internal procedures and workflows * Support escalation paths * Access to the Podero utility back-office web app Have the new team member log in and verify they can: * Access the organization's users and devices * Perform their assigned tasks * See appropriate menu options based on their role ## Best Practices * Use **Staff** role for day-to-day support operations * Reserve **Admin** role for managers and senior team members * Review roles regularly and adjust as responsibilities change * Document why each person has their assigned role * Use company email addresses only * Require strong passwords (enforced by platform) * Remove access immediately when team members leave * Monitor for suspicious activity * Regular audit of active team member accounts * Use meaningful first/last names for easy identification * Create shared documentation for common procedures * Establish communication channels for the team * Define clear escalation paths for issues * Maintain a list of all team members and their roles * Set up offboarding procedures for departing staff * Use external\_user\_id to link with HR systems if needed * Regularly review and remove inactive accounts ## Common Scenarios **Scenario:** Hiring a new customer support agent ```python theme={null} # Create staff user for support new_agent = create_user( org_id=org_id, role='staff', email='support.agent@company.com', first_name='Support', last_name='Agent' ) # Agent receives email, sets up account # Can now help customers but cannot manage team ``` **Scenario:** Promoting a staff member to admin ```python theme={null} # Staff member has proven capable, promote to admin update_user( org_id=org_id, user_id=staff_user_id, role='admin' ) # Notify user of promotion and new responsibilities send_notification( staff_user_id, "You've been promoted to Admin. You now have full access." ) ``` **Scenario:** Consultant needs temporary access ```python theme={null} # Create staff account for consultant consultant = create_user( org_id=org_id, role='staff', email='consultant@external.com', external_user_id='temp_consultant_2024' ) # Set reminder to remove access after project ends schedule_reminder( date='2024-12-31', action='remove_user', user_id=consultant['id'] ) ``` **Scenario:** Team member leaves the company ```python theme={null} # Immediate steps delete_user(org_id, departing_user_id) # Document and audit log_user_removal( user_id=departing_user_id, reason='Employment terminated', date=datetime.now(), removed_by=admin_user_id ) # Reassign their responsibilities reassign_open_tickets( from_user=departing_user_id, to_user=replacement_user_id ) ``` ## Web Portal Access While the API provides programmatic access, team members should also use the Podero utility back-office web app for day-to-day operations. ### Web Portal Features * **Dashboard**: Overview of all users and devices * **User Management**: Search, filter, and manage end-users * **Device Fleet View**: Monitor all connected devices * **Support Tools**: Quick access to reconnection URLs and troubleshooting * **Team Management**: View team members (admins can manage) * **Settings**: Organization configuration and API credentials (admin only) ### Access the Web Portal * **Production**: [https://app.podero.com/accounts/login/](https://app.podero.com/accounts/login/) * **Sandbox**: Your unique sandbox subdomain URL ## Next Steps Learn about managing end-users Complete user parameter reference Set up API access for your team # User Management Source: https://developers.podero.com/partner-api/user-journeys/back-office/user-management Manage end-users, their devices, and data from the partner back-office # Partner Back-Office: User Management Running a complex energy optimization over large device fleets requires good tooling. Our utility back-office web app is designed to help Partners manage the connected fleet of their end-users' devices, provide customer support, and coordinate within their team. Administrative functions like Partner user account management are largely done via the Podero utility back-office web app. ## List All Users Get a dashboard overview of all users in your organization: ```bash cURL theme={null} curl -X GET \ 'https://app.podero.com/api/partners/v2.0/org/{org_id}/users' \ -H 'accept: application/json' \ -H 'Authorization: Bearer {auth_token}' ``` ```python Python theme={null} response = requests.get( f'https://app.podero.com/api/partners/v2.0/org/{org_id}/users', headers={ 'accept': 'application/json', 'Authorization': f'Bearer {auth_token}' } ) users = response.json() ``` ## Create New User Add a new end-user to your organization: ```bash cURL theme={null} curl -X POST \ 'https://app.podero.com/api/partners/v2.0/org/{org_id}/users' \ -H 'accept: application/json' \ -H 'Content-Type: application/json' \ -H 'Authorization: Bearer {auth_token}' \ -d '{ "role": "user", "email": "newuser@gmail.com", "external_user_id": "customer_12345", "first_name": "John", "last_name": "Doe" }' ``` ```python Python theme={null} response = requests.post( f'https://app.podero.com/api/partners/v2.0/org/{org_id}/users', headers={ 'accept': 'application/json', 'Content-Type': 'application/json', 'Authorization': f'Bearer {auth_token}' }, json={ 'role': 'user', 'email': 'newuser@gmail.com', 'external_user_id': 'customer_12345', 'first_name': 'John', 'last_name': 'Doe' } ) new_user = response.json() user_id = new_user['id'] ``` Use the `external_user_id` field to link Podero users with your internal customer IDs. ## Update User Data Modify existing user information: ```bash cURL theme={null} curl -X PUT \ 'https://app.podero.com/api/partners/v2.0/org/{org_id}/users/{user_id}' \ -H 'accept: application/json' \ -H 'Content-Type: application/json' \ -H 'Authorization: Bearer {auth_token}' \ -d '{ "first_name": "Peter", "last_name": "Schmidt", "street_and_number": "Main Street 123", "zip_code": "10115", "town": "Berlin", "country": "DE" }' ``` ```python Python theme={null} response = requests.put( f'https://app.podero.com/api/partners/v2.0/org/{org_id}/users/{user_id}', headers={ 'accept': 'application/json', 'Content-Type': 'application/json', 'Authorization': f'Bearer {auth_token}' }, json={ 'first_name': 'Peter', 'last_name': 'Schmidt', 'street_and_number': 'Main Street 123', 'zip_code': '10115', 'town': 'Berlin', 'country': 'DE' } ) updated_user = response.json() ``` ## Get User Details Retrieve complete information for a specific user: ```bash cURL theme={null} curl -X GET \ 'https://app.podero.com/api/partners/v2.0/org/{org_id}/users/{user_id}' \ -H 'accept: application/json' \ -H 'Authorization: Bearer {auth_token}' ``` ```python Python theme={null} response = requests.get( f'https://app.podero.com/api/partners/v2.0/org/{org_id}/users/{user_id}', headers={ 'accept': 'application/json', 'Authorization': f'Bearer {auth_token}' } ) user = response.json() ``` ## Get User's Devices Retrieve all devices associated with a user: ```bash Heat Pumps theme={null} curl -X GET \ 'https://app.podero.com/api/partners/v2.0/org/{org_id}/users/{user_id}/heat-pumps' \ -H 'Authorization: Bearer {auth_token}' ``` ```bash Electric Vehicles theme={null} curl -X GET \ 'https://app.podero.com/api/partners/v2.0/org/{org_id}/users/{user_id}/electric-vehicles' \ -H 'Authorization: Bearer {auth_token}' ``` ```bash Solar Inverters theme={null} curl -X GET \ 'https://app.podero.com/api/partners/v2.0/org/{org_id}/users/{user_id}/inverters' \ -H 'Authorization: Bearer {auth_token}' ``` ## Best Practices * Regularly sync external\_user\_id with your internal systems * Maintain up-to-date contact information for support * Use consistent location data for accurate optimization * Archive or flag inactive users appropriately * Create support tickets linked to user\_id * Log all API operations for audit trails * Implement alerts for device disconnections * Provide self-service reconnection options * Restrict user management to authorized staff only * Log all user data modifications * Implement role-based access control * Never expose user credentials or sensitive data ## Common Support Scenarios **Steps:** 1. Check `is_authenticated` status in device response 2. If `false`, check the `actions` array for an entry with a `resolution_link` 3. Redirect the user to the `resolution_link` URL to reconnect their device 4. Verify `is_authenticated` returns `true` after the user completes the flow **Steps:** 1. Verify `is_smart_optimization_active` is true 2. Check device authentication status 3. Review temperature/charge limits are set correctly 4. Ensure energy contract data is up-to-date **Steps:** 1. Create new user in Podero 2. Update `external_user_id` with old system ID 3. Migrate all devices 4. Verify data integrity 5. Archive old user record (if needed) ## Next Steps Manage staff and admin users Complete user parameter reference # Dashboard Integration Source: https://developers.podero.com/partner-api/user-journeys/end-user/dashboard-integration Display device status, consumption data, and optimization insights to end-users # End-User Dashboard Integration This page covers which fields to surface for each device type and how to keep data fresh. All device data is returned from the standard GET endpoint — there is no separate state endpoint. ## Fetching device data ```bash cURL theme={null} curl -X GET \ 'https://app.podero.com/api/partners/v2.0/org/{org_id}/users/{user_id}/heat-pumps' \ -H 'accept: application/json' \ -H 'Authorization: Bearer {auth_token}' ``` ```python Python theme={null} response = requests.get( f'https://app.podero.com/api/partners/v2.0/org/{org_id}/users/{user_id}/heat-pumps', headers={ 'accept': 'application/json', 'Authorization': f'Bearer {auth_token}' } ) heat_pumps = response.json() ``` ```bash cURL theme={null} curl -X GET \ 'https://app.podero.com/api/partners/v2.0/org/{org_id}/users/{user_id}/electric-vehicles' \ -H 'accept: application/json' \ -H 'Authorization: Bearer {auth_token}' ``` ```python Python theme={null} response = requests.get( f'https://app.podero.com/api/partners/v2.0/org/{org_id}/users/{user_id}/electric-vehicles', headers={ 'accept': 'application/json', 'Authorization': f'Bearer {auth_token}' } ) vehicles = response.json() ``` ```bash cURL theme={null} curl -X GET \ 'https://app.podero.com/api/partners/v2.0/org/{org_id}/users/{user_id}/inverters' \ -H 'accept: application/json' \ -H 'Authorization: Bearer {auth_token}' ``` ```python Python theme={null} response = requests.get( f'https://app.podero.com/api/partners/v2.0/org/{org_id}/users/{user_id}/inverters', headers={ 'accept': 'application/json', 'Authorization': f'Bearer {auth_token}' } ) inverters = response.json() ``` Append `/{device_id}` to any of the above to retrieve a single device with its latest state. ## Heat pump ### Optimization status Two fields together determine what to show the user: | `is_smart_optimization_active` | `current_mode` | Suggested display | | - | - | - | | `false` | — | "Not optimizing" | | `true` | `"min"` | "Min" | | `true` | `"low"` | "ECO" | | `true` | `"mid"` | "Comfort" | | `true` | `"max"` | "Boost" | ### Live readings | Field | Unit | Description | | - | - | - | | `current_power_consumption_w` | W | Current power draw | | `dhw_temperature` | °C | Domestic hot water temperature | | `inlet_temperature` | °C | Heating circuit water entering the heat pump | | `indoor_actual_temperature` | °C | Indoor temperature — `null` if no sensor is available | | `outdoor_temperature` | °C | Outdoor temperature measured by the device | | `current_state_last_updated_at` | datetime | When state was last synced from the manufacturer's API | ## Electric vehicle ### Charge status Derive the current state from two boolean fields: | `is_plugged_in` | `is_charging` | Suggested display | | - | - | - | | `false` | — | "Unplugged" | | `true` | `false` | "Plugged in" — waiting for an optimal charging window | | `true` | `true` | "Charging" | ### Boost state When a user triggers a boost charge, the `boost_state` field transitions through a state machine. Use it to drive the charge now button: | `boost_state` | Suggested display | | - | - | | `"available"` | "Charge Now" (enabled) | | `"requested"` | "Starting…" (disabled — poll every \~3 seconds) | | `"ongoing"` | "Charging" (disabled) | | `"unavailable"` | Disabled — vehicle is full, already charging, or not connected | ### Key fields | Field | Description | | - | - | | `battery_level` | Current charge level (0–100%) | | `charge_rate_w` | Current charging rate in Watts | | `is_charge_policy_enabled` | Whether a charge deadline is active | | `charge_deadline_at` | Time by which the charge target must be reached (HH:MM) | | `minimum_charge_limit` | Minimum charge level the policy targets (0–100%) | | `current_state_last_updated_at` | When charge state was last synced | ## Solar inverter ### Power flows Four fields cover all energy movement in the system: | Field | Unit | Sign convention | Description | | - | - | - | - | | `current_solar_production_w` | W | Always positive | Solar panel output | | `household_consumption_w` | W | Always positive | Total household power use | | `battery_charge_discharge_power_w` | W | Positive = discharging, negative = charging | Battery power flow | | `current_power_to_grid_w` | W | Positive = exporting, negative = importing | Grid exchange | Current battery level is in `battery_charge_level_percent` (0–100%). The `solar_surplus_w` field gives the same value pre-calculated, or derive it as `current_solar_production_w - household_consumption_w`. All inverter state is timestamped in `current_state_last_updated_at`. ## Connection and action status Two fields indicate whether a device needs attention: **`is_authenticated`** — `false` means the manufacturer connection has lapsed. The user needs to reconnect their device. Check the `actions` array for a `resolution_link` URL to redirect them to. **`action_needed`** — `true` when the `actions` array contains one or more unresolved items. Inspect `actions[].code` to determine the type and `actions[].resolution_link` for how to resolve it. See the [Notifications journey](/partner-api/user-journeys/end-user/notifications) for the full resolution flow, and for the org-wide view of pending items across all of a user's devices. ## Keeping data fresh Device state updates every 5–15 minutes depending on the manufacturer's API. A 30-second stale time works well for device lists — refetch in the background when data becomes stale and provide a manual pull-to-refresh. For EV detail views, poll every \~3 seconds while `boost_state === 'requested'` to catch the transition to `'ongoing'`. Return to standard background refetches once the boost is underway. Device *state* (readings, charge levels, power flows) requires polling — there is no push mechanism for it. For device *issues* that need user attention, Podero can push to your backend via [notification webhooks](/partner-api/notifications/overview) instead of you polling. ## Next Steps Let users control optimization, boost, and charge schedules Complete list of available state fields # Device Onboarding Source: https://developers.podero.com/partner-api/user-journeys/end-user/device-onboarding Complete workflow for adding and connecting end-user devices # End-User Device Onboarding We believe the end-user's primary goal is to take control of their electricity consumption with minimal to no effort. End-users want easy-to-use, safe, and explainable processes to reduce their energy costs. The software should abstract away complexity to only present end-users with vital information that is easy to understand regardless of the end-user's technical knowledge. The following workflow achieves the end-user's goals in the most efficient and frictionless way. Your feedback is very welcome at [contact@podero.com](mailto:contact@podero.com). ## Complete Onboarding Flow ### Step 1: Instantiate End-User Account When an end-user opts into your device optimization service (e.g., upon visiting a dedicated subpage of your mobile or web app), trigger the process of creating a new end-user account on the Podero platform. ```bash cURL theme={null} curl -X POST \ 'https://app.podero.com/api/partners/v2.0/org/{org_id}/users' \ -H 'Authorization: Bearer {auth_token}' \ -H 'Content-Type: application/json' \ -d '{ "role": "user", "email": "customer@example.com", "external_user_id": "your_internal_user_id" }' ``` ```python Python theme={null} response = requests.post( f'https://app.podero.com/api/partners/v2.0/org/{org_id}/users', headers={ 'Authorization': f'Bearer {auth_token}', 'Content-Type': 'application/json' }, json={ 'role': 'user', 'email': 'customer@example.com', 'external_user_id': 'your_internal_user_id' } ) user_id = response.json()['id'] ``` The API returns a unique `user_id` which you use for subsequent requests for this end-user. ### Step 2: Create Device Onboarding Session Create an onboarding session that generates a unique URL for the Whitelabel onboarding form. ```bash cURL theme={null} curl -X POST \ 'https://app.podero.com/api/partners/v2.0/device-onboarding' \ -H 'Authorization: Bearer {auth_token}' \ -H 'Content-Type: application/json' \ -d '{ "language": "en", "price_zone_default": "DE", "is_smart_optimization_active_default": true, "success_url": "https://yourapp.com/success", "cancel_url": "https://yourapp.com/cancel", "user_id": "{user_id}" }' ``` ```python Python theme={null} response = requests.post( 'https://app.podero.com/api/partners/v2.0/device-onboarding', headers={ 'Authorization': f'Bearer {auth_token}', 'Content-Type': 'application/json' }, json={ 'language': 'en', 'price_zone_default': 'DE', 'is_smart_optimization_active_default': True, 'success_url': 'https://yourapp.com/success', 'cancel_url': 'https://yourapp.com/cancel', 'user_id': user_id, } ) onboarding_url = response.json()['authentication_url'] ``` ### Step 3: Whitelabel Onboarding Form - Manufacturer Selection The form leads the end-user through a device type-specific selection of available manufacturers. The onboarding form will always be up to date since it is maintained by Podero. Device Type Selection Redirect your user to the `authentication_url` received in the response to start the onboarding flow. ### Step 4: Whitelabel Onboarding Form - Connect Device After selecting their device manufacturer, the end-user is prompted to connect their device. The user journey continues depending on the device manufacturer: #### Option A: OAuth Redirect The end-user is redirected to the manufacturer's authentication webpage (e.g., Nibe myUplink) for secure login. OAuth Authentication Redirect #### Option B: Generic Login Screen A generic login screen that calls the manufacturer's authentication API in the background (e.g., Tesla). Generic Login Screen ### Step 5: Success and Redirect The end-user sees a success page after completing the onboarding flow and is subsequently redirected back to your application. Onboarding Success The redirect URL will include the device ID as a parameter: ``` https://yourapp.com/success?deviceId=8c6efd5a-36d2-4c3d-83a8-b7c9f39242cd ``` Store this `deviceId` for future API calls related to this device. ## Test Credentials For testing the onboarding flow, you can use these demo credentials: Please use sparingly to avoid rate limiting the test accounts. * **Username:** `demomyuplink@nibe.se` * **Password:** `Demo1234` These credentials are only valid for testing and sandbox purposes. * **Username:** `demo-tesla@getfreeheat.com` * **Password:** `Demo1234` These credentials are only valid for testing and sandbox purposes. ## Best Practices * Keep the onboarding flow embedded within your app's user journey * Provide clear instructions before redirecting to Connect UI * Handle success and cancel callbacks gracefully * Show loading states during the onboarding process * Handle cancel\_url redirects (user abandoned onboarding) * Implement retry mechanisms for failed device connections * Provide user support options if onboarding fails * Log onboarding session IDs for debugging * Onboarding sessions expire after a certain period * Don't reuse onboarding URLs across multiple users * Create a new session for each onboarding attempt ## Next Steps Configure device-specific preferences Display device status and data to end-users # Notifications Source: https://developers.podero.com/partner-api/user-journeys/end-user/notifications Surface pending device issues to end-users and guide them to resolution # 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](/partner-api/notifications/overview) or poll the endpoints below. The journey from there is the same. ## Show a notification badge [`GET /org/{org_id}/notifications/status`](/partner-api/notifications/reference#get-notification-status) returns pending counts per device type — ideal for badges without fetching full lists: ```bash theme={null} curl -X GET \ 'https://app.podero.com/api/partners/v2.0/org/{org_id}/notifications/status?owner_id={user_id}' \ -H 'Authorization: Bearer {auth_token}' ``` ```json theme={null} { "electric_vehicle": { "action_required": 1, "information_available": 0 }, "heat_pump": { "action_required": 0, "information_available": 2 }, "inverter": { "action_required": 0, "information_available": 0 }, "wallbox": { "action_required": 0, "information_available": 0 } } ``` `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`](/partner-api/notifications/reference#list-pending-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`, `device_type`, one or more `code`s, or a `created_after` / `created_before` time range: ```bash theme={null} curl -X GET \ 'https://app.podero.com/api/partners/v2.0/org/{org_id}/notifications/actions?owner_id={user_id}' \ -H 'Authorization: Bearer {auth_token}' ``` Branch on each item's `code`: | `code` | What to render | | - | - | | `reauthenticate` | A "reconnect your device" prompt — resolving it requires redirecting the user into the manufacturer flow (below) | | `information` | A notice card showing `metadata.message`, with a dismiss control | 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: `POST` to the item's `resolution_link.url` with the parameters named in `required_parameters`: ```bash theme={null} curl -X POST \ 'https://app.podero.com/api/partners/v2.0/cues/{cue_id}/resolve?secret={secret}' \ -H 'Content-Type: application/json' \ -d '{ "success_url": "https://your-app.example.com/devices/reconnected", "cancel_url": "https://your-app.example.com/devices", "language": "de" }' ``` The response carries the manufacturer flow to send the user into: ```json theme={null} { "redirect_url": "https://connect.podero.com/..." } ``` 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). From your `success_url` / `cancel_url` handler, report how it went so the action is marked done (or stays available to retry): ```bash theme={null} curl -X POST \ 'https://app.podero.com/api/partners/v2.0/cues/{cue_id}/state' \ -H 'Authorization: Bearer {auth_token}' \ -H 'Content-Type: application/json' \ -d '{ "state": "success" }' ``` 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): ```bash theme={null} curl -X POST \ 'https://app.podero.com/api/partners/v2.0/cues/{notification_id}/information/resolve?secret={secret}' ``` 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`](/partner-api/notifications/reference#list-information-notifications) with `dismissed: true`. ## Skip the polling: webhooks Instead of polling `status`, register a [notification webhook](/partner-api/notifications/integration) 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 Set up webhook push delivery Show device status and live readings # Setting Preferences Source: https://developers.podero.com/partner-api/user-journeys/end-user/setting-preferences Configure device-specific settings and optimization preferences # Setting Device Preferences End-users want to stay in control of their devices while benefiting from smart optimization. This page covers the most common preference scenarios for each device type and how to implement them. All preferences are updated via the device's `PUT` endpoint. Only send the fields you want to change — other fields remain unaffected. ## Heat Pump ### Pause optimization while away If a user is going on vacation or doesn't want Podero to control their heat pump for a period, disable optimization. The device falls back to its own built-in schedule until optimization is re-enabled. ```bash cURL theme={null} curl -X PUT \ 'https://app.podero.com/api/partners/v2.0/org/{org_id}/users/{user_id}/heat-pumps/{device_id}' \ -H 'Authorization: Bearer {auth_token}' \ -H 'Content-Type: application/json' \ -d '{ "is_smart_optimization_active": false }' ``` ```python Python theme={null} response = requests.put( f'https://app.podero.com/api/partners/v2.0/org/{org_id}/users/{user_id}/heat-pumps/{device_id}', headers={ 'Authorization': f'Bearer {auth_token}', 'Content-Type': 'application/json' }, json={ 'is_smart_optimization_active': False } ) ``` ### Resume optimization When the user returns, re-enable optimization with the same endpoint: ```bash cURL theme={null} curl -X PUT \ 'https://app.podero.com/api/partners/v2.0/org/{org_id}/users/{user_id}/heat-pumps/{device_id}' \ -H 'Authorization: Bearer {auth_token}' \ -H 'Content-Type: application/json' \ -d '{ "is_smart_optimization_active": true }' ``` ```python Python theme={null} response = requests.put( f'https://app.podero.com/api/partners/v2.0/org/{org_id}/users/{user_id}/heat-pumps/{device_id}', headers={ 'Authorization': f'Bearer {auth_token}', 'Content-Type': 'application/json' }, json={ 'is_smart_optimization_active': True } ) ``` Full list of writable heat pump fields ## Electric Vehicle ### Charge now If the user needs to start charging immediately — for example, they forgot to plug in the night before and need to leave soon — trigger a boost charge. Depending on vehicle state, the boost either starts charging right away or arms itself for when the vehicle next connects. ```bash cURL theme={null} curl -X POST \ 'https://app.podero.com/api/partners/v2.0/org/{org_id}/users/{user_id}/electric-vehicles/{device_id}/boost' \ -H 'Authorization: Bearer {auth_token}' ``` ```python Python theme={null} response = requests.post( f'https://app.podero.com/api/partners/v2.0/org/{org_id}/users/{user_id}/electric-vehicles/{device_id}/boost', headers={ 'Authorization': f'Bearer {auth_token}' } ) ``` | Vehicle state | Result | | - | - | | Plugged in, idle | Starts charging immediately, bypassing optimization | | Unplugged | Arms boost — charging starts automatically when the vehicle next connects | | Already charging or fully charged | Returns `409` — no action needed | To cancel an armed boost before the vehicle connects: ```bash cURL theme={null} curl -X DELETE \ 'https://app.podero.com/api/partners/v2.0/org/{org_id}/users/{user_id}/electric-vehicles/{device_id}/boost' \ -H 'Authorization: Bearer {auth_token}' ``` ```python Python theme={null} response = requests.delete( f'https://app.podero.com/api/partners/v2.0/org/{org_id}/users/{user_id}/electric-vehicles/{device_id}/boost', headers={ 'Authorization': f'Bearer {auth_token}' } ) ``` ### Set a charge deadline For users with a regular commute, a charge policy ensures the vehicle reaches a minimum charge level by a set time. Podero will still optimize for cheap overnight hours, but will always meet the deadline. Enable the policy and set a default target that applies every day: ```bash cURL theme={null} curl -X PUT \ 'https://app.podero.com/api/partners/v2.0/org/{org_id}/users/{user_id}/electric-vehicles/{device_id}' \ -H 'Authorization: Bearer {auth_token}' \ -H 'Content-Type: application/json' \ -d '{ "is_charge_policy_enabled": true, "charge_deadline_at": "07:00", "minimum_charge_limit": 80 }' ``` ```python Python theme={null} response = requests.put( f'https://app.podero.com/api/partners/v2.0/org/{org_id}/users/{user_id}/electric-vehicles/{device_id}', headers={ 'Authorization': f'Bearer {auth_token}', 'Content-Type': 'application/json' }, json={ 'is_charge_policy_enabled': True, 'charge_deadline_at': '07:00', 'minimum_charge_limit': 80 } ) ``` ### Set a weekly schedule When `is_charge_policy_enabled` is `true`, users can configure a different target and deadline for each day of the week via the `/charge-policy` endpoint — useful for users whose schedule varies between weekdays and weekends: ```bash cURL theme={null} curl -X PUT \ 'https://app.podero.com/api/partners/v2.0/org/{org_id}/users/{user_id}/electric-vehicles/{device_id}/charge-policy' \ -H 'Authorization: Bearer {auth_token}' \ -H 'Content-Type: application/json' \ -d '{ "timezone": "Europe/Berlin", "mon": { "charge_percentage": 80, "charge_deadline": "07:00" }, "tue": { "charge_percentage": 80, "charge_deadline": "07:00" }, "wed": { "charge_percentage": 80, "charge_deadline": "07:00" }, "thu": { "charge_percentage": 80, "charge_deadline": "07:00" }, "fri": { "charge_percentage": 80, "charge_deadline": "07:00" }, "sat": { "charge_percentage": 50, "charge_deadline": "10:00" }, "sun": { "charge_percentage": 50, "charge_deadline": "10:00" } }' ``` ```python Python theme={null} response = requests.put( f'https://app.podero.com/api/partners/v2.0/org/{org_id}/users/{user_id}/electric-vehicles/{device_id}/charge-policy', headers={ 'Authorization': f'Bearer {auth_token}', 'Content-Type': 'application/json' }, json={ 'timezone': 'Europe/Berlin', 'mon': {'charge_percentage': 80, 'charge_deadline': '07:00'}, 'tue': {'charge_percentage': 80, 'charge_deadline': '07:00'}, 'wed': {'charge_percentage': 80, 'charge_deadline': '07:00'}, 'thu': {'charge_percentage': 80, 'charge_deadline': '07:00'}, 'fri': {'charge_percentage': 80, 'charge_deadline': '07:00'}, 'sat': {'charge_percentage': 50, 'charge_deadline': '10:00'}, 'sun': {'charge_percentage': 50, 'charge_deadline': '10:00'}, } ) ``` To disable the charge policy entirely and return to fully cost-optimized charging: ```json theme={null} { "is_charge_policy_enabled": false } ``` Full list of writable EV fields, including charge policy details ## Solar Inverter ### Pause optimization If a user wants to stop Podero from controlling their inverter temporarily, disable optimization. The inverter falls back to its own default behavior until optimization is re-enabled. ```bash cURL theme={null} curl -X PUT \ 'https://app.podero.com/api/partners/v2.0/org/{org_id}/users/{user_id}/inverters/{device_id}' \ -H 'Authorization: Bearer {auth_token}' \ -H 'Content-Type: application/json' \ -d '{ "is_smart_optimization_active": false }' ``` ```python Python theme={null} response = requests.put( f'https://app.podero.com/api/partners/v2.0/org/{org_id}/users/{user_id}/inverters/{device_id}', headers={ 'Authorization': f'Bearer {auth_token}', 'Content-Type': 'application/json' }, json={ 'is_smart_optimization_active': False } ) ``` ### Resume optimization ```bash cURL theme={null} curl -X PUT \ 'https://app.podero.com/api/partners/v2.0/org/{org_id}/users/{user_id}/inverters/{device_id}' \ -H 'Authorization: Bearer {auth_token}' \ -H 'Content-Type: application/json' \ -d '{ "is_smart_optimization_active": true }' ``` ```python Python theme={null} response = requests.put( f'https://app.podero.com/api/partners/v2.0/org/{org_id}/users/{user_id}/inverters/{device_id}', headers={ 'Authorization': f'Bearer {auth_token}', 'Content-Type': 'application/json' }, json={ 'is_smart_optimization_active': True } ) ``` Full list of writable inverter fields ## Next Steps Display device status and consumption data Connect and set up new devices