Why am I getting 401 'Unauthorized'?

ClearRun didn't recognize the key. It may be mistyped, cut short, or removed. Copy the key again or create a new one.

Last updated

Check

  1. The key starts with crun_ and has 48 characters after it.
  2. No spaces or quotes were copied with it.
  3. clearrun whoami shows the key you expect.

Still failing

Create a new key at api.clearrun.net/account/keys. ClearRun can't show an old key again.

Session routes

On /api/usage, /api/verify/chain and /api/audit/export, 401 can also mean you are not signed in.