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

> Every location the caller reaches through any of their teams, each once, with the highest
access any of those teams has. Narrow it with the filters; the filters combine. Sorted by id,
so a page stays put while locations are added. A token limited to picked teams and locations
lists the locations of those teams and the picked locations.



## OpenAPI

````yaml api-reference/v4/v4.openapi.json GET /locations
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:
  /locations:
    get:
      tags:
        - locations
      summary: The locations you reach
      description: >-
        Every location the caller reaches through any of their teams, each once,
        with the highest

        access any of those teams has. Narrow it with the filters; the filters
        combine. Sorted by id,

        so a page stays put while locations are added. A token limited to picked
        teams and locations

        lists the locations of those teams and the picked locations.
      operationId: list_locations
      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 locations this team reaches: one of yours.'
          required: false
          schema:
            type: string
            format: uuid
        - name: updated_since
          in: query
          description: |-
            Only locations that changed at or after this time (RFC 3339, such as
            `2026-11-23T10:00:00Z`): what changed since a client last looked.
          required: false
          schema:
            type: string
            format: date-time
      responses:
        '200':
          description: A page of locations
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Page_Location'
        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:
            - locations:read
components:
  schemas:
    Limit:
      type: integer
      description: How many results one page holds.
      default: 25
      maximum: 100
      minimum: 1
    Page_Location:
      type: object
      description: One page of a list.
      required:
        - data
      properties:
        data:
          type: array
          items:
            type: object
            description: >-
              A location: a place with chargers, such as a home, an office or a
              car park.
            required:
              - id
              - address
              - access
              - chargers_count
              - created_at
              - updated_at
            properties:
              access:
                $ref: '#/components/schemas/Access'
              address:
                $ref: '#/components/schemas/Address'
              chargers_count:
                type: integer
                format: int64
                description: >-
                  How many chargers are at the location, also those you do not
                  reach yourself.
              coordinates:
                oneOf:
                  - $ref: '#/components/schemas/Coordinates'
                    description: Where it is on the map; null when that is not known.
                  - type: 'null'
              created_at:
                type: string
                format: date-time
              id:
                type: string
                format: uuid
                description: The location's id.
              name:
                type:
                  - string
                  - 'null'
                description: Its name; null when it has none.
              timezone:
                type:
                  - string
                  - 'null'
                description: >-
                  Its time zone, as the IANA database names it
                  (`Europe/Amsterdam`); null when none is set.
              updated_at:
                type: string
                format: date-time
                description: >-
                  When the location itself last changed (its name, address, time
                  zone or settings); a change

                  to its chargers, groups or who reaches it is not one.
        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: the last part of `type`.'
        detail:
          type: string
          description: >-
            What went wrong with this request, when there is more to say than
            the title.
        errors:
          type: array
          items:
            $ref: '#/components/schemas/FieldError'
          description: 'With `validation-failed`: the fields that broke a rule.'
        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.
    Access:
      type: string
      description: >-
        The caller's access to a charger or a location: the highest any of their
        teams has, within

        the token's reach. Each level grants everything below it. Accept levels
        you do not know: more

        may come.
      enum:
        - view
        - basic
        - sensitive
        - full
    Address:
      type: object
      description: A location's address. Each part is null when it is not known.
      properties:
        city:
          type:
            - string
            - 'null'
        country:
          type:
            - string
            - 'null'
          description: 'The country, as its ISO 3166-1 alpha-2 code: `NL`.'
        house_number:
          type:
            - integer
            - 'null'
          format: int32
        house_number_addition:
          type:
            - string
            - 'null'
          description: What follows the house number, such as `A` or `bis`.
        postal_code:
          type:
            - string
            - 'null'
        street:
          type:
            - string
            - 'null'
    Coordinates:
      type: object
      description: A point on the map, in degrees (WGS 84).
      required:
        - latitude
        - longitude
      properties:
        latitude:
          type: number
          format: double
        longitude:
          type: number
          format: double
    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.
  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.