Get and Use an API Key
Most of the time you won't touch API keys directly — npx piezas init and your AI assistant handle them for you. You only need this if you're connecting another tool to your app by hand. What it is: an API key is a password-like credential that lets an app talk to Piezas. Each key is tied to a…
Most of the time you won't touch API keys directly — npx piezas init and your AI assistant handle them for you. You only need this if you're connecting another tool to your app by hand.
What it is: an API key is a password-like credential that lets an app talk to Piezas. Each key is tied to a single app — it can only reach that app's data, nothing else in your account.
Get one
- The easy way: run
npx piezas login, thennpx piezas init— a key is created and saved into your project for you. - From the console: open your app at app.piezas.ai and copy the key shown on its page.
Keep it safe
A key is a credential — treat it like a password:
- Never post it publicly or put it into a website's front-end.
- If a key is ever exposed, create a new one from the console and remove the old one.
Because each key is limited to a single app, a leaked key can never reach the rest of your account — but replace it anyway.