Create a key scoped to one domain. Ideal for per-site installs (e.g. a WordPress plugin) — the site never holds the account master key.
HTTP: POST /api/keys/scoped
| Field | Type | Required | Description |
|---|---|---|---|
domainId |
string | ✓ | The domain (dom_…) the new key is limited to. Must belong to the calling account. |
name |
string | Optional label shown in the dashboard (e.g. which site/integration holds this key). |
scoped-key
Object res = mk.createScopedKey(Map.of("domainId", "dom_2VbXqTpN8rKw", "name", "blog-wordpress"));