Skip to main content
Every request to Invoke carries an API key, and the key decides who is acting.

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:
Or pass it in code with new Invoke({ apiKey }). The SDK throws a ConfigError before any network call if the key is missing.

Direct API requests

Send the key in the X-API-Key header:
Keep keys on the server. Never put one in browser code, a URL or a public env var.

Authentication errors

Next steps