Two kinds of key
In the console, open API:
A workspace can require agent keys for every tool call. Then a call made with the account key naming an agent is refused with
denied_identity, and only an agent’s own key can act.
With the SDK
Invoke.fromEnv() reads INVOKE_API_KEY:
new Invoke({ apiKey }). The SDK throws a ConfigError before any network call if the key is missing.
Direct API requests
Send the key in theX-API-Key header:
Authentication errors
Next steps
- Environment Variables: every setting the SDK reads
- Quick Start: your first call in five minutes