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

# List meters

> Every grid meter the caller reaches, each once, with what it measured last: the meters of
their teams, and the meter of each group at a location they reach with basic access or more
(a meter of another team only where that team is at the location too). Sorted by id, so a page
stays put while meters are added. A token limited to picked teams and locations lists the
meters of those teams and of the groups at the locations it reaches. When the readings cannot
be read the answer is a 503: try again in a moment.



## OpenAPI

````yaml api-reference/v4/v4.openapi.json GET /meters
openapi: 3.1.0
info:
  title: Plugchoice API
  description: >-
    Every request sends an access token as `Authorization: Bearer …`, unless an
    operation says otherwise.


    Errors are problems (RFC 9457, `application/problem+json`): `code` says what
    went wrong, and a failed validation lists the fields in `errors`.


    A list answers one page: `{"data": [...], "next_cursor": ...,
    "previous_cursor": ...}`. Pass a cursor back as `cursor` to get that page,
    and `limit` (1 to 100, default 25) for its size.


    Within v4, changes only add: new operations, new optional parameters, new
    fields and new enum values. Ignore fields you do not know, and accept enum
    values you do not know. Requests that send a field the operation does not
    know are refused, so a typo does not pass unnoticed.
  version: '4'
servers:
  - url: https://api.plugchoice.com/v4
security:
  - bearer: []
paths:
  /meters:
    get:
      tags:
        - meters
      summary: The meters you reach
      description: >-
        Every grid meter the caller reaches, each once, with what it measured
        last: the meters of

        their teams, and the meter of each group at a location they reach with
        basic access or more

        (a meter of another team only where that team is at the location too).
        Sorted by id, so a page

        stays put while meters are added. A token limited to picked teams and
        locations lists the

        meters of those teams and of the groups at the locations it reaches.
        When the readings cannot

        be read the answer is a 503: try again in a moment.
      operationId: list_meters
      parameters:
        - name: limit
          in: query
          required: false
          schema:
            $ref: '#/components/schemas/Limit'
        - name: cursor
          in: query
          description: >-
            A place in the list, from `next_cursor` or `previous_cursor`. Pass
            it back as given.
          required: false
          schema:
            type: string
        - name: team_id
          in: query
          description: 'Only the meters this team reaches: one of yours.'
          required: false
          schema:
            type: string
            format: uuid
        - name: location_id
          in: query
          description: Only the meters load balancing reads at this location.
          required: false
          schema:
            type: string
            format: uuid
        - name: type
          in: query
          description: >-
            Only meters of this kind. Repeat it for several:
            `type=chargee&type=ct`.
          required: false
          schema:
            type: array
            items:
              $ref: '#/components/schemas/MeterType'
        - name: serial_number
          in: query
          description: >-
            Only the meter with this serial number, as `serial_number` shows it.
            Repeat it for several.
          required: false
          schema:
            type: array
            items:
              type: string
        - name: updated_since
          in: query
          description: >-
            Only meters that changed at or after this time (RFC 3339): what
            changed since a client last

            looked. A new reading is no change.
          required: false
          schema:
            type: string
            format: date-time
      responses:
        '200':
          description: A page of meters
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Page_Meter'
        default:
          description: >-
            A problem (RFC 9457). `code` says which; the field errors come with
            `validation_failed`.
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/Problem'
      security:
        - bearer:
            - meters:read
