Skip to Content
KnowYourChain Docs

Authentication

Send your API key with every call.

Send your API key in the Authorization header, with the Api-Key scheme:

Authorization: Api-Key <your key>

The key selects your account. There is no account id in the URL, and you only see your own records and requests.

What a key can do

ActionDefault
Read records and evidenceOn
Read your requestsOn
Send requests (POST /requests)Off. Ask us to turn it on.

When a call is refused

StatusMeaning
401The key is missing, unknown, revoked or expired. The body is {"detail": "Invalid API key."}.
403The key is valid, but your access is not active now, or the action is not turned on for the key.

An expired key and a revoked key return the same 401 as an unknown key.

Keep the key safe

  • Call the API from your server only.
  • Do not commit the key to source control.
  • If a key leaks, tell us. We revoke it and send you a new one.

On this page