A partner who wants both needs two keys. Each key has its own monthly quota.
Issue a key
1
Get what you need from the partner
Their company name, what they’re building, roughly how many calls a month they expect, and, for the widget, every site it will be on.
2
Make the key
Open the Keys tab and choose New key. Pick API or Widget, then fill in:
- Name: what the key is for, such as “Production” or “Lettings site”. Up to 120 characters.
- Customer: who it belongs to, such as “Smith & Co Estate Agents”. Up to 200 characters.
- Sites (Widget only): the domains, separated by commas or spaces, such as
smithandco.co.uk, homes.example.org. Each covers its subdomains, sosmithandco.co.ukcoverswww.smithandco.co.uktoo. You can paste full addresses:https://and any path are dropped. Addlocalhostif they want to test on their own machine. - Calls a month: the quota, from 1 to 100,000,000. It starts at 10,000. For the widget, each load is one call.
3
Copy the key now
The next screen shows the key, with a copy button. This is the only time it is shown: we keep only a fingerprint of it. The screen closes only from its Done button, so you can’t lose it by clicking away.
4
Send it to the partner
- API key: send it privately, not in a shared channel. Tell them to keep it on their server, and point them to Authentication and Quotas and limits.
- Widget key: it ends up in public HTML anyway, so ordinary email is fine. Send the snippet with their key filled in, the list of sites it works on, and a link to Install the widget.
Read usage
The table lists every key, live ones first, newest first. Usage is for this calendar month (UTC), and quotas reset on the 1st.
When Used this month reaches the quota, the partner’s calls get
429 quota_exceeded and their widget says it will be back on the 1st. There’s no way to change a key’s quota or sites after it is made: issue a new key and revoke the old one once the partner has switched.
Revoke a key
Choose Revoke on the key’s row and confirm. The partner’s API calls are refused (403 key_revoked) or their widget stops showing, at once. This can’t be undone: they would need a new key. Revoked keys stay in the table, greyed out, so their history isn’t lost.
Revoke a key when:
- a secret key has been exposed, for example in a web page or a public repository;
- a partner leaves or stops paying;
- you have issued a replacement with different sites or a different quota.