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.
Parameters
Idempotency-KeystringheaderResending with the same key returns the first response (24 h). Use it for retries.
Request body
devicesobject[]requiredUp to 1000 devices (a shipping list).
≤ 1000 items
devices[].serialstringrequiredDevice serial number. Letters, digits and . - _ (max 64). Becomes the certificate CN unless the profile uses rtuId.
devices[].deviceTypestringrequiredDevice type. Must be one your vendor is approved for.
rtu·ppc·moduledevices[].chipIdstringSecure element chip ID in hex (e.g. ATECC608 serial). Written to SAN as urn:solarize:chip:{ID}. Unique across devices.
devices[].rtuIdstringRTU ID (digits). Required for the RTU profile: the certificate CN becomes rtu-{RTU ID}. Unique across all vendors.
devices[].modelstringProduct model name.
≤ 60
devices[].notestringFree text (lot, factory line, ...).
≤ 200
Response 201
16 fields
createdintegerNewly registered.
-9007199254740991–9007199254740991
unchangedintegerAlready registered with the same values (safe to resend a list).
-9007199254740991–9007199254740991
devicesobject[]devices[].serialstringdevices[].deviceTypestringrtu·ppc·moduledevices[].chipIdstring | nulldevices[].rtuIdstring | nulldevices[].modelstring | nulldevices[].notestring | nulldevices[].statusstringregistered·shipped·active·returned·retireddevices[].certificateobject | nullLatest certificate of the device.
devices[].certificate.serialstringdevices[].certificate.statusstringvalid·revokeddevices[].certificate.notAfterstringISO 8601 time in UTC.
devices[].createdAtstringISO 8601 time in UTC.
devices[].updatedAtstringISO 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
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 } ] }'{ "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.
Parameters
statusstringquerydeviceTypestringqueryqstringquerySerial prefix, chip ID or RTU ID.
limitintegerqueryPage size.
cursorstringquerynextCursor from the previous page.
Response 200
15 fields
dataobject[]data[].serialstringdata[].deviceTypestringrtu·ppc·moduledata[].chipIdstring | nulldata[].rtuIdstring | nulldata[].modelstring | nulldata[].notestring | nulldata[].statusstringregistered·shipped·active·returned·retireddata[].certificateobject | nullLatest certificate of the device.
data[].certificate.serialstringdata[].certificate.statusstringvalid·revokeddata[].certificate.notAfterstringISO 8601 time in UTC.
data[].createdAtstringISO 8601 time in UTC.
data[].updatedAtstringISO 8601 time in UTC.
nextCursorstring | nullPass 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
curl "$PKI_API/v1/devices" \ --cert client.crt --key client.key \ -H "Authorization: Bearer $PKI_API_KEY"{ "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.
Parameters
serialstringpathrequiredSerial.
Response 200
13 fields
serialstringdeviceTypestringrtu·ppc·modulechipIdstring | nullrtuIdstring | nullmodelstring | nullnotestring | nullstatusstringregistered·shipped·active·returned·retiredcertificateobject | nullLatest certificate of the device.
certificate.serialstringcertificate.statusstringvalid·revokedcertificate.notAfterstringISO 8601 time in UTC.
createdAtstringISO 8601 time in UTC.
updatedAtstringISO 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
curl "$PKI_API/v1/devices/SN-0001" \ --cert client.crt --key client.key \ -H "Authorization: Bearer $PKI_API_KEY"{ "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.
Parameters
serialstringpathrequiredSerial.
Request body
statusstringNew status. retired is final and revokes the valid certificate (cessationOfOperation).
registered·shipped·active·returned·retiredchipIdstring | nullSecure element chip ID in hex (e.g. ATECC608 serial). Written to SAN as urn:solarize:chip:{ID}. Unique across devices.
rtuIdstring | nullRTU 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
serialstringdeviceTypestringrtu·ppc·modulechipIdstring | nullrtuIdstring | nullmodelstring | nullnotestring | nullstatusstringregistered·shipped·active·returned·retiredcertificateobject | nullLatest certificate of the device.
certificate.serialstringcertificate.statusstringvalid·revokedcertificate.notAfterstringISO 8601 time in UTC.
createdAtstringISO 8601 time in UTC.
updatedAtstringISO 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
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 }'{ "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"}