Source: docs/integration/auth.md

Authentication — API key

The Forgium administrator provides an API key for each environment. Use it with

the Public API (/v1/*):

Authorization: Bearer <FORGIUM_AGENT_API_KEY>

Obtain access

Request these values from the Forgium administrator:

FORGIUM_AGENT_BASE_URL=https://agent-api.example.workers.dev
FORGIUM_AGENT_API_KEY=mg_xxx

Store the key in the host application's secret manager. Do not commit it,

include it in a capability manifest, or put it in logs.

If a request returns 401, ask the administrator to verify or replace the key.

Example

curl -fsS "$FORGIUM_AGENT_BASE_URL/v1/capabilities" \
  -H "Authorization: Bearer $FORGIUM_AGENT_API_KEY"