SmartTouch Device API (1.0.0)

Download OpenAPI specification:

Manage IoT devices registered with the SmartTouch Cloud Platform.

The Device API lets you list, inspect, update, and deregister devices. A device is automatically registered the first time its Remote Access Agent connects to the session broker using a valid TLS certificate.

Authentication

All endpoints require a bearer token obtained via stctl auth token.

Base URL

https://api.<your-platform-domain>/v1

Related APIs

Devices

Device registry — list, get, update, and deregister devices

List devices

Returns all devices visible to the authenticated user. Supports filtering by agent status and fleet label.

Authorizations:
bearerAuth
query Parameters
status
string
Enum: "online" "offline" "unknown"

Filter devices by agent status

fleet
string
Example: fleet=factory-floor

Filter devices by fleet label

page
integer >= 1
Default: 1

Page number (1-based)

per_page
integer [ 1 .. 200 ]
Default: 50

Number of results per page

Responses

Response samples

Content type
application/json
{
  • "status": 200,
  • "data": [
    ],
  • "meta": {
    }
}

Get a device

Returns full details for a single device, including certificate metadata and remote access configuration.

Authorizations:
bearerAuth
path Parameters
deviceId
required
string
Example: sensor-001

Unique device identifier (e.g., sensor-001)

Responses

Response samples

Content type
application/json
{
  • "status": 200,
  • "data": {
    }
}

Update device metadata

Update the display name or fleet label of a device. Certificate and agent configuration cannot be changed through this endpoint.

Authorizations:
bearerAuth
path Parameters
deviceId
required
string
Example: sensor-001

Unique device identifier (e.g., sensor-001)

Request Body schema: application/json
required
display_name
string

New human-readable name for the device

fleet
string or null

Fleet label to assign. Set to null to remove fleet membership.

Responses

Request samples

Content type
application/json
{
  • "display_name": "Temperature Sensor 001 (Revised)",
  • "fleet": "assembly-line"
}

Response samples

Content type
application/json
{
  • "status": 200,
  • "data": {
    }
}

Deregister a device

Permanently removes a device from the platform registry. Any open sessions to this device are closed immediately. This action cannot be undone. Requires the administrator role.

Authorizations:
bearerAuth
path Parameters
deviceId
required
string
Example: sensor-001

Unique device identifier (e.g., sensor-001)

Responses

Response samples

Content type
application/json
{
  • "error": "unauthorized",
  • "message": "Bearer token is missing or has expired.",
  • "status": 401
}

Agent Status

Remote Access Agent connectivity state for a device

Get agent status

Returns the current connection state of the Remote Access Agent on the device. Use this endpoint to verify the agent is online before opening a session.

Authorizations:
bearerAuth
path Parameters
deviceId
required
string
Example: sensor-001

Unique device identifier (e.g., sensor-001)

Responses

Response samples

Content type
application/json
{
  • "status": 200,
  • "data": {
    }
}