Engineering Workspace
API Keys
Create and manage hyb_* keys that authenticate inference requests. Keys are scoped to the workspace and carry their own environment, limits, and expiry.
Endpoints
POST
/api/v1/workspace/api-keysGET
/api/v1/workspace/api-keysPATCH
/api/v1/workspace/api-keys/{id}DELETE
/api/v1/workspace/api-keys/{id}Platform endpoints authenticate with your session token and the X-Business-Profile-Id header.
Create a key
| Parameter | Type | Description |
|---|---|---|
namerequired | string | Human-readable key name. |
envrequired | string | Environment: prod, staging, or dev. |
ip_allowlist | string[] | Optional list of IPs/CIDRs allowed to use the key. |
credit_limit_pence | integer | Optional spend cap for the key, in pence. |
credit_limit_reset_period | string | How often the credit limit resets. |
expires_in_days | integer | Optional key lifetime; the key expires after this many days. |
CLI
stimulir keys create --name ci-pipeline --env prod \
--credit-limit-pence 50000 --expires-in-days 90The response contains the plaintext hyb_* key exactly once. It is not stored in retrievable form — if you lose it, revoke the key and create a new one.
From the CLI
bash
stimulir keys create --name "ci-pipeline" --env prod
stimulir keys list
stimulir keys revoke <key-id>Lifecycle
- List —
GETreturns key metadata (never the plaintext secret). - Update —
PATCHadjusts name, allowlist, and limits. - Revoke —
DELETEimmediately invalidates the key for inference.
