Get your API key
Find your API key in the Invoke dashboard under Settings → API Keys.Passing your API key
SDK
The@invoke/sdk package reads INVOKE_API_KEY automatically from process.env:
Direct API requests
Send your key as theX-API-Key header:
Environment variable
Set your key in your environment or.env file:
Authentication errors
The SDK throws before making any network call if
apiKey is missing or empty.
Next steps
- Environment Variables — all configuration variables
- Quick Start — end-to-end setup including authentication