Skip to content

Devices

Register a shipping list, look up devices and change their state. See Conventions for request formats and shared rules.

Register devices

POST/v1/devices

Adds devices to your registry, up to 1000 at a time (a shipping list). All or nothing: if one item fails, nothing is saved and the error names the item. Resending a device with the same values is not an error.

Scope
devices.write
Idempotency-Key
supported
Suspended vendors
blocked (403 VENDOR_SUSPENDED)

Parameters

  • Idempotency-Keystringheader

    Resending with the same key returns the first response (24 h). Use it for retries.

Request body

  • devicesobject[]required

    Up to 1000 devices (a shipping list).

    ≤ 1000 items

  • devices[].serialstringrequired

    Device serial number. Letters, digits and . - _ (max 64). Becomes the certificate CN unless the profile uses rtuId.

  • devices[].deviceTypestringrequired

    Device type. Must be one your vendor is approved for.

    rtu · ppc · module

  • devices[].chipIdstring

    Secure element chip ID in hex (e.g. ATECC608 serial). Written to SAN as urn:solarize:chip:{ID}. Unique across devices.

  • devices[].rtuIdstring

    RTU ID (digits). Required for the RTU profile: the certificate CN becomes rtu-{RTU ID}. Unique across all vendors.

  • devices[].modelstring

    Product model name.

    ≤ 60

  • devices[].notestring

    Free text (lot, factory line, ...).

    ≤ 200

Response 201

16 fields
  • createdinteger

    Newly registered.

    -9007199254740991–9007199254740991

  • unchangedinteger

    Already registered with the same values (safe to resend a list).

    -9007199254740991–9007199254740991

  • devicesobject[]
  • devices[].serialstring
  • devices[].deviceTypestring

    rtu · ppc · module

  • devices[].chipIdstring | null
  • devices[].rtuIdstring | null
  • devices[].modelstring | null
  • devices[].notestring | null
  • devices[].statusstring

    registered · shipped · active · returned · retired

  • devices[].certificateobject | null

    Latest certificate of the device.

  • devices[].certificate.serialstring
  • devices[].certificate.statusstring

    valid · revoked

  • devices[].certificate.notAfterstring

    ISO 8601 time in UTC.

  • devices[].createdAtstring

    ISO 8601 time in UTC.

  • devices[].updatedAtstring

    ISO 8601 time in UTC.

Errors

VALIDATIONCLIENT_CERT_REQUIREDAPI_KEY_REQUIREDINVALID_API_KEYAPI_KEY_REVOKEDAPI_KEY_EXPIREDCLIENT_CERT_MISMATCHCLIENT_CERT_REVOKEDDEVICE_TYPE_NOT_APPROVEDVENDOR_SUSPENDEDVENDOR_INACTIVEINSUFFICIENT_SCOPEDEVICE_EXISTSDUPLICATE_CHIPRTU_ID_IN_USERATE_LIMITED

Request
curl -X POST "$PKI_API/v1/devices" \
--cert client.crt --key client.key \
-H "Authorization: Bearer $PKI_API_KEY" \
-H "Idempotency-Key: $(uuidgen)" \
-H "Content-Type: application/json" \
-d '{
"devices": [
{
"serial": "SN-0001",
"deviceType": "module",
"chipId": "0123A1B2C3D4E5F6EE",
"rtuId": null,
"model": "SM-100",
"note": null
}
]
}'
Response 201
{
"created": -9007199254740991,
"unchanged": -9007199254740991,
"devices": [
{
"serial": "SN-0001",
"deviceType": "module",
"chipId": "0123A1B2C3D4E5F6EE",
"rtuId": null,
"model": "SM-100",
"note": null,
"status": "registered",
"certificate": {
"serial": "SN-0001",
"status": "valid",
"notAfter": "2026-12-01T09:00:00.000Z"
},
"createdAt": "2026-12-01T09:00:00.000Z",
"updatedAt": "2026-12-01T09:00:00.000Z"
}
]
}

List devices

GET/v1/devices

Your device registry, ordered by serial.

Scope
devices.read

Parameters

  • statusstringquery
  • deviceTypestringquery
  • qstringquery

    Serial prefix, chip ID or RTU ID.

  • limitintegerquery

    Page size.

  • cursorstringquery

    nextCursor from the previous page.

Response 200

15 fields
  • dataobject[]
  • data[].serialstring
  • data[].deviceTypestring

    rtu · ppc · module

  • data[].chipIdstring | null
  • data[].rtuIdstring | null
  • data[].modelstring | null
  • data[].notestring | null
  • data[].statusstring

    registered · shipped · active · returned · retired

  • data[].certificateobject | null

    Latest certificate of the device.

  • data[].certificate.serialstring
  • data[].certificate.statusstring

    valid · revoked

  • data[].certificate.notAfterstring

    ISO 8601 time in UTC.

  • data[].createdAtstring

    ISO 8601 time in UTC.

  • data[].updatedAtstring

    ISO 8601 time in UTC.

  • nextCursorstring | null

    Pass as cursor for the next page. null on the last page.

Errors

VALIDATIONCLIENT_CERT_REQUIREDAPI_KEY_REQUIREDINVALID_API_KEYAPI_KEY_REVOKEDAPI_KEY_EXPIREDCLIENT_CERT_MISMATCHCLIENT_CERT_REVOKEDVENDOR_INACTIVEINSUFFICIENT_SCOPERATE_LIMITED

