Migrate from SDK-first
New wavebird integrations should start with the Server API, use Script Tag for browser-first installs, and keep the SDK as an advanced compatibility layer. Existing SDK integrations can keep running while you move route ownership and docs references to the API-first model.
Priority order
What changes
1. Server API
Use /v1/placements from your backend and /v1/render.js in the frontend when your server owns the flow.
2. Script Tag
Use wavebird.js with a publishable key when the browser should discover slots, render ads, and send beacons directly.
3. Advanced SDK
Keep @csl/wrapper-sdk for teams that intentionally want package ergonomics or need backwards compatibility during migration.
Compatibility
Route mapping
| Old SDK-first surface | Current preferred surface | Migration note |
|---|---|---|
createJob() + getDecision() | POST /v1/placements | Keep SDK code working, but show the one-call placement route in new onboarding. |
| Raw media rendering | GET /v1/render.js | Let the hosted renderer consume placement.render instead of adding image or video DOM yourself. |
sendBeacon() | POST /v1/beacons | Preserve render, visibility, click, and completion evidence. |
/public/browser/v1/activate | /v1/browser/activate | The public-browser route remains a compatibility alias. |
Steps
Safe migration order
Step 1
Create or verify secret and publishable keys in the dashboard.
Step 2
Move new backend snippets to /v1/placements and frontend snippets to /v1/render.js with wavebird.withTurn().
Step 3
For browser-first pages, replace package bootstrap snippets with Script Tag markup.
Step 4
Keep existing SDK installs pinned and validate them with test keys before removing package code.
Step 5
Update docs, runbooks, and partner-facing copy so API appears first, Script Tag second, SDK third.
Step 6
Confirm logs show placements, decisions, consent, and beacons under the same project before live traffic.
The SDK is not removed. It remains supported as a compatibility and advanced-package path while partner-facing onboarding moves to the API-first sequence.
Review Advanced SDK positioningNeed rollout review?
Start with the Server API. Use contact only when you need rollout review, enterprise coordination, or non-standard integration help.