API integrations

Credentials for software that calls the Things5 API without a person.

An API integration is a set of credentials for software that calls the Things5 API on its own: a factory station, a server-to-server integration, a scheduled job. Use it instead of a person's username and password.

Open Admin › API integrations (organization administrators).

API integrations

Create an integration

  1. New integration and give it a name (for example the station it is for).
  2. Copy the Client ID and the Client secret: the secret is shown only once. The dialog also shows the token address and an example request.
  3. Give it Permissions: the groups and the role on each. A new integration has no permissions.

Use it from your software

  1. Request an access token from the Things5 authentication server, at the token address shown in the dialog:
curl -X POST 'https://auth.things5.digital/auth/realms/{realm-id}/protocol/openid-connect/token' \
  -d grant_type=client_credentials \
  -d client_id='{client_id}' \
  -d client_secret='{client_secret}'
  1. Send the access_token of the response in the Authorization header of every API call:
curl 'https://api.things5.digital/v1/organizations' \
  -H 'Authorization: Bearer {access_token}'

The token is valid for 5 minutes and has no refresh token: when it expires (401), request a new one with the same credentials. If your organization logs in on its own domain, the token address uses that domain. Details: Get access token (API integration) and Authentication.

Permissions

The integration sees and does only what its roles allow on the machine groups it belongs to, like a user: with no groups it sees no machines. Change them at any time with Permissions.

Manage

  • New secret creates a new secret; the old one stops working immediately. Update the software with the new secret.
  • Revoke deletes the integration; software using it stops working immediately, including the tokens it already has.

Create one integration per station or system, so you can revoke one without touching the others. Keep the secret on a server, never in a browser app or on a device: see Secure device provisioning.

Why not a username and password

API access with a person's username and password is being phased out: from December 1, 2026 no new API users can be created, and on June 30, 2027 it is switched off. It also cannot work with two-factor authentication and stops working when that person leaves. Move existing scripts and stations to API integrations.