Partner keys
Your server calls the partner API with a secret key that starts cn_partner_live_. Keys are made in the partner portal at partners.chartnaut.com, under Keys.
Make a key
Sign in to the portal with your work email. Chartnaut sends a code.
Open Keys and create one. Give it a name that says where it runs, such as
production api.Copy the key now. It is shown once and stored hashed, so nobody can show it to you again.
Keep it on your server. A key in a browser, a mobile app or a frame URL lets anyone act for every one of your users.
Rotate a key
In Keys, click Rotate next to the key. You get a new key with the same name; copy it.
Switch your servers to it.
Revoke the old one.
Both keys work until you revoke the old one, so nothing breaks in between. A revoked key is refused at once with 401 unauthorized. The portal shows when each key was last used and who made it.
If a key leaks
Revoke it in the portal straight away, make a new one, and tell [email protected].
