API Client
If you need to connect to Collabase from a completely external service (like a background cron job on AWS, or a custom internal portal), you use the standard@collabase/api-client.
It acts as a thin, extremely type-safe wrapper over the Collabase REST API structure.
Initialization
You instantiate the client by passing your workspace’s Base URL and a Service Account API Key (generated via System Administration → API Tokens).The Result pattern
Unlike raw fetch or Axios, the@collabase/api-client never throws exceptions for HTTP errors. This prevents untracked crashes in your background services.
Instead, every single method returns a Result union object: { ok: true, data: T } or { ok: false, error: ErrorResponse }. This forces you to explicitly handle failure cases.

