Skip to main content

Overview

Base URL: https://edge.useshipd.com (local: http://localhost:8787). Authenticate with Authorization: Bearer shipd_sdk_…. WebSocket gateway: https://ws.useshipd.com (path /sdk/v1/stream).

GET /sdk/v1/snapshot

Current environment snapshot.
See Snapshots for the JSON envelope.

POST /sdk/v1/events

Batched diagnostics. 202 Accepted. identify enqueues to Postgres. Production evaluation events go to Tinybird when configured (never staging).
Disable from the SDK with events: false.

GET /sdk/v1/identity

KV trait overlay for the identified user. The SDK merges this under session traits after identify() unless remoteTraits: false.

WS /sdk/v1/stream

  1. Authenticate (SDK key)
  2. Server → connected
  3. Client → subscribe with environmentId + lastKnownVersion
  4. Server → snapshot.updated / snapshot.resync when KV current advances
Application ping/pong plus transport heartbeat. Revoked keys disconnect. This channel never carries full snapshots or analytics payloads.

Compatibility

SDK supports snapshot schema 1 and stream protocol 1. Newer schemas are rejected; last good snapshot is kept. Guides: Evaluate flags · SDK reference.