Overview
Hub API keys allow demand-side callers — agent developers and SDK clients — to authenticate against Hub discovery endpoints. Keys are tier-gated with daily request limits and use theX-Hub-API-Key request header for event ingestion (analytics events endpoint) or Authorization: Bearer hub_live_… for Hub discovery endpoints (search, composites, etc.).
Base URL: https://ezforge.ai
Authentication for management endpoints: All create/list/revoke operations require Authorization: Bearer <user-token> (session token).
This page is the dedicated API keys reference. For the consolidated Hub API reference covering both API keys and listing analytics in one place, see Hub API Reference.
Security model
- SHA-256 hashed storage. Raw key values are never stored. Only the SHA-256 hash is persisted in the database.
- Key shown once. The raw key is returned exactly once, in the
201response body at creation time. If you lose the key, you must revoke it and create a new one. - Immediate revocation. Revoking a key sets
revokedAtinstantly. Any subsequent request using the revoked key returns401. - Prefix for identification. The
keyPrefixfield (first 16 characters of the key) is safe to display in UIs and logs for identification without exposing the full key.
Tier limits
Rate limit counters reset at UTC midnight. When the limit is exceeded, the API returns
429 with Retry-After: 86400.
Create API key
Request body
Response 201
meta):
Error responses:
List API keys
Response 200
Revoke API key
401. Revocation cannot be undone — create a new key if you need to restore access.
Path parameters
Response 204
No content.
Error responses:
Using your API key
Once you have a key, pass it in the appropriate header depending on the endpoint:
The
X-Hub-API-Key header is intentionally separate from Authorization so that SDK clients sending telemetry cannot accidentally forward the key to third-party services.