API Reference
Configuration
Shared configuration options for server and client SDK initialization.
Options:
baseUrl: runtime API base URL (defaulthttps://api.buildspace.studio). In apps, setBUILDSPACE_API_URL(server) orNEXT_PUBLIC_BUILDSPACE_API_URL(browser);@buildspace/config’sgetApiUrl()readsBUILDSPACE_API_URL.loginUrl: hosted login base URL (defaulthttps://login.buildspace.studio)version: API version header value (default2025-06-01)fetch: custom fetch implementation (server only where needed)
Client-only extra options:
events.flushInterval: milliseconds between automatic flushes (default5000)events.maxBatchSize: max queued events before an automatic flush (default20)