How do I rotate and copy a device key?
Every device has an API key that proves to the platform that its readings are genuine. Here you issue a new key for a device, for example if the key is lost or you think it leaked.
Before you start
Section titled “Before you start”- Role needed: Admin or Owner.
- Where it is available: web.
- Own key or shared key: each device card has a badge: own key (the device has its own key) or shared key (it uses the shared master key). Rotating gives the device its own key.
How to get there
Section titled “How to get there”- Sign in (see How do I sign in to my farm?).
- Press Devices in the side menu. On a phone, it is in the bar at the bottom of the screen.
- Find the device card under “📡 Devices”. The Rotate Key button is in the row of buttons below it.

- Press Rotate Key on the device card.

- A confirmation asks if you want to issue a brand-new key. Confirm.
- A window shows the new key. Press Copy API key and keep it somewhere safe. It will not be shown again.

- Flash the device with the new key (upload the program to the board again).
What happens to the old key?
Section titled “What happens to the old key?”Rotating never cuts the device off. The old key and the shared master key keep working until you flash the device with the new key, so it does not go quiet in the meantime.
- Copy the key before closing the window. If you closed it, rotate again.
- If automatic copy fails, select the key in the field and copy it by hand.
- Do not share the key in public messages or screenshots.
Common problems
Section titled “Common problems”I closed the window before copying the key. Rotate the key again to get a new one.
I do not see the Rotate button. Your role is Viewer. The button shows only for Admins and the Owner.
I rotated the key and the device still sends. That is expected: the old key keeps working until you flash the new one.
Did this article answer your question?
Glad it helped, thank you!