Skip to main content
Create an API key in the Playground and set it 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.