canonical: https://jentic.com/apis/senecaxconnect.com/senecaxconnect

# Senecaxconnect xConnect API

The xConnect API runs the Seneca xConnect platform for connected edge devices and gateways. It registers and manages devices, records device heartbeats, ingests telemetry for a device singly or in batches and returns the latest readings, and onboards customers and virtual or physical gateways. It also defines remote commands and executes them on a set of devices with a queue, status, and execution logs, opens remote-desktop tunnels, and manages pipelines, variables, schedules, operational status records, event logs, and hardware models by baseboard, with Zapier-style subscribe and polling operations for integrations.

## For AI agents

List and register Seneca xConnect edge devices, push and read telemetry, run remote commands on devices and check their status and logs, and onboard customers and gateways.

## Scope

Does not flash device firmware, render dashboards, or control consumer smart-home devices. Use for managing Seneca xConnect edge devices, gateways, telemetry, and remote commands only.

## Capabilities

- Register a new device under an application code and look devices up by name or UUID
- Push telemetry for a device by its hid or uid, singly or in a batch, and read the latest telemetry
- Execute a defined remote command on a list of devices with remoteCommandHid and deviceHids
- Check a remote command's status by eventId and review the remote command logs by date
- Onboard customers and virtual gateways, and look up physical gateways
- Open or update a remote-desktop tunnel to a device
- Track operational status records and event logs filtered by object, type, and date range

## Use cases

### AI operations agent for an edge fleet

An operator's agent checking on a fleet of edge devices needs device lists and recent readings without a hand-built client. Through Jentic the agent searches for 'list my IoT devices', loads the xConnect device operation with its filter schema, and calls it with the x-auth-token injected by your own Jentic One instance. It then reads the latest telemetry and flags devices that have stopped reporting.

Example prompt: Call GET `/api/v1/devices` filtered by gatewayHid, then GET `/api/v1/telemetries/latest`, and list devices with no recent readings

### Remote command execution

Field technicians fix devices remotely rather than travelling to site. xConnect stores remote command definitions with an impact type, executes a command on a set of devices given a remoteCommandHid and deviceHids, and exposes a queue per device. The command status by eventId and the remote command logs show which devices ran it and when.

Example prompt: Call POST `/api/v1/remote-command/execute` with remoteCommandHid and deviceHids for three devices, then poll GET `/api/v1/remote-command/status` with the eventId

### Device telemetry ingestion

Gateways and integrations push readings into xConnect for storage and dashboards. Telemetry is posted for a device by its hid or by its uid, with batch variants for buffered readings, and multiple devices can be posted at once. Device heartbeats record that a device is alive with its sourceSystem.

Example prompt: Call POST `/api/v1/telemetries/devices/{deviceHid}/batch` with buffered readings, then PUT `/api/v1/devices/{hid}/v2/heartbeat` with sourceSystem set

### Customer and gateway onboarding

Integrators bringing a new site online create the customer, then a virtual gateway, and register its devices. xConnect's onboarding operations create customers and virtual gateways, look up virtual and physical gateways, report a virtual gateway's status by hid, and map a port to its application code. Devices are then created under that application code with uid, name, type, and profile.

Example prompt: Call PUT `/api/v1/onboarding/customers`, then PUT `/api/v1/onboarding/virtual-gateways`, and register a device with POST `/api/v1/devices/{APP_CODE}/create`

## Key endpoints

| Method | Path | Description |
| --- | --- | --- |
| GET | `/api/v1/devices` | List devices with filters |
| POST | `/api/v1/devices/{APP_CODE}/create` | Register a new device |
| GET | `/api/v1/telemetries/latest` | Get the latest telemetry |
| POST | `/api/v1/telemetries/devices/{deviceHid}/batch` | Push a telemetry batch |
| POST | `/api/v1/remote-command/execute` | Execute a remote command |
| GET | `/api/v1/remote-command/status` | Get remote command status |
| PUT | `/api/v1/onboarding/virtual-gateways` | Create a virtual gateway |
| GET | `/api/v1/operational-status` | List operational status records |

## Key resources

- **Devices** — Device search, lookup by name or UUID, creation, management, updates, and heartbeats
- **Telemetry** — Per-device and batch telemetry ingestion and the latest readings
- **Remote commands** — Command definitions, execution on device sets, queues, status, and logs
- **Onboarding** — Customers, virtual gateways with status, and physical gateway lookup
- **Pipelines, schedules, and variables** — Pipeline definitions and history, schedules, variable groups, and scripts
- **Status and events** — Operational status records, events, event logs, companies, applications, and hardware models

