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

# Get location

> Retrieve a location of the company by id.

Version:
v4


## OpenAPI

````yaml openapi-v2.json GET /core/v4/locations/{locationId}
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/{locationId}:
    get:
      tags:
        - Locations
      summary: Get location
      description: Retrieve a location of the company by id.
      operationId: GetLocation
      parameters:
        - name: locationId
          in: path
          required: true
          schema:
            type: string
            format: uuid
      responses:
        '200':
          description: The location.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/LocationResponse'
        '401':
          description: Missing or invalid API key
        '403':
          description: API consumer lacks permission over the requested resource
        '422':
          description: Validation error
components:
  schemas:
    LocationResponse:
      properties:
        data:
          $ref: '#/components/schemas/LocationEntry'
      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
    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.