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

# Create location

> Create a location with a geofence in the company.

Version:
v4


## OpenAPI

````yaml openapi-v2.json POST /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:
    post:
      tags:
        - Locations
      summary: Create location
      description: Create a location with a geofence in the company.
      operationId: CreateLocation
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/CreateLocationRequest'
      responses:
        '201':
          description: The identifier of the created location.
          content:
            application/json:
              schema:
                properties:
                  data:
                    $ref: '#/components/schemas/CreatedEntry'
                type: object
        '401':
          description: Missing or invalid API key
        '403':
          description: API consumer lacks permission over the requested resource
        '422':
          description: Validation error
components:
  schemas:
    CreateLocationRequest:
      required:
        - name
        - coordinates
        - radius
      properties:
        name:
          description: At most 255 characters and 255 bytes in UTF-8.
          type: string
          maxLength: 255
        address:
          type: string
          maxLength: 255
          nullable: true
        coordinates:
          $ref: '#/components/schemas/CoordinatesInput'
        radius:
          description: Geofence radius in meters.
          type: integer
          maximum: 1000
          minimum: 10
      type: object
    CreatedEntry:
      properties:
        id:
          description: Identifier of the created resource.
          type: string
          format: uuid
      type: object
    CoordinatesInput:
      required:
        - latitude
        - longitude
      properties:
        latitude:
          description: From -90 to 90.
          type: number
          format: double
          maximum: 90
          minimum: -90
        longitude:
          description: From -180 to 180.
          type: number
          format: double
          maximum: 180
          minimum: -180
      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.