Losant Devices API

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

Operations 30

GET /applications/{applicationId}/devices Returns the devices for an application #
POST /applications/{applicationId}/devices Create a new device for an application #
PATCH /applications/{applicationId}/devices Update the fields of one or more devices #
GET /applications/{applicationId}/devices/attributeNames Gets the attribute names that match the given query. Maximum 1K returned #
POST /applications/{applicationId}/devices/command Send a command to multiple devices #
GET /applications/{applicationId}/devices/compositeState Retrieve the composite last complete state of the matching devices #
POST /applications/{applicationId}/devices/delete Delete devices #
GET /applications/{applicationId}/devices/deviceNames Gets the device names that match the given query. Maximum 1K returned #
POST /applications/{applicationId}/devices/export Creates an export of all device metadata #
POST /applications/{applicationId}/devices/payloadCounts Creates an export of payload count information for the matching devices #
POST /applications/{applicationId}/devices/removeData Removes all device data for the specified time range. Defaults to all data #
POST /applications/{applicationId}/devices/restore Restore deleted devices #
GET /applications/{applicationId}/devices/tagKeys Gets the unique tag keys for devices that match the given query. #
GET /applications/{applicationId}/devices/tagValues Gets the unique tag values for the given key for devices that match the given… #
GET /applications/{applicationId}/devices/{deviceId} Retrieves information on a device #
PATCH /applications/{applicationId}/devices/{deviceId} Updates information about a device #
DELETE /applications/{applicationId}/devices/{deviceId} Deletes a device #
GET /applications/{applicationId}/devices/{deviceId}/command Retrieve the last known command(s) sent to the device #
POST /applications/{applicationId}/devices/{deviceId}/command Send a command to a device #
GET /applications/{applicationId}/devices/{deviceId}/commandStream Attach to a real time stream of command messages to this device using Server… #
GET /applications/{applicationId}/devices/{deviceId}/compositeState Retrieve the composite last complete state of the device #
DELETE /applications/{applicationId}/devices/{deviceId}/data Removes all device data for the specified time range. Defaults to all data #
POST /applications/{applicationId}/devices/{deviceId}/export Creates a device data export. Defaults to all data #
GET /applications/{applicationId}/devices/{deviceId}/logs Retrieve the recent log entries about the device #
GET /applications/{applicationId}/devices/{deviceId}/payloadCounts Returns payload counts for the time range specified for this device #
GET /applications/{applicationId}/devices/{deviceId}/payloadCountsBreakdown Returns payload counts per resolution in the time range specified for this… #
POST /applications/{applicationId}/devices/{deviceId}/setConnectionStatus Set the current connection status of the device #
GET /applications/{applicationId}/devices/{deviceId}/state Retrieve the last known state(s) of the device #
POST /applications/{applicationId}/devices/{deviceId}/state Send the current state of the device #
GET /applications/{applicationId}/devices/{deviceId}/stateStream Attach to a real time stream of state messages from this device using Server… #

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