spaces.getMySpace
Returns the current user’s space with all settings.The user’s space object, including:
spaces.ensureSpace
Creates a space for the current user if one doesn’t exist. Called automatically during sign-up.spaces.updateSettings
Updates space settings — name, bio, avatar, visibility, layout, theme, and default domain.Display name.
Bio text.
Avatar URL.
Space visibility.
Public space layout.
Default domain for shared links.
spaces.updatePublicTheme
Updates the public space’s theme customization — colors, fonts, patterns, light/dark mode settings.Complete theme configuration object with colors, fonts, and patterns for both light and dark modes.
spaces.updateSlug
Changes the space’s URL slug (subdomain).New slug. Must be unique, lowercase, 3+ characters, letters/numbers/hyphens only.
spaces.checkSlugAvailability
Checks if a slug is available.The slug to check.
Whether the slug is available.
spaces.getStats
Returns statistics for the current user’s space.Custom domain management
spaces.addDomain
Adds a custom domain to the space.The domain to add (e.g.,
links.example.com).spaces.removeDomain
Removes a custom domain.The domain to remove.
spaces.verifyDomain
Triggers domain verification.The domain to verify.
spaces.listDomains
Returns all domains associated with the space and their statuses.Array of domain mappings with status:
pending_verification, verified, active, error, or disabled.spaces.getDomainStatus
Returns the current status of a specific domain.The domain to check.
spaces.exportAllData
Exports all user data as a JSON object — saves, tags, collections, settings, and metadata.Complete data export including all saves with their tags and collections, space settings, and metadata.
