> ## 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.

# Get a meter

> A grid meter you reach, with what it measured last: one of your teams', or the meter of a
group at a location you reach with basic access or more. One you do not reach, or your token's
reach leaves out, is a 404. When the reading cannot be read the answer is a 503: try again in a
moment.



## OpenAPI

````yaml api-reference/v4/v4.openapi.json GET /meters/{meter}
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/{meter}:
    get:
      tags:
        - meters
      summary: A meter
      description: >-
        A grid meter you reach, with what it measured last: one of your teams',
        or the meter of a

        group at a location you reach with basic access or more. One you do not
        reach, or your token's

        reach leaves out, is a 404. When the reading cannot be read the answer
        is a 503: try again in a

        moment.
      operationId: show_meter
      parameters:
        - name: meter
          in: path
          description: The meter's id
          required: true
          schema:
            type: string
            format: uuid
      responses:
        '200':
          description: The meter
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/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:
    Meter:
      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
    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
    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
    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.