Skip to main content
The Thing Identity public API lets your own systems work with your organization’s data without going through the dashboard. It is a machine-to-machine API: you authenticate with client credentials, not with a user account.
1

Create an API client

In the dashboard, go to Organization and open API. Create a client, give it a name you will recognise in the list later, and grant it the write:codes scope.You get a client ID (prefixed ti_client_) and a client secret. The secret is shown only at creation time, so copy it straight into your secret manager. If you lose it, delete the client and create a new one.
API clients require an active subscription on the Starter plan or above.
2

Exchange the credentials for an access token

The token is valid for one hour. See Authentication for the error responses and for how scopes work.
3

Generate a code

barcodeText is the payload to hand to your 2D barcode renderer, hri is the human readable interpretation printed under the symbol. Full field reference in Generate codes.
The examples send Accept: application/vnd.thingidentity.public.v1+json to pin the API version. It is optional, application/json and a plain wildcard work as well, but pinning it means a future v2 cannot reshape your responses. See API conventions.

API conventions

Base URL, media types, error format and status codes.

Generate codes

Every field of POST /codes and what makes a definition valid.