Skip to content

Errors

Error responses are { statusCode, code, message }. Branch on code in programs and show message to people. The parenthesis at the end of message names the field or object (e.g. devices.3.serial).

Status What to do
400 Fix the request and send it again. The same request gives the same result.
401 Check the key and client certificate. If revoked or expired, create a new key in the portal.
403 Check the key’s scopes, the vendor status (suspended) and the approved device types.
404 Check the serial or ID. Objects of other vendors also return 404.
409 The current state does not allow it (already exists, pending, revoked). Read the state and decide.
422 The same Idempotency-Key was used for a different request. Use a new key.
429 Retry after Retry-After seconds.
500, 503 Retry later with the same Idempotency-Key. Contact us if it persists.
HTTPcodeMessage
400INVALID_CSRThe CSR could not be read or does not meet the profile (P-256, signature).
400PROFILE_NOT_ALLOWEDThis profile cannot be used for the device.
400RTU_ID_REQUIREDThe RTU profile needs rtuId on the device (CN rtu-{RTU ID}).
400VALIDATIONThe request is not valid.
401API_KEY_EXPIREDThe API key has expired.
401API_KEY_REQUIREDSend the API key in the Authorization: Bearer header.
401API_KEY_REVOKEDThe API key has been revoked.
401CLIENT_CERT_MISMATCHThe client certificate is not the one bound to this API key.
401CLIENT_CERT_REQUIREDA client certificate (mTLS) is required.
401CLIENT_CERT_REVOKEDThe client certificate is revoked or expired.
401INVALID_API_KEYThe API key is not valid.
403DEVICE_TYPE_NOT_APPROVEDThe vendor is not approved for this device type.
403INSUFFICIENT_SCOPEThe API key does not have the scope for this call.
403VENDOR_INACTIVEThe vendor is not approved.
403VENDOR_SUSPENDEDThe vendor is suspended. Reads and revocations still work.
404BATCH_NOT_FOUNDNo batch with this ID.
404CERTIFICATE_NOT_FOUNDNo certificate with this serial for your vendor.
404DEVICE_NOT_FOUNDNo device with this serial in your registry.
404NOT_FOUNDNot found.
404REQUEST_NOT_FOUNDNo issuance request with this ID.
409CERTIFICATE_EXISTSThe device already has a valid certificate. Renew it instead.
409CERTIFICATE_REVOKEDThe certificate is already revoked.
409DEVICE_EXISTSA device with this serial is already registered with different values.
409DEVICE_INACTIVEThe device is returned or retired.
409DEVICE_LOCKEDchipId and rtuId cannot change while the device has a valid certificate.
409DUPLICATE_CHIPThis chip ID is already used by another device or a valid certificate.
409IDEMPOTENCY_IN_PROGRESSA request with this Idempotency-Key is still being processed.
409REQUEST_PENDINGThe device already has a request waiting for approval.
409RTU_ID_IN_USEThis RTU ID is already used by another device or a valid certificate.
422IDEMPOTENCY_KEY_REUSEDThis Idempotency-Key was used with a different request.
429RATE_LIMITEDToo many requests. Retry after the Retry-After seconds.
500INTERNALInternal error.
503NOT_CONFIGUREDIssuance is not available in this environment right now.

Without any client certificate the TLS handshake fails and there is no response. A certificate from a CA the API does not trust (such as a device certificate) gets 403 Forbidden from the front door (body {"message":"Forbidden"}, no code).