API tokens and device certificates
Available
How a system or a device proves who it is to the API.
Systems use an API token. A tenant admin creates it in the admin console (Settings, API tokens) with a name, a role (tenant_admin, operator or auditor) and an optional expiry. The token (agt_…) is shown once; only its hash is stored. Send it as Authorization: Bearer agt_…. A revoked or expired token is refused with 401.
curl -sS "https://<host>/v1/lots?limit=10" \
-H "Authorization: Bearer $CROPPATH_TOKEN"Give each partner system a token of its own, named after it, and revoke the token when the integration ends.
Devices sign. Every device signs each envelope with its own P-256 key (ES256 over canonical JSON), and the backend checks the signature against the keys registered for that device (POST /v1/keys). In production the private key stays in a secure element.
A device that sends over MQTT also needs a short-lived X.509 client certificate, issued by the platform's certificate authority on that same key from a certificate signing request (CSR) whose common name is the device's id. The SDK renews the certificate before it expires; ask the platform operator to issue the first one.