> ## Documentation Index
> Fetch the complete documentation index at: https://developers.podero.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Get an Organisation's 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.



## OpenAPI

````yaml https://app.podero.com/api/partners/v2.0/openapi.json get /api/partners/v2.0/org/{org_id}/devices/summary
openapi: 3.1.0
info:
  title: Podero Partner API
  version: '2.0'
  description: >-
    This API provides a unified interaction point for Podero's partner
    companies.


    The goal of this API is to give partners easily integratable endpoints that
    don't require extensive software

    development. For this reason, the endpoints focus around user and device
    management, setting of preferences

    and high level device controls.


    While direct control of devices is implemented for special use cases such as
    pause power, we abstract away low level

    direct device steering so developers and partners can focus on delivering
    maximum value to end users.


    ## Authentication


    Send an OAuth2 access token in the `Authorization: Bearer <access_token>`
    header of each request.

    A token request must have a JSON body. The token endpoints do not read a
    form-encoded body.


    Server-to-server integrations use the client credentials grant:


    ```http

    POST /oauth2/token/

    Authorization: Basic base64(<client_id>:<client_secret>)

    Content-Type: application/json


    {"grant_type": "client_credentials"}

    ```


    The response does not contain a refresh token. The access token expires
    after `expires_in` seconds (one hour).

    To renew it, send the same request again. Use one token for all requests
    until shortly before it expires.

    Do not request a new token for each request. If a request returns `401`, get
    one new token and send the request

    again once. If it returns `401` again, the token is valid but the
    application has no access to that resource,

    and a new token does not change that.


    Apps where a person signs in use the password grant at `POST
    /api/partners/v2.0/auth/token`, and renew the

    session with the `refresh_token` grant at the same endpoint.
  termsOfService: https://www.podero.com/terms-and-conditions
servers: []
security: []
paths:
  /api/partners/v2.0/org/{org_id}/devices/summary:
    get:
      tags:
        - Devices
      summary: Get an Organisation's Devices Summary
      description: >-
        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.
      operationId: >-
        integrations_api_api_v2_organizations_devices_router_retrieve_devices_summary
      parameters:
        - in: path
          name: org_id
          schema:
            description: The organization ID of the user's organization
            format: uuid
            title: Org Id
            type: string
          required: true
          description: The organization ID of the user's organization
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/OrganizationDevicesSummaryOutput'
      security:
        - OAuth2: []
components:
  schemas:
    OrganizationDevicesSummaryOutput:
      description: >-
        Whole-fleet device counts over the org's operational (non-soft-deleted)
        devices.

        `health_tones` and `type_shares` each sum to the operational-device
        total;

        `savings_leg_counts` covers only devices with a savings leg (wallboxes
        and

        devices without a mapped type have none).
      properties:
        health_tones:
          $ref: '#/components/schemas/HealthToneCountsOutput'
        type_shares:
          $ref: '#/components/schemas/DeviceTypeShareCountsOutput'
        savings_leg_counts:
          $ref: '#/components/schemas/SavingsLegCountsOutput'
        support_buckets:
          description: >-
            Operational devices per Support category, a device counted under a
            category when it holds a pending cue of it, and under `none` when it
            holds none.
          items:
            $ref: '#/components/schemas/SupportBucketOutput'
          title: Support Buckets
          type: array
        health_buckets:
          description: >-
            Operational devices per service-health verdict, read from the device
            status projection (a device not yet swept counts as `unknown`).
          items:
            $ref: '#/components/schemas/HealthBucketOutput'
          title: Health Buckets
          type: array
        deleted:
          description: Soft-deleted devices of every kind, outside every count above.
          title: Deleted
          type: integer
      required:
        - health_tones
        - type_shares
        - savings_leg_counts
        - support_buckets
        - health_buckets
        - deleted
      title: OrganizationDevicesSummaryOutput
      type: object
    HealthToneCountsOutput:
      description: >-
        `not_steered` is the muted management bucket — connected and reporting,
        but nobody is

        steering it — so it is disjoint from the three health severities, not a
        subset of them.
      properties:
        good:
          title: Good
          type: integer
        warning:
          title: Warning
          type: integer
        critical:
          title: Critical
          type: integer
        not_steered:
          title: Not Steered
          type: integer
      required:
        - good
        - warning
        - critical
        - not_steered
      title: HealthToneCountsOutput
      type: object
    DeviceTypeShareCountsOutput:
      properties:
        heat_pump:
          title: Heat Pump
          type: integer
        ev:
          title: Ev
          type: integer
        wallbox:
          title: Wallbox
          type: integer
        battery:
          title: Battery
          type: integer
        other:
          title: Other
          type: integer
      required:
        - heat_pump
        - ev
        - wallbox
        - battery
        - other
      title: DeviceTypeShareCountsOutput
      type: object
    SavingsLegCountsOutput:
      properties:
        heat_pump:
          title: Heat Pump
          type: integer
        electric_vehicle:
          title: Electric Vehicle
          type: integer
        inverter:
          title: Inverter
          type: integer
      required:
        - heat_pump
        - electric_vehicle
        - inverter
      title: SavingsLegCountsOutput
      type: object
    SupportBucketOutput:
      properties:
        category:
          anyOf:
            - enum:
                - attention_required
                - service_degraded
                - informational
              type: string
            - const: none
              type: string
          title: Category
        count:
          title: Count
          type: integer
      required:
        - category
        - count
      title: SupportBucketOutput
      type: object
    HealthBucketOutput:
      properties:
        health:
          enum:
            - unhealthy
            - unknown
            - healthy
          title: Health
          type: string
        count:
          title: Count
          type: integer
      required:
        - health
        - count
      title: HealthBucketOutput
      type: object
  securitySchemes:
    OAuth2:
      type: oauth2
      flows:
        password:
          tokenUrl: /api/partners/v2.0/auth/token
          scopes: {}
        clientCredentials:
          tokenUrl: /oauth2/token/
          scopes: {}

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.