Skip to main content

Embedded Web SDK API

The endpoints that the @devotel/orbit-web-sdk (browser-side) hits at runtime. Mounted at /sdk/* (no /api/v1 prefix) so customer-side embeds don’t have to think about API versions. Base path: https://api.orbit.devotel.io/sdk (no /api prefix) Authentication: Tenant public key (dv_live_pk_*) sent in the X-API-Key header. These endpoints accept the live-mode public key only. CORS is wide open — these endpoints are designed to be hit directly from the customer’s website JavaScript. Why a separate base path: server-to-server keys (dv_live_sk_*) are secret. Browser-embedded public keys (dv_live_pk_*) are safe to ship in client-side code. The split base prevents accidentally exposing a server key in a browser bundle.

Identify

Resolve an anonymous browser visitor to a known contact (by email or phone) so subsequent events attach to the right contact record.
anonymous_id is required (it ties the call back to the browser session). Include at least one of email or phone to resolve the contact; display_name and traits are optional.

Track

Capture a custom event (page view, button click, video watched, item added to cart). Events flow into the same sdk_events store that powers segmentation, scoring, and contact timelines.
Send up to 50 events per call. Each event needs a name; properties and an ISO-8601 timestamp are optional. The required anonymous_id identifies the browser session, so events captured before a visitor identifies still attach to the right contact.

Personalize

Fetch the right personalization slot variant for the current visitor at runtime.

See also