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

# List locations

> List the locations of the company (paginated), by name by default.

Version:
v4


## OpenAPI

````yaml openapi-v2.json GET /core/v4/locations
openapi: 3.0.0
info:
  title: Sesame Public API v2
  description: >-
    Public API v2 — additive surface `/public/{context}/v{N}`,
    endpoint-versioned from v4
  version: 1.0.0
servers:
  - url: https://api.sesamehr.com
    description: Production
security:
  - Bearer: []
paths:
  /core/v4/locations:
    get:
      tags:
        - Locations
      summary: List locations
      description: List the locations of the company (paginated), by name by default.
      operationId: ListLocations
      parameters:
        - name: page
          in: query
          required: false
          schema:
            type: integer
            default: 1
        - name: limit
          in: query
          required: false
          schema:
            type: integer
            default: 20
            maximum: 300
        - name: name
          in: query
          description: Locations whose name contains this text, case-insensitive.
          required: false
          schema:
            type: string
        - name: createdFrom
          in: query
          description: >-
            Created at or after this ISO 8601 date-time with zone. Encode `+` as
            `%2B`.
          required: false
          schema:
            type: string
            format: date-time
        - name: createdTo
          in: query
          description: >-
            Created at or before this ISO 8601 date-time with zone. Encode `+`
            as `%2B`.
          required: false
          schema:
            type: string
            format: date-time
        - name: sort
          in: query
          description: >-
            Comma-separated fields: `name`, `createdAt`. A leading `-` sorts
            descending. Ties are broken by `id` ascending.
          required: false
          schema:
            type: string
            default: name
      responses:
        '200':
          description: The paginated locations.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ListLocationsResponse'
        '401':
          description: Missing or invalid API key
        '403':
          description: API consumer lacks permission over the requested resource
        '422':
          description: Validation error
components:
  schemas:
    ListLocationsResponse:
      properties:
        data:
          type: array
          items:
            $ref: '#/components/schemas/LocationEntry'
        meta:
          $ref: '#/components/schemas/PaginationMetaEntry'
      type: object
    LocationEntry:
      properties:
        id:
          type: string
          format: uuid
        name:
          type: string
        address:
          type: string
          nullable: true
        coordinates:
          description: Geofence center. `null` when the location has no geofence.
          nullable: true
          allOf:
            - $ref: '#/components/schemas/CoordinatesEntry'
          oneOf:
            - $ref: '#/components/schemas/CoordinatesEntry'
        radius:
          description: Geofence radius in meters. `null` when the location has no geofence.
          type: integer
          nullable: true
        createdAt:
          type: string
          format: date-time
        updatedAt:
          type: string
          format: date-time
      type: object
    PaginationMetaEntry:
      properties:
        currentPage:
          description: Current page number (1-based).
          type: integer
        lastPage:
          description: Last available page number.
          type: integer
        total:
          description: Total number of items across all pages.
          type: integer
        perPage:
          description: Number of items per page.
          type: integer
      type: object
    CoordinatesEntry:
      properties:
        latitude:
          type: number
          format: double
        longitude:
          type: number
          format: double
      type: object
  securitySchemes:
    Bearer:
      type: http
      description: 'Sesame Public API consumer token (Authorization: Bearer <token>)'
      scheme: bearer

````

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