octoalerts

How we protect your API key

If you link your Octopus account, you trust us with a key to it. This is what we do with that key, and what we can't promise. Last updated 6 December 2026.

What the key is

Octopus gives every customer an API key: a long code that starts with sk_live_. It lets a computer program read your Octopus account without your password. Anyone who has it can see your name, address, meters, tariffs and half-hourly use. Octopus doesn't publish a full list of what else a key can do, so treat it like a password.

It can do more than read your use. Through Octopus's other programming interface (its GraphQL API), a key can reach your payment details, including your Direct Debit and bank details, and can change your payments, such as your Direct Debit amount or date. We never use that interface and never ask for any of those details. That is why we lock your key the moment you save it, and why making a new key at Octopus matters: it stops the old one working, so a stolen copy becomes useless.

You'll find yours on the Octopus website under Personal details, API access.

What we use it for

Only to read your meters, your tariffs and your half-hourly readings, plus anything else you chose to share when you linked (such as gas or export readings): once when you link, then once each morning to fetch your newest readings. We don't use it for anything else, and we only ever send it to Octopus. If you ask us to set your region from your address, the postcode is looked up with Octopus's public tariff service, without your key.

It's locked the moment you save it

When you press "Lock and link", our website locks your key straight away, before it is stored anywhere. We use public-key encryption (a "sealed box", from a well-known library called libsodium). It works like a post box: anyone can put a letter in, but only the person with the post box key can take one out.

  • Our website can only put keys in. It doesn't have the key that opens them.
  • Each locked key names the OctoAlerts account it belongs to, so it can't be opened for anyone else.
  • On our server, the database login our website uses isn't allowed to read the locked keys at all.

Only one small service can unlock it

A separate background program, which we call the key worker, holds the opening key. It runs under its own user on our server, with its own database login. It has no web address and doesn't listen for connections, so nothing can call it directly. It opens your key only while it asks Octopus for your data, and it refuses to send the key anywhere except Octopus's own web addresses.

The opening key is a file that only the key worker can read. It isn't in our database, our code or our database backups.

Where your key never goes

  • We never show it again. You'll only see its last four characters, so you can recognise it.
  • We never put it in a web address, an email or a log. As a safety net, our logs blot out anything that looks like a key.
  • We don't keep your name or address, even though the key could fetch them. If you ask us to set your region from your address, we read the postcode once and keep only the region.
  • We never call Octopus's GraphQL API, so we never see your payment or bank details and never change your payments.
  • If Octopus doesn't accept your key, or can't be reached to check it, we delete it. If Octopus later stops accepting it, we delete it then.

Proving it's you

To link an account you must have confirmed your email address and type your OctoAlerts password again. Tries are limited to five an hour, so this form can't be used to guess your password.

Deleting it

"Disconnect and delete" on the link page deletes your key, your Octopus account number, your meters, tariffs and readings from our database straight away. Deleting your OctoAlerts account does the same.

Our nightly database backups are encrypted, the key that opens them isn't kept on our server, and each one is deleted after 90 days. A locked API key inside a backup still needs the key worker's opening key, which is never in a backup.

To be completely sure, make a new key in your Octopus account. The old one then stops working everywhere, including any copy anyone might have.

What we can't promise

No website can promise perfect security. These are the risks that remain:

  • Someone who took full control of our server could read the opening key and unlock the keys stored there. We've made that as hard as we can, but we can't rule it out.
  • Someone who took over our website could copy new keys as people type them in, before they're locked.
  • Your key travels to us over an encrypted (HTTPS) connection. Like every site that uses Cloudflare, which carries our traffic and protects us from attacks, that connection is decrypted at Cloudflare and encrypted again on its way to our server.

If any of that worries you, you don't have to link. You can compare tariffs with your yearly use from a bill instead, and no key is needed. If you have linked, you can disconnect at any time.

Comparing without giving us your key

You can compare tariffs on your own readings without linking. Upload a file of your readings, and no key is involved at all. Or let your browser fetch them: our page's code, running in your browser, sends your key straight to Octopus and sends us only the readings and the name of your tariff. The key field has no name and is never submitted to us.

The key is still typed into our page, so the same warning applies: someone who took over our website could change that code to copy it. If you tick "Remember on this device", the key stays in your browser's storage, where anyone using that browser could find it. Press "Remove it" on that page to delete it.

More about your data

What else we keep when you link, and for how long, is on our privacy page. If you think you've found a security problem, please email [email protected].