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

> What happened at the chargers and locations you reach, newest first: what a charger reported
(cards refused, transactions started and stopped, faults and recoveries, starts, failed
commands, firmware) and who changed what (cards, settings, groups, energy prices). Give
`charger_id` or `location_id`; what chargers reported is read for at most 100 chargers a
request. The events at a charger show from `basic` access to it; the changes to a location
from `basic` access to the location, with `locations:read` too. Below `sensitive` access cards
are masked and the list reaches back 14 days. Nothing from before a charger or location changed
hands is shown. A person's name shows only to the members of their teams that reach the charger
or location. A page can hold fewer events than `limit` and still have a `next_cursor`: each
page reads at most 14 days of the chargers' calls.



## OpenAPI

````yaml api-reference/v4/v4.openapi.json GET /events
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:
  /events:
    get:
      tags:
        - events
      summary: Events at the chargers and locations you reach
      description: >-
        What happened at the chargers and locations you reach, newest first:
        what a charger reported

        (cards refused, transactions started and stopped, faults and recoveries,
        starts, failed

        commands, firmware) and who changed what (cards, settings, groups,
        energy prices). Give

        `charger_id` or `location_id`; what chargers reported is read for at
        most 100 chargers a

        request. The events at a charger show from `basic` access to it; the
        changes to a location

        from `basic` access to the location, with `locations:read` too. Below
        `sensitive` access cards

        are masked and the list reaches back 14 days. Nothing from before a
        charger or location changed

        hands is shown. A person's name shows only to the members of their teams
        that reach the charger

        or location. A page can hold fewer events than `limit` and still have a
        `next_cursor`: each

        page reads at most 14 days of the chargers' calls.
      operationId: list_events
      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: charger_id
          in: query
          description: >-
            Only events at this charger. Repeat it for several, up to 100:
            `charger_id=…&charger_id=…`.

            `charger_id` or `location_id` is needed.
          required: false
          schema:
            type: array
            items:
              type: string
              format: uuid
        - name: location_id
          in: query
          description: >-
            Only events at this location: at the chargers there now, and changes
            to the location itself

            (those need `locations:read` too, and are left out with
            `charger_id`). Repeat it for

            several, up to 100. What chargers reported is read for at most 100
            chargers a request.
          required: false
          schema:
            type: array
            items:
              type: string
              format: uuid
        - name: type
          in: query
          description: >-
            Only events of this type. Repeat it for several:
            `type=evse_faulted&type=evse_recovered`.
          required: false
          schema:
            type: array
            items:
              $ref: '#/components/schemas/EventType'
        - name: occurred_after
          in: query
          description: >-
            Only events at or after this time (RFC 3339, such as
            `2026-11-23T10:00:00Z`).
          required: false
          schema:
            type: string
            format: date-time
        - name: occurred_before
          in: query
          description: Only events before this time (RFC 3339).
          required: false
          schema:
            type: string
            format: date-time
      responses:
        '200':
          description: A page of events
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Page_Event'
        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:
            - chargers:read
