← Files GoodMemARCHIVED FILE
skills/goodmem-sdk/references/java/apikeys/create.md
990 Bytes · Oct 2, 2026 · 00:24 UTC
<!-- sdk-ref package=ai.pairsys:goodmem-java registry=maven version=0.2.2 --> # apikeys.create Create a new API key Issues a new API key and returns its raw value exactly once. Omitted subject and authorityMode create a self-issued human key that inherits the subject's live authority. A SCOPED key requires a nonempty immutable ceiling, and every ceiling rule must be conservatively covered by both the subject's live authority and the issuing credential's effective authority. A scoped issuer can create only scoped children. SERVICE subjects require SCOPED mode and MANAGE_ACCESS on the service identity. AUTHORIZATION: Requires CREATE_API_KEY on the proposed credential; subject and ceiling checks are repeated by the final insertion statement. ```java CreateApiKeyResponse create(CreateApiKeyRequest request) ``` [apikeys](../apikeys.md) · [Java](../../java.md) Related types — open only those used by your request: - [CreateApiKeyRequest](../models/CreateApiKeyRequest.md)
SHA-256: 78bc839310111c944c93af009356860f0d3309456eb9ad0a9bc6cd8d4998bbc4