Skip to main content
Documentation
StartOverviewArchitectureAuthenticationSend your first message
TypeScript SDKOverviewTrusted app serverApp-user clientsRealtimeErrors & webhooks
Flutter SDKOverviewInstallationAuthenticationChannels & messagesOffline & syncRealtimeUI componentsPush & lifecycle
ConceptsTenancy & scopeChannels & messagesDelivery & reconciliationSecurity checklist
ProtocolsRealtimeSigned webhooks
ReferenceREST APIErrors, limits & retriesDeploy docs to Coolify
VV ChatDocs API v1
Recommended starting points
Build chat without rebuilding infrastructureV Chat is a multi-tenant messaging backend with typed server, web, and Flutter integration paths.StartArchitecture at a glanceUnderstand the control plane, data plane, realtime path, and SDK boundaries before integrating.StartAuthentication and credentialsSelect the correct credential for dashboard, trusted-server, app-user, realtime, and webhook flows.StartSend your first messageUse the trusted TypeScript server client to create the minimum safe messaging flow.StartTypeScript SDK overviewChoose the correct typed client for trusted servers, app users, dashboard sessions, realtime, and webhooks.TypeScript SDKTrusted app-server clientUse AppServerClient from a protected backend to manage data-plane resources and mint app-user tokens.TypeScript SDKApp-user clientsBuild browser or Node app-user flows with VChatClient or the lower-level AppUserClient.TypeScript SDK
↑↓ Navigate↵ Openesc Close
API reference
StartOverviewArchitectureAuthenticationSend your first message
TypeScript SDKOverviewTrusted app serverApp-user clientsRealtimeErrors & webhooks
Flutter SDKOverviewInstallationAuthenticationChannels & messagesOffline & syncRealtimeUI componentsPush & lifecycle
ConceptsTenancy & scopeChannels & messagesDelivery & reconciliationSecurity checklist
ProtocolsRealtimeSigned webhooks
ReferenceREST APIErrors, limits & retriesDeploy docs to Coolify
Contract sourceOpenAPI JSON
Docs/TypeScript SDK
@vchatsdk/sdk-typescript

TypeScript SDK overview

Choose the correct typed client for trusted servers, app users, dashboard sessions, realtime, and webhooks.

Updated 2026-08-09•packages/sdk-typescript/README.md · packages/sdk-typescript/src/index.ts

Install

bash
npm install @vchatsdk/sdk-typescript

The SDK is ESM, side-effect free, and exports portable declarations for supported browser and Node consumers. Import only from the package root or the documented webhooks/server subpath.

Choose the right client

ClientCredential/runtimeUse it for
VChatClientApp-user token; browser, mobile web, or NodeErgonomic REST, realtime lifecycle, recovery, and channel handles
AppUserClientApp-user tokenLower-level app-user REST resource facades
AppServerClientApplication credential; trusted server onlyUsers, channels, memberships, messages, threads, search, and moderation
Dashboard and control-plane clientsDashboard session cookieOrganizations, applications, environments, credentials, webhooks, usage, and support
HealthClientNo credentialReadiness checks
verifyWebhookWebhook signing secret; Node serverVerify raw signed webhook bytes before decoding

Runtime rules

  • Use HTTPS outside explicit loopback development endpoints.
  • Pass opaque cursors unchanged; do not parse or manufacture them.
  • Cancel obsolete work with AbortSignal and a bounded timeout.
  • Use stable ApiError fields for recovery; do not show raw server messages.
  • Dispose realtime listeners, subscriptions, and clients when their owning session ends.
PreviousSend your first messageNext Trusted app-server client
On this pageInstallChoose the right clientRuntime rules
Report a docs issue