SDK Overview
TypeScript SDK for querying, mutating, and subscribing to start.chat data
The @start-chat/sdk package gives you typed access to start.chat data. Three
modes depending on what you need:
| Mode | Import | Use case |
|---|---|---|
| REST queries | query.* | One-shot reads, server-side scripts |
| REST mutations | mutate.* | One-shot writes, server-side scripts |
| Realtime | realtime.subscribe / realtime.mutate | Live data, optimistic updates |
Install
Terminal
Setup
Config options
| Option | Type | Default | Description |
|---|---|---|---|
apiKey | string | — | API key from Server Settings → API Keys. Format: sk_live_* |
baseUrl | string | https://start.chat | Custom instance URL |
zeroUrl | string | https://zero.start.chat | Custom Zero sync server URL |
For local development, use sk_dev with baseUrl: 'http://localhost:7878' to
auto-authenticate as admin.
Quick example
API surface
11 queries and 20 mutations across 9 resources, plus realtime subscriptions and optimistic mutations via Zero.
Using cURL
Every query and mutation is also available as a REST endpoint. See the API reference for cURL examples.
Terminal