flespi Geofences API

Geofences allow you to enhance your telematics solution by incorporating geocoding functionality. A geofence is an independent entity characterized by **id, name, geometry (which can be a polygon, circle, or corridor), and metadata**. Geofences can be linked with various components such as plugins, calculators, or streams. When geofences are linked, they can serve as message validators, enabling the processing or filtering (ignoring) of messages. - [Streams](https://flespi.com/kb/stream-forward-data-from-gateway) utilize linked geofences to selectively transmit messages that fall within or outside designated geofences. - [Plugins](https://flespi.com/kb/plugins-functionality-extensions-for-flespi-devices) can leverage linked geofences similarly but also enrich message parameters with geofence names and metadata. - [Calculators](https://flespi.com/kb/calculators-preconfigured-algorithms-for-intervals-extraction-and-calculating) incorporate linked geofences within selectors, validators, and counters. Additionally: - Geofences can be organized into groups, similar to the [grouping](https://flespi.com/kb/groups-organize-devices-and-simplify-mass-assignments) of devices. - Access to geofences can be managed through [ACL](https://flespi.com/kb/tokens-access-keys-to-flespi-platform#sharing-access). - Access to geofences from unrelated subaccount can be [granted](https://flespi.com/kb/grants-sharing-access-between-unrelated-subaccounts). - Geofences have a priority ranging from 0 to 100. Intersections with geofences of higher priority are checked first. - You can perform geofences hit-test operation for a point with arbitrary coordinates using the REST API.

GitHub OpenAPI

Operations 18

DELETE /calcs/{calcs.selector}/geofences/{calc.geofences.selector} Unassign geofences from calc #
GET /calcs/{calcs.selector}/geofences/{calc.geofences.selector} Retrieve geofences in calc #
POST /calcs/{calcs.selector}/geofences/{calc.geofences.selector} Assign geofences to calc #
PUT /calcs/{calcs.selector}/geofences/{calc.geofences.selector} Modify geofence data for calc #
POST /geofences Create new geofence #
DELETE /geofences/{geofences.selector} Delete selected geofences #
GET /geofences/{geofences.selector} List available geofences #
PATCH /geofences/{geofences.selector} Patch item properties #
PUT /geofences/{geofences.selector} Modify geofence properties #
GET /geofences/{geofences.selector}/hittest Test if the point is inside geofences #
GET /geofences/{geofences.selector}/logs Retrieve geofence logs #
GET /geofences/{geofences.selector}/logs/calculate Calculate intervals from geofence logs #
POST /geofences/{geofences.selector}/logs/calculate Calculate intervals from geofence logs #
DELETE /groups/{groups.selector}/geofences/{group.geofences.selector} Unassign geofences from group #
GET /groups/{groups.selector}/geofences/{group.geofences.selector} Retrieve geofences in group #
POST /groups/{groups.selector}/geofences/{group.geofences.selector} Assign geofences to group #
PUT /plugins/{plugin.selector}/geofences/{plugin.geofences.selector} Modify geofence data for plugin #
PUT /streams/{stream.selector}/geofences/{stream.geofences.selector} Modify geofence data for stream #

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/flespi:flespi-geofences-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

flespi-geofences-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  description: 'This API (full-stack API for telematics devices) provides methods to create and manage the following instances of the flespi telematics hub that jointly provide the end-to-end communication between the GPS trackers and your target application:

    * **channels** - inbound protocol-specific pipes where the raw data from the trackers get parsed and saved in the unified JSON format in the buffer for further consumption.

    * **devices** - virtual representations of the physical trackers on the flespi platform. Allow organizing messages storage by device (ident), remote device configuration, dedicated long-term storage, video telematics functionality, access to telemetry and much more.

    * **streams** - outbound data flows preformatted to forward the telematics data to specific target platforms (e.g. Google Pub/Sub, Amazon AWS IoT, Microsoft Azure IoT, and more).

    * **calculators** - sets of rules for detecting intervals and computing the associated values for them; integral prt of the flespi analytics engine.

    * **plugins** - allow extending the standard set of device parameters with additional ones required by specific platforms or applications, including copy of message into other devices, cancelling message registration and even enriching message parameters from your system via webhook.

    * **modems** - instance connecting the flespi platform with an SMS service provider for sending configurational text messages to change device settings.

    * **protocols** - access to the list of protocols, device types, available message parameters and commands.


    To identify each REST request flespi token has to be passed in the HTTP call via the header: **Authorization: FlespiToken XXXXXXXXXX**.

    The limit of URI component is 64 KiB.

    A request fails with 503 Service Unavailable when the server sends no response data for 300 seconds.


    All changes to the gateway items are recorded in the common logs subsystem.'
  title: flespi Telematics Hub REST Geofences API
  version: '1.0'
servers:
- url: https://flespi.io/gw
- url: http://flespi.io/gw
tags:


# --- truncated at 32 KB (165 KB total) ---
# Full source: https://artifacts.apis.io/flespi/openapi/flespi-geofences-api-openapi.yml