components:
  schemas:
    Limit:
      type: integer
      description: How many results one page holds.
      default: 25
      maximum: 100
      minimum: 1
    EventType:
      type: string
      description: >-
        What happened. Accept types you do not know, and skip their events: more
        may come.


        What a charger reported, from its OCPP calls: `card_refused`,
        `transaction_started`,

        `transaction_stopped`, `evse_faulted`, `evse_recovered`,
        `evse_unavailable`,

        `charger_booted`, `command_failed`, `firmware_installed`,
        `firmware_failed`.


        Who changed what (with `actor`): `card_added`, `card_updated`,
        `card_removed`,

        `cards_imported`, `charger_set_up`, `charger_setting_changed`,

        `charger_configuration_changed`, `charger_operators_changed`,
        `evse_changed`,

        `group_created`, `group_changed`, `group_deleted`, `group_meter_added`,

        `group_meter_removed`, `group_charger_added`, `group_charger_removed`,

        `group_charging_mode_changed`, `energy_prices_changed`,
        `energy_profile_changed`.
      enum:
        - card_refused
        - transaction_started
        - transaction_stopped
        - evse_faulted
        - evse_recovered
        - evse_unavailable
        - charger_booted
        - command_failed
        - firmware_installed
        - firmware_failed
        - card_added
        - card_updated
        - card_removed
        - cards_imported
        - charger_set_up
        - charger_setting_changed
        - charger_configuration_changed
        - charger_operators_changed
        - evse_changed
        - group_created
        - group_changed
        - group_deleted
        - group_meter_added
        - group_meter_removed
        - group_charger_added
        - group_charger_removed
        - group_charging_mode_changed
        - energy_prices_changed
        - energy_profile_changed
    Page_Event:
      type: object
      description: One page of a list.
      required:
        - data
        - next_cursor
        - previous_cursor
      properties:
        data:
          type: array
          items:
            type: object
            description: Something that happened at a charger or a location.
            required:
              - type
              - occurred_at
              - data
              - actor
              - charger
              - evse
              - location
            properties:
              actor:
                oneOf:
                  - $ref: '#/components/schemas/Actor'
                    description: Who made a change; null for what a charger reported.
                  - type: 'null'
              charger:
                oneOf:
                  - $ref: '#/components/schemas/ChargerReference'
                    description: >-
                      The charger it happened at; null for a change to a
                      location.
                  - type: 'null'
              data:
                $ref: '#/components/schemas/EventData'
                description: >-
                  What `type` adds: an object whose fields `type` decides, `{}`
                  for a type with none. Skip

                  the events of a type you do not know.
              evse:
                type:
                  - integer
                  - 'null'
                format: int32
                description: >-
                  The number of the EVSE it happened at; null when it is about
                  the whole charger, or the

                  charger did not say.
              location:
                oneOf:
                  - $ref: '#/components/schemas/LocationReference'
                    description: >-
                      For an event at a charger, the location the charger is at
                      now; for a change to a location,

                      that location. Null for a charger at no location, and for
                      a location you do not reach.
                  - type: 'null'
              occurred_at:
                type: string
                format: date-time
                description: >-
                  When it happened: for what a charger reported, when Plugchoice
                  received it.
              type:
                $ref: '#/components/schemas/EventType'
        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`.
    Actor:
      type: object
      description: Who made a change.
      required:
        - name
        - source
        - team
      properties:
        name:
          type:
            - string
            - 'null'
          description: >-
            The person's name. Null when Plugchoice made the change, and for a
            person who is in none of

            your teams that reach the charger or location (a Plugchoice admin
            sees every name).
        source:
          oneOf:
            - $ref: '#/components/schemas/ChangeSource'
              description: >-
                Where the change was made; null for a change made before
                Plugchoice recorded it.
            - type: 'null'
        team:
          oneOf:
            - $ref: '#/components/schemas/TeamReference'
              description: The team the person made it for; null when it is not known.
            - type: 'null'
    ChargerReference:
      type: object
      description: A charger, as a transaction names it.
      required:
        - id
        - identity
      properties:
        id:
          type: string
          format: uuid
          description: The charger's id.
        identity:
          type: string
          description: 'The name it connects with: its OCPP charge point identity.'
    EventData:
      anyOf:
        - $ref: '#/components/schemas/CardRefusedData'
        - $ref: '#/components/schemas/TransactionStartedData'
        - $ref: '#/components/schemas/TransactionStoppedData'
        - $ref: '#/components/schemas/EvseFaultedData'
        - $ref: '#/components/schemas/EvseRecoveredData'
        - $ref: '#/components/schemas/ChargerBootedData'
        - $ref: '#/components/schemas/CommandFailedData'
        - $ref: '#/components/schemas/FirmwareFailedData'
        - $ref: '#/components/schemas/CardData'
        - $ref: '#/components/schemas/CardsImportedData'
        - $ref: '#/components/schemas/ChargerSettingData'
        - $ref: '#/components/schemas/ChargerConfigurationData'
        - $ref: '#/components/schemas/GroupData'
        - $ref: '#/components/schemas/NoData'
      description: >-
        What the event's `type` adds: an object whose fields `type` decides,
        `{}` for a type with none. Each shape below names the types it belongs
        to. Skip the events of a type you do not know.
    LocationReference:
      type: object
      description: A location, as a charger names it.
      required:
        - id
        - name
      properties:
        id:
          type: string
          format: uuid
          description: The location's id.
        name:
          type:
            - string
            - 'null'
          description: Its name; null when it has none.
    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.
    ChangeSource:
      type: string
      description: 'Where a change was made. Accept values you do not know: more may come.'
      enum:
        - portal
        - app
        - sdk
        - api
        - system
    TeamReference:
      type: object
      description: A team, as a meter, a location or an event names it.
      required:
        - id
        - name
      properties:
        id:
          type: string
          format: uuid
          description: The team's id.
        name:
          type: string
    CardRefusedData:
      type: object
      description: '`data` of `card_refused`.'
      required:
        - refused_by
        - id_tag
        - operator
        - reason
      properties:
        id_tag:
          type:
            - string
            - 'null'
          description: >-
            The id it showed the charger (OCPP 1.6's idTag, or 2.x's idToken),
            as the charger sent it;

            null when the charger sent none. Below `sensitive` access it shows
            its last three

            characters: `••••34A`.
        operator:
          oneOf:
            - $ref: '#/components/schemas/Operator'
              description: >-
                The other backoffice that refused it, when `refused_by` is
                `operator`; null otherwise.
            - type: 'null'
        reason:
          oneOf:
            - $ref: '#/components/schemas/RefusalReason'
              description: Why; null for an answer this API does not know.
            - type: 'null'
        refused_by:
          $ref: '#/components/schemas/RefusedBy'
          description: Who refused it.
    TransactionStartedData:
      type: object
      description: '`data` of `transaction_started`.'
      required:
        - id_tag
        - transaction_id
      properties:
        id_tag:
          type:
            - string
            - 'null'
          description: >-
            The id of the card or token it started with, as the charger sent it;
            null when it sent

            none. Below `sensitive` access it shows its last three characters:
            `••••34A`.
        transaction_id:
          type:
            - string
            - 'null'
          format: uuid
          description: >-
            The transaction, as `GET /v4/transactions/{transaction}` reads it;
            null when Plugchoice

            holds none for it.
    TransactionStoppedData:
      type: object
      description: '`data` of `transaction_stopped`.'
      required:
        - reason
        - transaction_id
      properties:
        reason:
          oneOf:
            - $ref: '#/components/schemas/StopReason'
              description: >-
                Why it stopped, as the charger reported it (`local` when it gave
                no reason, as OCPP has

                it); null for a reason this API does not know.
            - type: 'null'
        transaction_id:
          type:
            - string
            - 'null'
          format: uuid
          description: >-
            The transaction, as `GET /v4/transactions/{transaction}` reads it;
            null when Plugchoice

            holds none for it.
    EvseFaultedData:
      type: object
      description: '`data` of `evse_faulted`.'
      required:
        - error_code
        - info
        - status
        - vendor_code
      properties:
        error_code:
          oneOf:
            - $ref: '#/components/schemas/EvseErrorCode'
              description: >-
                The OCPP 1.6 error code; null for an OCPP 2.x charger, and for a
                code this API does not

                know.
            - type: 'null'
        info:
          type:
            - string
            - 'null'
          description: >-
            Free text the charger added (an OCPP 2.x charger's technical info,
            or the component that

            has the problem); null when it added none.
        status:
          oneOf:
            - $ref: '#/components/schemas/EvseStatus'
              description: >-
                The status the charger reported with the fault; null for an OCPP
                2.x charger, which reports

                faults apart from its status, and for a status this API does not
                know.
            - type: 'null'
        vendor_code:
          type:
            - string
            - 'null'
          description: The vendor's own error code; null when the charger sent none.
    EvseRecoveredData:
      type: object
      description: '`data` of `evse_recovered`.'
      required:
        - status
      properties:
        status:
          oneOf:
            - $ref: '#/components/schemas/EvseStatus'
              description: >-
                The status the charger reported; null when an OCPP 2.x charger
                cleared a problem, and for

                a status this API does not know.
            - type: 'null'
    ChargerBootedData:
      type: object
      description: '`data` of `charger_booted`.'
      required:
        - firmware_version
        - status
      properties:
        firmware_version:
          type:
            - string
            - 'null'
          description: >-
            The firmware version the charger reported; null when it reported
            none.
        status:
          oneOf:
            - $ref: '#/components/schemas/BootStatus'
              description: >-
                How Plugchoice (or the backoffice that answered) took it; null
                when the charger got no

                answer this API knows.
            - type: 'null'
    CommandFailedData:
      type: object
      description: '`data` of `command_failed`.'
      required:
        - command
        - outcome
      properties:
        command:
          type: string
          description: >-
            The command, as OCPP names it: `RemoteStartTransaction`, `Reset`,
            `UnlockConnector`.
        outcome:
          $ref: '#/components/schemas/CommandOutcome'
          description: How it failed.
    FirmwareFailedData:
      type: object
      description: '`data` of `firmware_failed`.'
      required:
        - status
      properties:
        status:
          oneOf:
            - $ref: '#/components/schemas/FirmwareFailure'
              description: What failed; null for a status this API does not know.
            - type: 'null'
    CardData:
      type: object
      description: '`data` of `card_added`, `card_updated` and `card_removed`.'
      required:
        - card
      properties:
        card:
          oneOf:
            - $ref: '#/components/schemas/CardReference'
              description: The card; null when the change did not record it.
            - type: 'null'
    CardsImportedData:
      type: object
      description: '`data` of `cards_imported`.'
      required:
        - card_count
      properties:
        card_count:
          type:
            - integer
            - 'null'
          format: int64
          description: How many cards were imported; null when it was not recorded.
    ChargerSettingData:
      type: object
      description: '`data` of `charger_setting_changed`.'
      required:
        - setting
      properties:
        setting:
          $ref: '#/components/schemas/ChargerSetting'
    ChargerConfigurationData:
      type: object
      description: '`data` of `charger_configuration_changed`.'
      required:
        - keys
      properties:
        keys:
          type: array
          items:
            type: string
          description: >-
            The configuration keys that were changed, as OCPP names them
            (`HeartbeatInterval`, or an

            OCPP 2.x charger's `Component.Variable`). Their values are not
            shown: some are secrets.
    GroupData:
      type: object
      description: '`data` of the `group_` types.'
      required:
        - group_id
      properties:
        group_id:
          type:
            - string
            - 'null'
          format: uuid
          description: >-
            The group, as `GET /v4/locations/{location}/groups` lists it while
            it is there; null when

            it was deleted since, or the change did not record it.
    NoData:
      type: object
      description: >-
        `data` of the types that add nothing: `evse_unavailable`,
        `firmware_installed`,

        `charger_set_up`, `charger_operators_changed`, `evse_changed`,
        `energy_prices_changed` and

        `energy_profile_changed`.
    Operator:
      type: object
      description: >-
        Another backoffice (a CPO's or eMSP's OCPP server) a charger's calls are
        relayed to.
      required:
        - host
        - name
      properties:
        host:
          type: string
          description: 'The host of its OCPP server: `ocpp.example.com`.'
        name:
          type:
            - string
            - 'null'
          description: >-
            Its name, as Plugchoice knows the backoffice; null for a host it
            does not know.
    RefusalReason:
      type: string
      description: >-
        Why a card was refused: the card status the charger was answered with,
        as OCPP names it

        (1.6's `AuthorizationStatus` and 2.x's `AuthorizationStatusEnumType`),
        or `no_answer`.

        Accept values you do not know: more may come.
      enum:
        - blocked
        - expired
        - invalid
        - concurrent_tx
        - no_credit
        - not_allowed_type_evse
        - not_at_this_location
        - not_at_this_time
        - unknown
        - no_answer
    RefusedBy:
      type: string
      description: 'Who refused a card. Accept values you do not know: more may come.'
      enum:
        - plugchoice
        - operator
        - nobody
    StopReason:
      type: string
      description: >-
        Why a transaction stopped: OCPP's reasons (1.6 and 2.x), and
        `auto_closed`. Accept values

        you do not know: more may come.
      enum:
        - de_authorized
        - emergency_stop
        - energy_limit_reached
        - ev_disconnected
        - ground_fault
        - hard_reset
        - immediate_reset
        - local
        - local_out_of_credit
        - master_pass
        - other
        - overcurrent_fault
        - power_loss
        - power_quality
        - reboot
        - remote
        - soc_limit_reached
        - soft_reset
        - stopped_by_ev
        - time_limit_reached
        - timeout
        - unlock_command
        - auto_closed
    EvseErrorCode:
      type: string
      description: 'An OCPP 1.6 error code. Accept values you do not know: more may come.'
      enum:
        - connector_lock_failure
        - ev_communication_error
        - ground_failure
        - high_temperature
        - internal_error
        - local_list_conflict
        - other_error
        - over_current_failure
        - over_voltage
        - power_meter_failure
        - power_switch_failure
        - reader_failure
        - reset_failure
        - under_voltage
        - weak_signal
    EvseStatus:
      type: string
      description: >-
        What an EVSE is doing, as its charger reports it. OCPP 1.6 chargers
        report all but

        `occupied`; OCPP 2.x chargers report `available`, `occupied`,
        `reserved`, `unavailable` and

        `faulted`. Accept values you do not know: more may come.
      enum:
        - available
        - preparing
        - charging
        - suspended_ev
        - suspended_evse
        - finishing
        - occupied
        - reserved
        - unavailable
        - faulted
    BootStatus:
      type: string
      description: >-
        How a charger's `BootNotification` was answered, as OCPP's
        `RegistrationStatus`. Accept

        values you do not know: more may come.
      enum:
        - accepted
        - pending
        - rejected
    CommandOutcome:
      type: string
      description: >-
        How a command failed: the status the charger answered with, as OCPP
        names it, or

        `error` and `no_answer`. Accept values you do not know: more may come.
      enum:
        - rejected
        - failed
        - unlock_failed
        - not_supported
        - unknown_connector
        - ongoing_authorized_transaction
        - invalid_certificate
        - revoked_certificate
        - error
        - no_answer
    FirmwareFailure:
      type: string
      description: >-
        How a firmware update failed, as OCPP's `FirmwareStatus` names it.
        Accept values you do not

        know: more may come.
      enum:
        - download_failed
        - installation_failed
        - install_verification_failed
        - invalid_signature
    CardReference:
      type: object
      description: A card, as an event names it.
      required:
        - id
        - name
      properties:
        id:
          type: string
          format: uuid
          description: >-
            The card's id, as `GET /v4/cards/{card}` reads it while the card is
            there.
        name:
          type:
            - string
            - 'null'
          description: >-
            Its name when the change was made; null when it had none. Below
            `sensitive` access it shows

            its first and last two letters: `Ja****en`.
    ChargerSetting:
      type: string
      description: 'A charger setting. Accept values you do not know: more may come.'
      enum:
        - lock
        - autostart
        - display_led
        - screen_branding
        - qr_payment
        - socket_lock
        - nanogrid
  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.