Request
curl "$PKI_API/v1/devices" \
--cert client.crt --key client.key \
-H "Authorization: Bearer $PKI_API_KEY"
Response 200
{
"data": [
{
"serial": "SN-0001",
"deviceType": "module",
"chipId": "0123A1B2C3D4E5F6EE",
"rtuId": null,
"model": "SM-100",
"note": null,
"status": "registered",
"certificate": {
"serial": "SN-0001",
"status": "valid",
"notAfter": "2026-12-01T09:00:00.000Z"
},
"createdAt": "2026-12-01T09:00:00.000Z",
"updatedAt": "2026-12-01T09:00:00.000Z"
}
],
"nextCursor": null
}

Get a device

GET/v1/devices/{serial}

One device and its latest certificate.

Scope
devices.read

Parameters

  • serialstringpathrequired

    Serial.

Response 200

13 fields
  • serialstring
  • deviceTypestring

    rtu · ppc · module

  • chipIdstring | null
  • rtuIdstring | null
  • modelstring | null
  • notestring | null
  • statusstring

    registered · shipped · active · returned · retired

  • certificateobject | null

    Latest certificate of the device.

  • certificate.serialstring
  • certificate.statusstring

    valid · revoked

  • certificate.notAfterstring

    ISO 8601 time in UTC.

  • createdAtstring

    ISO 8601 time in UTC.

  • updatedAtstring

    ISO 8601 time in UTC.

Errors

CLIENT_CERT_REQUIREDAPI_KEY_REQUIREDINVALID_API_KEYAPI_KEY_REVOKEDAPI_KEY_EXPIREDCLIENT_CERT_MISMATCHCLIENT_CERT_REVOKEDVENDOR_INACTIVEINSUFFICIENT_SCOPEDEVICE_NOT_FOUNDRATE_LIMITED

Request
curl "$PKI_API/v1/devices/SN-0001" \
--cert client.crt --key client.key \
-H "Authorization: Bearer $PKI_API_KEY"
Response 200
{
"serial": "SN-0001",
"deviceType": "module",
"chipId": "0123A1B2C3D4E5F6EE",
"rtuId": null,
"model": "SM-100",
"note": null,
"status": "registered",
"certificate": {
"serial": "SN-0001",
"status": "valid",
"notAfter": "2026-12-01T09:00:00.000Z"
},
"createdAt": "2026-12-01T09:00:00.000Z",
"updatedAt": "2026-12-01T09:00:00.000Z"
}

Update a device

PATCH/v1/devices/{serial}

Changes status (registered → shipped → active, returned, retired), model or note. retired is final and revokes the valid certificate with cessationOfOperation. chipId and rtuId can change only while the device has no valid certificate.

Scope
devices.write
Suspended vendors
blocked (403 VENDOR_SUSPENDED)

Parameters

  • serialstringpathrequired

    Serial.

Request body

  • statusstring

    New status. retired is final and revokes the valid certificate (cessationOfOperation).

    registered · shipped · active · returned · retired

  • chipIdstring | null

    Secure element chip ID in hex (e.g. ATECC608 serial). Written to SAN as urn:solarize:chip:{ID}. Unique across devices.

  • rtuIdstring | null

    RTU ID (digits). Required for the RTU profile: the certificate CN becomes rtu-{RTU ID}. Unique across all vendors.

  • modelstring | null

    ≤ 60

  • notestring | null

    ≤ 200

Response 200

13 fields
  • serialstring
  • deviceTypestring

    rtu · ppc · module

  • chipIdstring | null
  • rtuIdstring | null
  • modelstring | null
  • notestring | null
  • statusstring

    registered · shipped · active · returned · retired

  • certificateobject | null

    Latest certificate of the device.

  • certificate.serialstring
  • certificate.statusstring

    valid · revoked

  • certificate.notAfterstring

    ISO 8601 time in UTC.

  • createdAtstring

    ISO 8601 time in UTC.

  • updatedAtstring

    ISO 8601 time in UTC.

Errors

VALIDATIONCLIENT_CERT_REQUIREDAPI_KEY_REQUIREDINVALID_API_KEYAPI_KEY_REVOKEDAPI_KEY_EXPIREDCLIENT_CERT_MISMATCHCLIENT_CERT_REVOKEDVENDOR_SUSPENDEDVENDOR_INACTIVEINSUFFICIENT_SCOPEDEVICE_NOT_FOUNDDEVICE_INACTIVEDEVICE_LOCKEDDUPLICATE_CHIPRTU_ID_IN_USERATE_LIMITED

Request
curl -X PATCH "$PKI_API/v1/devices/SN-0001" \
--cert client.crt --key client.key \
-H "Authorization: Bearer $PKI_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"status": "registered",
"chipId": "0123A1B2C3D4E5F6EE",
"rtuId": null,
"model": "SM-100",
"note": null
}'
Response 200
{
"serial": "SN-0001",
"deviceType": "module",
"chipId": "0123A1B2C3D4E5F6EE",
"rtuId": null,
"model": "SM-100",
"note": null,
"status": "registered",
"certificate": {
"serial": "SN-0001",
"status": "valid",
"notAfter": "2026-12-01T09:00:00.000Z"
},
"createdAt": "2026-12-01T09:00:00.000Z",
"updatedAt": "2026-12-01T09:00:00.000Z"
}