Skip to content

Type Alias: MintKeyRequest

type MintKeyRequest =
| {
name?: string;
type: "sk_live";
}
| {
device: string;
host: string;
type: "sk_mcp";
};

Defined in: packages/sdk/src/index.ts:695

SK-APIKEYS-007 — POST /v1/keys mint. sk_live carries an optional human name; sk_mcp carries (host, device) claims per SK-APIKEYS-004. The plaintext lands here exactly once (SK-APIKEYS-002) — surfaces must copy on the same render or it is gone for good.