Skip to main content
The Geofences API provides CRUD operations for geofence definitions and a real-time check endpoint that determines which geofences a given coordinate falls within.
See the Geofencing feature page for business context, integration patterns, and configuration guidance.

Base Path


GET /api/v1/geofences

List all geofences for the current tenant, ordered by creation date (newest first). Roles: admin, editor, viewer

Response 200

Response Fields

Example


POST /api/v1/geofences

Create a new geofence. Roles: admin, editor

Request Body

Response 201

Returns the created geofence object (same shape as GET response items).

Example


PUT /api/v1/geofences

Update an existing geofence. The request body must include the id field. All other fields are optional and only provided fields are updated. Roles: admin, editor

Request Body

Response 200

Returns the updated geofence object.

Example


DELETE /api/v1/geofences

Permanently delete a geofence. Roles: admin

Query Parameters

Response 200

Example


POST /api/v1/geofences/check

Check which active geofences a given coordinate falls within. Uses the Haversine formula for distance calculation. Roles: admin, editor, viewer

Request Body

Response 200

Match Fields

Example


Error Codes


See Also