Sensorclouds
API Access

Creating & Managing API Keys

Create a key with the right scopes, store it safely, and revoke it when it's no longer needed

ADMIN

Before you begin

  • You need the Admin role.
  • Your plan must include API access. If it doesn't, the API Keys page isn't available. See Tenant Profiles.

Creating a key

Open Integrations and go to API Keys.

Click Create API Key.

Enter a Key name that says who uses it, for example "Power BI - energy reports".

Choose Scopes: what the key may read. Pick the minimum your integration needs.

ScopeLets the key read
telemetry:readLatest and historical readings
devices:readThe device list and details
alarms:readAlarm rules

Choose Application access: All applications, or limit the key to a subset (pick at least one application).

Choose an Expiry: Never expires, 30 days, 90 days, 1 year, or Custom date.

Click Create API Key.

The Your new API key dialog shows the secret, a Copy button, and a Quick test command you can run in a terminal to confirm the key works. Click Done when you've stored it.

The secret is shown only once. Copy it into a secrets manager immediately. If you lose it, rotate the key.

Least-privilege examples

UseScopesApplication access
Energy dashboard in Power BItelemetry:readEnergy application only
Asset inventory syncdevices:readAll
Audit of alarm configurationalarms:readAll

The keys table

ColumnShows
NameYour label
KeyThe key's visible prefix, so you can tell keys apart
ScopesWhat it can read
ApplicationsAll, or the chosen applications
StatusActive, Rotating (an old secret still works for a while), or Revoked
Last usedIts most recent request
Errors (24h)Failed requests in the last day, so you can spot a broken integration
ExpiresWhen it stops working
CreatedWhen it was created
ActionsRotate and Revoke

Revoking a key

Click Revoke on the key's row.

Confirm in the Revoke API key dialog.

Revocation is immediate and permanent: requests with that key get 401 from then on. To give the integration access again, create a new key.

Revoke keys that haven't been used for months. Every unused key is a risk with no benefit.

Troubleshooting

SymptomCauseFix
There's no API Keys pageYour plan doesn't include API access, or you aren't an AdminAsk your administrator
The integration gets 401The key was revoked or has expired, or the header is wrongCheck Status and Expires, then the request header. See Using Your API Key
The integration gets 403The key lacks a scope, or the device is outside its application accessCreate a key with the right scope and applications
Errors (24h) keeps risingA system is using a broken or outdated keyFind it by the key name and update it

Next Steps

On this page