Skip to main content
Create an API key in the Playground: open the account menu and choose API keys. API keys are available on every plan, including Free. Set the key in the terminal where you run your code:
Client() reads this variable automatically. Keep the key in your server’s secret store in production; never include it in browser code or commit it to Git. If a key is exposed, revoke it in the Playground and create a replacement. See error codes for authentication failures.