API keys
For AG Digitalz builds, private keys belong behind the system. The client should get the benefit of AI without leaking credentials or giving random visitors access to paid model calls.
AG Digitalz field guide
An API key is a private software password. It lets backend code call an AI service, CRM, database, or automation tool without exposing secrets in public browser code.
For AG Digitalz builds, private keys belong behind the system. The client should get the benefit of AI without leaking credentials or giving random visitors access to paid model calls.
Implementation
Connect the smallest useful flow first, make ownership clear, then measure it before expanding.
Create the key in the provider dashboard.
Store it in Netlify environment variables, not HTML or frontend JavaScript.
Create a serverless function that reads the key privately.
Call the AI provider from that function.
Return only the safe result to the browser.
Set usage limits and monitor errors.
Rotate the key if it is exposed or no longer needed.
Primary sources
Use these sources to verify capabilities, limits, and setup details before putting a workflow into production.
Reference documentation used for this AG Digitalz field guide.
Open sourceReference documentation used for this AG Digitalz field guide.
Open sourceReference documentation used for this AG Digitalz field guide.
Open source