## AI readiness

This API is usable in Jentic One now. Its AI-readiness score against Jentic's framework shows where it stands today and where improvements would make it even easier for agents to use.

- **Score:** 42 / 100
- **Maturity:** Foundational
- **Dimensions:**
  - Foundational Compliance: 73 / 100
  - Developer Experience & Jentic Compatibility: 69 / 100
  - AI-Readiness & Agent Experience: 21 / 100
  - Agent Usability: 86 / 100
  - Security: 50 / 100
  - AI Discoverability: 34 / 100
- **View full report:** https://jentic.com/apis/senecaxconnect.com/senecaxconnect/scorecard
- **How the score is calculated:** https://docs.jentic.com/reference/api-readiness-framework/overview/
- **More about the dimensions:** https://docs.jentic.com/reference/api-readiness-framework/specification/#dimensional-model-overview

### Score it yourself

Every API in the directory is allowlisted, so you can re-score it with no key required.

- **Score your own API:** https://jentic.com/scorecard.md
- **Scoring CLI agent skill:** https://github.com/jentic/jentic-api-scorecard/blob/main/skills/jentic-api-scorecard/SKILL.md

```sh
npx @jentic/api-scorecard-cli score <openapi-url>
```

## Why Jentic

- **Setup:** Wiring xConnect by hand means obtaining an x-auth-token, sending it in a custom header on every call, and working out device hid, uid, and application-code addressing across dozens of operations. Through Jentic you install once, import xConnect from the API Directory, store the token once, and your agent calls it.
- **Permission scoping:** xConnect puts device identifiers in the URL path for telemetry and heartbeats (`/api/v1/telemetries/devices/{deviceHid}`), so a rule can pin your agent to one device for those operations. Command execution carries its target devices in the request body, so you choose the operations it may call, and ones like POST `/api/v1/remote-command/execute` or POST `/api/v1/remote-desktop` are not included unless you add them.
- **Credential handling:** Your xConnect token is stored once, encrypted, by your own Jentic One instance and injected at execution time. It never enters the agent's prompt, logs, or context.
- **Discovery method:** Agents search Jentic by intent such as 'list my IoT devices' or 'run a command on a device', and Jentic returns the matching xConnect operation with its input schema so the agent picks the right one among similarly named operations.

## Related APIs

- **ThingsBoard** — Open-source IoT platform for device management, telemetry, and dashboards
- **balena** — Fleet management and container deployment for edge Linux devices
- **Zapier** — Workflow automation connecting apps through triggers and actions

## FAQ

### What authentication does the xConnect API use?

The xConnect API authenticates with an API key sent in the `x-auth-token` request header, per its OpenAPI spec. Separately, the Zapier login operation, POST `/api/v1/zapier/login`, takes a username and password as query parameters, and some Zapier operations also take a userId header. Through Jentic the token is stored by your own instance and injected at call time, so it never appears in the agent's context.

### Can I run a command on several devices at once with the xConnect API?

Yes. POST `/api/v1/remote-command/execute` takes a remoteCommandHid identifying the command definition and a deviceHids list of target devices. Track it with GET `/api/v1/remote-command/status` using the eventId, and review results with GET `/api/v1/remote-command-logs` filtered by date, commandName, or commandId.

### What are the rate limits for the xConnect API?

The OpenAPI spec does not specify rate limits. Check with Seneca at https://www.seneca.it for the limits that apply to your xConnect tenant before pushing high-frequency telemetry.

### Is there an xConnect MCP server?

You don't need an MCP server to give your agent xConnect. Jentic connects it directly from the API Directory: import it, store your x-auth-token once, and your agent finds the device, telemetry, and command operations it needs on demand.

### How do I read the latest device telemetry through Jentic?

Search Jentic for 'get the latest telemetry from my devices', load GET `/api/v1/telemetries/latest`, and execute it. To narrow down to one site first, list devices with GET `/api/v1/devices` filtered by gatewayHid or name. To run it on your own infrastructure, install Jentic One from its GitHub repo.

### Can I limit what my agent is allowed to do with the xConnect API?

Yes. A monitoring agent can get a rule allowing only GET `/api/v1/devices`, GET `/api/v1/telemetries/latest`, and GET `/api/v1/remote-command/status`, so it watches the fleet and command results but cannot execute commands, open remote-desktop tunnels, or delete hardware models. Every call it makes is logged.
