API keys

Websites and apps use API keys to read content from Headra.

KeyStarts withCanUse it in
Publichcms_pub_Read published content only.The website's JavaScript. Safe to be seen.
Privatehcms_prv_Everything an account admin can do, including drafts and writing.Server-side code and build tools only.
Personalhcms_usr_What you yourself are allowed to do.Your own scripts and integrations.

Creating a key

  1. Choose the website, then go to API keys.
  2. Pick the kind and give it a name you'll recognise, e.g. "Main website".
  3. Copy the key straight away. It's shown once and can't be retrieved later. If it's lost, create a new one.

Keeping keys safe

  • Never put a private or personal key in website code, emails or chat. Headra refuses them in web addresses.
  • Revoke a key you no longer need, or one that may have leaked. It stops working immediately.
  • Requests with keys count towards the monthly API allowance in your package. Page-view tracking doesn't count.