---
title: "Get geofence"
method: GET
path: "/time-clock/v1/time-clocks/{timeClockId}/geofences/{fenceId}"
tags: ["Time Clock:v1:TimeClocks:TimeClock:GeoFences"]
---

# Get geofence

`GET /time-clock/v1/time-clocks/{timeClockId}/geofences/{fenceId}`

## Request

- Base URL: `https://api.connecteam.com`
- URL: `https://api.connecteam.com/time-clock/v1/time-clocks/{timeClockId}/geofences/{fenceId}`
- Auth: one of:
  - API key in header `X-API-KEY`
  - OAuth 2
    - Client credentials
    - Token URL: `/oauth/v1/token` scopes: `time_clock.read`

Get a geofence site under a specified time clock

## Path parameters

- `fenceId` string, required: The ID of the geofence to get
- `timeClockId` integer, required: The unique identifier of the time clock

## Response `200`

Successful Response

- APIResponseGeoFenceWithFenceIdEntity
  - `requestId` string
  - `data` GeoFenceWithFenceIdEntity, required
    - `id` string, required: The unique identifier of the geofence
    - `name` string, required: The name of the geofence
    - `isEnabled` boolean: Indicates whether the geofence is enabled upon creation
    - `fenceSize` integer: The radius size (in meters) of the geofence. Must be a value between 75-1524 meters
    - `jobIds` string[]: Job IDs used with jobIdsMode. For 'specific', the geofence applies only to these jobs. For 'anyExcept', these jobs are excluded. For 'any', pass an empty array. If a job has sub-jobs, pass only the parent job ID. Jobs must belong to the time clock.
    - `jobIdsMode` 'any' | 'specific' | 'anyExcept': An enumeration.
    - `onGeofenceExitAction` 'noAction' | 'sendNotification' | 'autoClockOut': An enumeration.
    - `location` GpsLocation, required
      - `address` string, required: address
      - `latitude` string, required: latitude, number format
      - `longitude` string, required: longitude, number format

## Other responses

- `422`: Validation Error

## Changes

- **2026-11-03** `a01dde7c27fb`: 1 info
  - added the optional property `data/jobIdsMode` to the response with the `200` status

[Operation history](https://skmtc.dev/connecteam/apis/connecteam-api-documentation/changes/time-clock/v1/time-clocks/:timeClockId/geofences/:fenceId/get.md)

---

[API](https://skmtc.dev/connecteam/apis/connecteam-api-documentation.md) - [All operations](https://skmtc.dev/connecteam/apis/connecteam-api-documentation/llms.txt) - [OpenAPI document](https://skmtc.dev/connecteam/apis/connecteam-api-documentation/revisions/a01dde7c27fb?raw)
