Need help with your APIs? I offer API discovery, governance & evangelism services. Explore services →
API Evangelist API Evangelist
Discovery
Learnings
Guidance
Toolbox
Alignment
API Evangelist LLC

Cesanta Devices API

Device registration, updates, RPC, and OTA

Cesanta Devices API is one of 4 APIs that Cesanta publishes on the APIs.io network, described by a machine-readable OpenAPI specification.

Tagged areas include Devices. The published artifact set on APIs.io includes an OpenAPI specification and an API reference.

This API exposes 6 operations across 4 paths, and defines 2 schemas. It is described by OpenAPI 3.0.3, at version v2.

Requests are made against a single base URL, https://dash.mongoose-os.com/api/v2.

6 operations 4 paths 2 schemas 1 DELETE1 GET4 POST

Metadata

The identity and technical contract details declared by the specification.

Specification
OpenAPI 3.0.3
API Version
v2
Base URL
https://dash.mongoose-os.com/api/v2
Authentication
HTTP Bearer
Resource Areas
1

Authentication & Security 1

Cesanta Devices API declares 1 security scheme for authenticating requests. It accepts HTTP bearer tokens (bearerAuth). By default, every request must be authenticated.

  • bearerAuth — mDash API key sent as an HTTP bearer token.

Paths & Operations 6

Across 4 paths, the API surfaces 6 operations — 1 DELETE, 1 GET, 4 POST. Each is listed below with its method, path, parameters, and response codes.

Devices 6

Device registration, updates, RPC, and OTA

GET
/devices
List all registered devices
listDevices → 200401
POST
/devices
Register a new device
registerDevice → 200401
POST
/devices/{id}
Change device properties
updateDevice 1 param body → 200401
DELETE
/devices/{id}
Delete a device
deleteDevice 1 param → 200401
POST
/devices/{id}/rpc/{func}
Call a device RPC function
callDeviceRpc 2 params body → 200401
POST
/devices/{id}/ota
Perform a device OTA update
deviceOta 1 param body → 200401

Schemas 2

The contract defines 2 schemas that model the data the API accepts and returns. The most detailed are Device (4 properties), DeviceUpdate (3 properties). Each schema is shown below with its type and property counts.

DeviceUpdate
object
Mutable device properties. All keys optional.
3 properties
Device
object
An IoT device registered with mDash.
4 properties

Specification

The full machine-readable OpenAPI contract behind this narrative.

Source

cesanta-devices-api-openapi.yml Raw ↑

Other APIs Cesanta publishes across the network.

Cesanta Data API
Cesanta Keys API
Cesanta Logs API