Authorization header.
Getting a key
Keys are issued by arrangement for now. Email hello@checkthatfield.com with:- what you’d like to build
- roughly how many calls a month you expect
- for the widget, the sites it will be on
We keep only a hash of your key, so we can’t show it to you again. We send it once, when it is made. Store it somewhere safe straight away.
Two kinds of key
A publishable key doesn’t work with the API, and a secret key doesn’t work in the widget. Using the wrong kind gets
401 invalid_key.
Sending your key
Send the secret key as a bearer token:Bearer can be in any case. Don’t put the key in the query string: the API only reads the header.
401.
Keeping your key secret
- Keep it in an environment variable or a secrets manager, not in code.
- Call the API from your server, and pass on only what your pages need.
- To show scores in a page, use the widget with a publishable key instead.
- Give each product or environment its own key, so you can revoke one without stopping the others.
Revoking a key
If a key leaks, or you no longer need it, email hello@checkthatfield.com and we’ll revoke it and issue a new one. Revoking takes effect at once and can’t be undone. Calls with a revoked key get:403.