Rotate an ausdata API key without downtime

Create a second key, deploy it, then revoke the first.

Steps

  1. 1Create a new key.
  2. 2Roll it out.
  3. 3Revoke the old key.

Code

cURL
curl https://api.ausdata.io/account/keys \
  -H "Authorization: Bearer YOUR_KEY"
Python
import requests
r = requests.get(
    "https://api.ausdata.io/account/keys",
    headers={"Authorization": "Bearer YOUR_KEY"},
)
print(r.json())
JavaScript
const r = await fetch("https://api.ausdata.io/account/keys", {
  headers: { Authorization: "Bearer YOUR_KEY" },
});
console.log(await r.json());

Watch out for

  • You can hold up to 5 active keys per account.

Related

Try it now

500 free calls per month. No credit card.

Get a free API key