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

> Retrieve an office of the company by id, archived or not.

Version:
v4


## OpenAPI

````yaml openapi-v2.json GET /core/v4/offices/{officeId}
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/offices/{officeId}:
    get:
      tags:
        - Offices
      summary: Get office
      description: Retrieve an office of the company by id, archived or not.
      operationId: GetOffice
      parameters:
        - name: officeId
          in: path
          required: true
          schema:
            type: string
            format: uuid
      responses:
        '200':
          description: The office.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/OfficeResponse'
        '401':
          description: Missing or invalid API key
        '403':
          description: API consumer lacks permission over the requested resource
        '422':
          description: Validation error
components:
  schemas:
    OfficeResponse:
      properties:
        data:
          $ref: '#/components/schemas/OfficeEntry'
      type: object
    OfficeEntry:
      properties:
        id:
          type: string
          format: uuid
        name:
          type: string
        address:
          type: string
          nullable: true
        description:
          type: string
          nullable: true
        coordinates:
          description: Geofence center. `null` when the office has no geofence.
          nullable: true
          allOf:
            - $ref: '#/components/schemas/CoordinatesEntry'
          oneOf:
            - $ref: '#/components/schemas/CoordinatesEntry'
        radius:
          description: Geofence radius in meters. `null` when the office has no geofence.
          type: integer
          nullable: true
        defaultEmployeesDateTimeZone:
          description: IANA time zone, for example `Europe/Madrid`.
          type: string
          example: Europe/Madrid
        archivedAt:
          type: string
          format: date-time
          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.