flespi Plugins API

[Plugins](https://flespi.com/kb/plugins-functionality-extensions-for-flespi-devices) are the key instance in flespi responsible for the transformation of the message received by the device during its registration process. Plugins can transform [device message](https://flespi.com/kb/messages-basic-information-units) into different structure, remove or add new parameters, duplicate it to another device or cancel its registration at all. Plugins are applied in the order defined by their priority. The higher the number in the priority field, the earlier the plugin will apply. Use the validate_message field in the plugin configuration to specify the validation [expression](https://flespi.com/kb/expressions) that should succeed for the plugin to apply. If no validation expression is specified, the plugin will apply to all device messages that are being registered. Currently plugins can only be applied to [flespi devices](https://flespi.com/kb/device-virtual-instance-of-real-tracker). In the future we may enhance plugins functionality to work with other types of flespi items. List of available plugin types you can retrieve with [GET /gw/plugin-types/all](https://flespi.io/docs/#/gw/protocols/get_plugin_types_plugin_types_selector) API call. Configuration within each plugin instance should match the configuration schema defined for corresponding plugin type. To stay current with plugin type updates, subscribe to 'flespi/message/gw/plugin-types/{type-id}/changelog' MQTT topic delivering any changes published in the plugin type [changelog](https://forum.flespi.com/t/changelog). Any device message processed by the plugin is reflected into plugin logs with corresponding device_id and message_timestamp parameters. In the log record event_code parameter defines the result of plugin application: Event code | Description -----|------ 324|group was added to plugin 325|group was removed from plugin 326|geofence was added to plugin 327|geofence was removed from plugin 350|plugin successfully processed device message 351|plugin failed to process device message For event_code=351 you may check field 'reason' for the textual description of the problem (its actual format depends on the actual plugin type) and examine plugin raw traffic that occurred at the same time for more information. A plugin type may add its own parameters to the log record, for example 'ai_credits' with the number of AI credits charged for the message. Whenever you need to troubleshoot plugin operation you can investigate raw traffic between flespi plugin and some server. You can fetch traffic packets via API or just use flespi.io panel for this. On 'Logs' tab there is TRAFFIC button and also from each log record you can navigate to associated raw traffic exchange via context menu command.

GitHub OpenAPI

Operations 24

GET /plugin-types/{plugin-types.selector} Fetch available plugin types #
GET /plugin-types/{plugin-types.selector}/changelog-posts Fetch changelog posts of plugin types #
POST /plugins Create new plugin #
DELETE /plugins/{plugin.selector} Delete selected plugins #
GET /plugins/{plugin.selector} List available plugins #
PATCH /plugins/{plugin.selector} Modify fields inside plugin configuration #
PUT /plugins/{plugin.selector} Modify plugin properties #
DELETE /plugins/{plugin.selector}/devices/{plugin.devices.selector} Unassign device from group #
GET /plugins/{plugin.selector}/devices/{plugin.devices.selector} Retrieve devices in plugin #
PATCH /plugins/{plugin.selector}/devices/{plugin.devices.selector} Modify subset of device data for plugin #
POST /plugins/{plugin.selector}/devices/{plugin.devices.selector} Assign devices to plugin #
PUT /plugins/{plugin.selector}/devices/{plugin.devices.selector} Modify full device data for plugin #
DELETE /plugins/{plugin.selector}/geofences/{plugin.geofences.selector} Unassign geofences from plugin #
GET /plugins/{plugin.selector}/geofences/{plugin.geofences.selector} Retrieve geofences in plugin #
POST /plugins/{plugin.selector}/geofences/{plugin.geofences.selector} Assign geofences to plugin #
PUT /plugins/{plugin.selector}/geofences/{plugin.geofences.selector} Modify geofence data for plugin #
DELETE /plugins/{plugin.selector}/groups/{plugin.groups.selector} Unassign a group from plugin #
GET /plugins/{plugin.selector}/groups/{plugin.groups.selector} Fetch groups assigned to the plugin #
POST /plugins/{plugin.selector}/groups/{plugin.groups.selector} Assign a group of devices to a plugin #
PUT /plugins/{plugin.selector}/groups/{plugin.groups.selector} Update assignment of group of devices to plugin #
GET /plugins/{plugin.selector}/logs Retrieve plugin logs #
GET /plugins/{plugin.selector}/logs/calculate Calculate intervals from plugin logs #
POST /plugins/{plugin.selector}/logs/calculate Calculate intervals from plugin logs #
GET /plugins/{plugin.selector}/packets Retrieve raw traffic generated by plugin #

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-plugins-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-plugins-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 Plugins API
  version: '1.0'
servers:
- url: https://flespi.io/gw
- url: http://flespi.io/gw
tags:


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