API keys
An API key lets you call the API without signing in through a browser.
Creating a key
On the account page, enter a name for the key and choose "Create key". The key is shown once; copy it straight away. We store only a hash of it and cannot show it again. If you lose a key, revoke it and create a new one.
You can have up to 20 active keys at a time.
Using a key
Send the key in the Authorization header:
curl -H "Authorization: Bearer lr_your_key" https://example.com/api/balance
What a key can do
A key can read your balance and history and start a top-up. Managing keys (creating and revoking them) requires signing in through a browser: a stolen key must not be able to issue more keys.
Revoking a key
Choose "Revoke" next to the key. It stops working immediately.