Docs / Contact / entities/api-keys
Entity API Keys
Each entity has one API key, issued automatically when the entity is created. The key authenticates the entity when it sends messages (HTTP or MQTT) and connects to Contact.
Viewing the key
The Connection Instructions dialog opens once, immediately after you create the entity. It is the only place the secret is ever shown.
- Copy the API Key (the secret) from the dialog before dismissing it
- Copy the API Key ID too — the public identifier used as the MQTT username
The secret is masked until you reveal it, and cannot be reopened later.
If the dialog is already gone, the secret is unrecoverable — rotate the key instead.
The secret is shown once at creation. If you lose it, rotate the key (below) and re-deploy the entity with the new secret.
Rotating
Rotate from Access Control → API Keys:
- Find the entity's key in the list
- Click the rotate action
- Copy the new secret immediately
Access Control → API Keys, where keys are rotated, disabled, and revoked.
Rotation invalidates the old secret right away.
Revoking
Deleting the entity revokes its API key. You can also disable a key from Access Control → API Keys without deleting the entity.
Account-level API keys
If you want a key for your own automation or scripts (not bound to an entity), create one under Access Control → API Keys → Create API Key. Account keys carry an IAM role and can call any endpoint that role permits, but they cannot post entity messages; only entity-bound keys can do that.
Tendrl