Skip to main content
Every call to the API needs a secret key, sent in the 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 set each key’s monthly quota when we make it. Pricing is by arrangement.
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:
The word Bearer can be in any case. Don’t put the key in the query string: the API only reads the header.
A missing or unknown key gets:
with status 401.

Keeping your key secret

Anyone with your secret key can use your quota. Never put it in a web page, a mobile app, or a public repository.
  • 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:
with status 403.