Skip to content

Latest commit

 

History

History
26 lines (16 loc) · 780 Bytes

File metadata and controls

26 lines (16 loc) · 780 Bytes

createScopedKey

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

Parameters

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).

Returns

scoped-key

Example

Object res = mk.createScopedKey(Map.of("domainId", "dom_2VbXqTpN8rKw", "name", "blog-wordpress"));

← All methods · Docs · mailkite.dev