← Files GoodMemARCHIVED FILE
skills/goodmem-sdk/references/typescript/spaces/create.md
1.02 KB · Oct 4, 2026 · 12:23 UTC
<!-- sdk-ref package=@pairsystems/goodmem registry=npm version=0.1.6 -->
# spaces.create
Creates a new space with the provided name, labels, and embedder configuration. A space is a container for organizing related memories.
OWNER DEFAULTS: Owner defaults to the authenticated principal unless ownerId is provided; CREATE_SPACE is evaluated against the proposed space and owner.
EMBEDDER REQUIREMENTS: At least one embedder configuration must be specified. Every referenced embedder must exist, and the caller must have EXECUTE_EMBEDDER on each one.
DUPLICATE DETECTION: Returns ALREADY_EXISTS if another space exists with identical {ownerId, name} (case-sensitive). This operation is NOT idempotent.
```ts
create(request: SpacesCreateRequest, requestOptions?: RequestOptions): Promise<SpaceResponseShape>
```
[spaces](../spaces.md) · [TypeScript](../../typescript.md)
Related types — open only those used by your request:
- [RequestOptions](../models/RequestOptions.md)
- [SpacesCreateRequest](../models/SpacesCreateRequest.md)
SHA-256: 4702b31d176c30e860f04eeafbb0e78a2f6c43b4aac429c53ee4c013f7dbe6ca