components:
  schemas:
    Limit:
      type: integer
      description: How many results one page holds.
      default: 25
      maximum: 100
      minimum: 1
    MeterType:
      type: string
      description: 'What kind of meter it is. Accept kinds you do not know: more may come.'
      enum:
        - chargee
        - ct_meter
        - cpmfg_operations
        - reduxi_p1
        - plugchoice_meter
    Page_Meter:
      type: object
      description: One page of a list.
      required:
        - data
        - next_cursor
        - previous_cursor
      properties:
        data:
          type: array
          items:
            type: object
            description: >-
              A grid meter: it measures what a location takes from the grid and
              feeds into it, so load

              balancing counts what else is behind the fuse.
            required:
              - id
              - location_ids
              - created_at
              - updated_at
              - credentials_issued_at
              - reading
              - serial_number
              - team
              - type
            properties:
              created_at:
                type: string
                format: date-time
              credentials_issued_at:
                type:
                  - string
                  - 'null'
                format: date-time
                description: >-
                  When Plugchoice last issued the meter the credentials it sends
                  its readings with; null when

                  it never did.
              id:
                type: string
                format: uuid
                description: The meter's id.
              location_ids:
                type: array
                items:
                  type: string
                  format: uuid
                description: >-
                  The locations you reach whose load balancing reads the meter,
                  by id.
              reading:
                oneOf:
                  - $ref: '#/components/schemas/MeterReading'
                    description: >-
                      What it measured last. Null when Plugchoice holds no
                      reading: a meter that never sent one,

                      or a Chargee or CPMFG meter that load balancing has not
                      read yet.
                  - type: 'null'
              serial_number:
                type:
                  - string
                  - 'null'
                description: >-
                  Its serial number: for a Chargee meter the code on the box,
                  for a CT meter the identity of

                  the charger its clamps are wired into, for a Reduxi dongle its
                  unit id. Null when it is not

                  known.
              team:
                oneOf:
                  - $ref: '#/components/schemas/TeamReference'
                    description: >-
                      The team it belongs to; null when it belongs to none (most
                      meters are added without one).
                  - type: 'null'
              type:
                oneOf:
                  - $ref: '#/components/schemas/MeterType'
                    description: >-
                      What kind of meter it is; null when this API does not know
                      the kind.
                  - type: 'null'
              updated_at:
                type: string
                format: date-time
        next_cursor:
          type:
            - string
            - 'null'
          description: The cursor of the page after this one; null on the last page.
        previous_cursor:
          type:
            - string
            - 'null'
          description: The cursor of the page before this one; null on the first page.
    Problem:
      type: object
      description: An error response body (RFC 9457).
      required:
        - type
        - title
        - status
        - code
      properties:
        code:
          type: string
          description: >-
            The kind of problem, for code to act on, such as
            `validation_failed`. Treat a code you do

            not know by the status.
        detail:
          type: string
          description: >-
            What went wrong with this request, when there is more to say than
            the title; left out

            when there is not.
        errors:
          type: array
          items:
            $ref: '#/components/schemas/FieldError'
          description: >-
            With `validation_failed`: the fields that broke a rule; left out
            when there are none.
        status:
          type: integer
          format: int32
          description: The HTTP status code.
          minimum: 0
        title:
          type: string
          description: A short summary of the kind of problem.
        type:
          type: string
          description: >-
            The page that explains this kind of problem: its `code` with
            hyphens, as

            `https://developer.plugchoice.com/api/errors/validation-failed`.
    MeterReading:
      type: object
      description: What a meter measured last.
      required:
        - current_a
        - voltage_v
        - measured_at
        - power_w
      properties:
        current_a:
          $ref: '#/components/schemas/PerPhase'
          description: >-
            Current per grid phase in A, positive while taking from the grid and
            negative while

            feeding into it; null for a phase the meter does not measure.
        measured_at:
          type: string
          format: date-time
          description: >-
            When the meter measured it. A meter that stops sending keeps its
            last reading and its time.
        power_w:
          type:
            - number
            - 'null'
          format: double
          description: >-
            Active power through the meter in W, positive while the location
            takes power from the grid

            and negative while it feeds power into it: each measured phase's
            current times its voltage

            (230 V where the meter reports none), added up. Null when the meter
            measures no phase.
        voltage_v:
          $ref: '#/components/schemas/PerPhase'
          description: >-
            Voltage per grid phase in V, as the meter reports it; null for a
            phase it reports none for

            (`power_w` then counts 230 V there).
    TeamReference:
      type: object
      description: A team, as a meter names it.
      required:
        - id
        - name
      properties:
        id:
          type: string
          format: uuid
          description: The team's id.
        name:
          type: string
    FieldError:
      type: object
      description: One field that broke a rule.
      required:
        - field
        - code
        - message
      properties:
        code:
          type: string
          description: >-
            The rule it broke, for code to act on: `missing_field`,
            `unknown_field`, `invalid_type`,

            `invalid`, or `taken` (a value that must be unique, such as a card's
            id at a location,

            and is not).
        field:
          type: string
          description: >-
            Where the field is in the request, such as `name` or
            `connectors[0].max_current`.
        message:
          type: string
          description: What is wrong, in English.
    PerPhase:
      type: object
      description: >-
        A value per grid phase: the phases the grid's L1, L2 and L3 are, after
        the EVSE's phase

        rotation. `null` for a phase that is not there.
      required:
        - l1
        - l2
        - l3
      properties:
        l1:
          type:
            - number
            - 'null'
          format: double
        l2:
          type:
            - number
            - 'null'
          format: double
        l3:
          type:
            - number
            - 'null'
          format: double
  securitySchemes:
    bearer:
      type: http
      scheme: bearer
      bearerFormat: JWT
      description: >-
        An access token from `accounts.plugchoice.com`, for a personal API
        token, a person signed in through an app, or an OAuth client.

````

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