Losant Devices API

The Devices API from Losant — 24 operation(s) for devices.

GitHub OpenAPI

Operations 30

Each operation below carries the questions people ask an LLM about it and the instructions they give an agent to run it. Generated by API Evangelist overlay

GET /applications/{applicationId}/devices List devices in an application · Returns the devices for an application #
Ask an LLM
“What devices are registered in my Losant application?”
“Can I list only the devices of one device class?”
Tell an agent
List devices in application {applicationId}.
List devices in {applicationId} matching {filter}.
POST /applications/{applicationId}/devices Create a device in an application · Create a new device for an application #
Ask an LLM
“How do I register a new device in my application?”
“Can I set tags and attributes when creating a device?”
Tell an agent
Create device {name} in application {applicationId}.
Register a {deviceClass} device named {name} in {applicationId}.
PATCH /applications/{applicationId}/devices Update many devices at once · Update the fields of one or more devices #
Ask an LLM
“Can I change the attributes of several devices in one request?”
“Is there a way to patch devices matching a query?”
Tell an agent
Update devices matching {query} in application {applicationId}.
Patch the devices in {applicationId} matching {query} with {updateFields}.
GET /applications/{applicationId}/devices/attributeNames List attribute names across devices · Gets the attribute names that match the given query. Maximum 1K returned #
Ask an LLM
“Which attribute names are used across my devices?”
“Can I list only the numeric attributes?”
Tell an agent
List attribute names in application {applicationId}.
List attribute names in {applicationId} starting with {startsWith}.
POST /applications/{applicationId}/devices/command Send a command to many devices · Send a command to multiple devices #
Ask an LLM
“How do I send a reboot command to all devices tagged a certain way?”
“Can I broadcast a command to devices matching a query?”
Tell an agent
Send command {name} to devices tagged {deviceTags} in {applicationId}.
Broadcast {name} to devices matching {deviceQuery} in {applicationId}.
GET /applications/{applicationId}/devices/compositeState Get composite state of devices · Retrieve the composite last complete state of the matching devices #
Ask an LLM
“What was the last complete state of my devices over a time range?”
“Can I get composite state for only certain attributes?”
Tell an agent
Get composite state of devices in {applicationId} from {start} to {end}.
Get composite state of devices matching {query} in {applicationId}.
POST /applications/{applicationId}/devices/delete Delete devices · Delete devices #
Ask an LLM
“How do I permanently remove devices from my application?”
“Can I delete devices matching a query?”
Tell an agent destructive · confirm first
Delete devices matching {query} in {applicationId}.
Permanently remove the devices in {applicationId} matching {query}.
GET /applications/{applicationId}/devices/deviceNames List device names matching a filter · Gets the device names that match the given query. Maximum 1K returned #
Ask an LLM
“Which device names start with a given prefix?”
“Can I get a list of device names matching a query?”
Tell an agent
List device names in {applicationId} starting with {startsWith}.
List device names in {applicationId} matching {query}.
POST /applications/{applicationId}/devices/export Export all device metadata · Creates an export of all device metadata #
Ask an LLM
“How do I download a CSV of every device in my application?”
“Can I get device metadata exported to a file?”
Tell an agent
Export all device metadata for {applicationId}.
Export device metadata for {applicationId} matching {query} to {email}.
POST /applications/{applicationId}/devices/payloadCounts Export payload counts for devices · Creates an export of payload count information for the matching devices #
Ask an LLM
“How many payloads have been received by each device?”
“Can I get payload counts for a time range?”
Tell an agent
Export payload counts for devices in {applicationId}.
Export payload counts for devices matching {query} in {applicationId} from {start} to {end}.
POST /applications/{applicationId}/devices/removeData Remove device data for a time range · Removes all device data for the specified time range. Defaults to all data #
Ask an LLM
“How do I clear all data from devices over a time range?”
“Can I keep connection history when removing device data?”
Tell an agent destructive · confirm first
Remove device data for {query} in {applicationId}.
Remove device data for {query} in {applicationId} from {start} to {end}.
POST /applications/{applicationId}/devices/restore Restore deleted devices · Restore deleted devices #
Ask an LLM
“How do I bring back devices I deleted by mistake?”
“Can I restore deleted devices matching a query?”
Tell an agent
Restore deleted devices matching {query} in {applicationId}.
Bring back the deleted devices in {applicationId} matching {query}.
GET /applications/{applicationId}/devices/tagKeys List unique tag keys across devices · Gets the unique tag keys for devices that match the given query. #
Ask an LLM
“What tag keys are used across my devices?”
“Can I list tag keys starting with a prefix?”
Tell an agent
List unique tag keys in application {applicationId}.
List tag keys in {applicationId} matching {query}.
GET /applications/{applicationId}/devices/tagValues List unique tag values for a key · Gets the unique tag values for the given key for devices that match the given… #
Ask an LLM
“What values are used for a particular tag key?”
“Can I list tag values starting with a prefix?”
Tell an agent
List values for tag key {key} in {applicationId}.
List values for {key} in {applicationId} starting with {startsWith}.
GET /applications/{applicationId}/devices/{deviceId} Get a device's information · Retrieves information on a device #
Ask an LLM
“What attributes and tags does a specific device have?”
“Can I get one device's connection info?”
Tell an agent
Get device {deviceId} in application {applicationId}.
Show the attributes of device {deviceId} in {applicationId}.
PATCH /applications/{applicationId}/devices/{deviceId} Update a device's attributes · Updates information about a device #
Ask an LLM
“How do I rename a device or change its attributes?”
“Can I set tags on one device?”
Tell an agent
Rename device {deviceId} in {applicationId} to {name}.
Set the attributes of device {deviceId} in {applicationId} to {attributes}.
DELETE /applications/{applicationId}/devices/{deviceId} Delete a device · Deletes a device #
Ask an LLM
“How do I remove a single device from my application?”
“Can I delete one device by its ID?”
Tell an agent destructive · confirm first
Delete device {deviceId} from application {applicationId}.
Remove the device {deviceId} in {applicationId}.
GET /applications/{applicationId}/devices/{deviceId}/command Get the last command sent to a device · Retrieve the last known command(s) sent to the device #
Ask an LLM
“What was the most recent command my device received?”
“Can I pull the last known command sent to a device, not the latest status?”
Tell an agent
Get the last command sent to device {device} in app {app}.
Show the most recent command entries sent to device {device} in {app}.
POST /applications/{applicationId}/devices/{deviceId}/command Send a command to one device · Send a command to a device #
Ask an LLM
“How do I reboot a single device?”
“Can I send a custom command to one device?”
Tell an agent
Send command {name} to device {deviceId} in {applicationId}.
Reboot device {deviceId} in {applicationId} with command {name}.
GET /applications/{applicationId}/devices/{deviceId}/commandStream Stream commands sent to a device · Attach to a real time stream of command messages to this device using Server… #
Ask an LLM
“How do I see every command sent to a device in real time?”
“Can I keep the command stream alive with keep-alive messages?”
Tell an agent
Stream commands sent to device {deviceId} in {applicationId}.
Keep the command stream for device {deviceId} in {applicationId} alive every {keepAliveInterval} seconds.
GET /applications/{applicationId}/devices/{deviceId}/compositeState Get a device's composite state over a time range · Retrieve the composite last complete state of the device #
Ask an LLM
“What was the composite state of my device over a specific time window?”
“Can I limit the composite state to certain attributes?”
Tell an agent
Get the composite state of device {device} in app {app}.
Show the composite state of device {device} in app {app} from {start} to {end}.
DELETE /applications/{applicationId}/devices/{deviceId}/data Delete a device's data for a time range · Removes all device data for the specified time range. Defaults to all data #
Ask an LLM
“How do I clear old data from a device?”
“Can I remove all data for a device in one call?”
Tell an agent destructive · confirm first
Remove all data for device {device} in app {app}.
Delete device {device} data in app {app} between {start} and {end}.
POST /applications/{applicationId}/devices/{deviceId}/export Export a device's data · Creates a device data export. Defaults to all data #
Ask an LLM
“How do I export a device's data to a file?”
“Can I get blob data included in the export?”
Tell an agent
Export data for device {device} in app {app}.
Export device {device} data in app {app} from {start} to {end} to {email}.
GET /applications/{applicationId}/devices/{deviceId}/logs List recent log entries for a device · Retrieve the recent log entries about the device #
Ask an LLM
“What has my device been logging recently?”
“Can I see device logs for the last hour?”
Tell an agent
List recent log entries for device {device} in app {app}.
Show device {device} logs in app {app} over the last {duration}.
GET /applications/{applicationId}/devices/{deviceId}/payloadCounts Count payloads a device sent over a time range · Returns payload counts for the time range specified for this device #
Ask an LLM
“How many payloads did my device send in a given period?”
“Can I get a total payload count for a device?”
Tell an agent
Count payloads for device {device} in app {app}.
Count payloads sent by device {device} in app {app} from {start} to {end}.
GET /applications/{applicationId}/devices/{deviceId}/payloadCountsBreakdown Break down a device's payload counts by resolution · Returns payload counts per resolution in the time range specified for this… #
Ask an LLM
“Can I see how many payloads a device sent per minute?”
“What does the payload count breakdown look like for a device?”
Tell an agent
Break down payload counts for device {device} in app {app} by {resolution}.
Show payload counts for device {device} in app {app} from {start} to {end}.
POST /applications/{applicationId}/devices/{deviceId}/setConnectionStatus Set a device's connection status · Set the current connection status of the device #
Ask an LLM
“How do I mark a device as connected or disconnected?”
“Can I set a device's connection status through the API?”
Tell an agent
Set the connection status of device {device} in app {app}.
Mark device {device} in app {app} as connected.
GET /applications/{applicationId}/devices/{deviceId}/state Get a device's last known state · Retrieve the last known state(s) of the device #
Ask an LLM
“What is the most recent state of my device?”
“Can I get the last few state entries for a device?”
Tell an agent
Get the last known state of device {device} in app {app}.
Show the last {limit} state entries for device {device} in app {app}.
POST /applications/{applicationId}/devices/{deviceId}/state Send a device's current state · Send the current state of the device #
Ask an LLM
“How do I report the current state of a device?”
“Can I push a device's state to the platform?”
Tell an agent
Send the current state of device {device} in app {app}.
Report device {device} state to app {app}.
GET /applications/{applicationId}/devices/{deviceId}/stateStream Stream a device's state messages in real time · Attach to a real time stream of state messages from this device using Server… #
Ask an LLM
“Can I get real-time state updates for a device?”
“Is there a stream of state messages for a device?”
Tell an agent
Stream real-time state messages for device {device} in app {app}.
Connect to the state stream of device {device} in app {app} with keep-alive {interval}.

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/losant:losant-devices-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

losant-devices-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Platform Devices API
  version: 1.31.0
  description: User API for accessing platform data
servers:
- url: https://api.losant.com
security:
- bearerAuth: []
tags:


# --- truncated at 32 KB (153 KB total) ---
# Full source: https://artifacts.apis.io/losant/openapi/losant-devices-api-openapi.yml