# flespi Plugins API

**Canonical:** https://apis.io/apis/flespi/flespi-plugins-api/  
**Provider:** flespi — https://apis.io/providers/flespi/  
**Base URL:** https://flespi.io/gw  
**Documentation:** https://flespi.io/docs/#/gw

flespi Plugins API is one of 11 APIs that [flespi](https://apis.io/providers/flespi/) publishes on the [APIs.io](https://apis.io/) network, described by a machine-readable OpenAPI specification. Tagged areas include Plugins. The published artifact set on APIs.io includes an OpenAPI specification.

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

## Operations (24)

| Method | Path | Summary |
|---|---|---|
| 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 |

## Machine-readable artifacts (1)

- **OpenAPI** — https://artifacts.apis.io/flespi/openapi/flespi-plugins-api-openapi.yml

## Other flespi APIs (10)

- [flespi Assets API](https://apis.io/apis/flespi/flespi-assets-api/)
- [flespi Calculators API](https://apis.io/apis/flespi/flespi-calculators-api/)
- [flespi Changelog API](https://apis.io/apis/flespi/flespi-changelog-api/)
- [flespi Channels API](https://apis.io/apis/flespi/flespi-channels-api/)
- [flespi Devices API](https://apis.io/apis/flespi/flespi-devices-api/)
- [flespi Geofences API](https://apis.io/apis/flespi/flespi-geofences-api/)
- [flespi Groups API](https://apis.io/apis/flespi/flespi-groups-api/)
- [flespi Modems API](https://apis.io/apis/flespi/flespi-modems-api/)
- [flespi Protocols API](https://apis.io/apis/flespi/flespi-protocols-api/)
- [flespi Streams API](https://apis.io/apis/flespi/flespi-streams-api/)

## Tags

Plugins

## Use this from code or an agent

- **REST, no key:** `GET https://apis.io/api/v1/providers/flespi` returns the provider's full profile as JSON.
- **MCP:** `https://apis.io/mcp` (Streamable HTTP) — search the catalog, read any provider, compare providers, check agent readiness.
- **Free API key** for catalog-wide search, ratings and comparisons: sign in with GitHub, Google or LinkedIn at https://apis.io/developer/account/ (plans: https://apis.io/developer/plans/).

---

Profiled by [API Evangelist](https://apievangelist.com) and published on [APIs.io](https://apis.io/apis/flespi/flespi-plugins-api/). The API's provider profile, Kin Score and agent-readiness rating are at https://apis.io/providers/flespi/.
