Skip to main content
Invoke uses API keys to authenticate every request. Your key identifies your account and must be included in all SDK calls and direct API requests.

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 the X-API-Key header:
Or as a query parameter (less preferred):

Environment variable

Set your key in your environment or .env file:
See Environment Variables for all variables the SDK and CLI read.

Authentication errors

The SDK throws before making any network call if apiKey is missing or empty.

Next steps