Reference

SDK methods

The public SDK client wraps compatibility API v1 routes and fails silently through typed return values or onError callbacks.

createJob(params)

Creates a sponsorship job through POST /v1/jobs for SDK compatibility integrations. New Server API examples should call POST /v1/placements?wait_ms=1500 instead.

getDecision(slotId)

Reads decisions through /v1/decisions/{slot_id}, using WebSocket compatibility where configured and polling as fallback. This remains useful for existing SDK flows, not for the shortest default onboarding path.

sendBeacon(beacon)

Records delivery events through /v1/beacons when possible and falls back to legacy compatibility beacon routes when needed.

reportGeneration(jobId, event)

Reports generation lifecycle events for SDK compatibility integrations. This is not part of the primary API-first onboarding path.

API first, Script Tag second, SDK third

Back to API docsContact the team

These pages are the advanced package layer for teams that intentionally choose @csl/wrapper-sdk. Primary onboarding still lives in the API docs, and browser-first installs should start with the Script Tag. Use contact only when you want rollout review, enterprise coordination, or help with non-standard integration constraints. Beacon billing rules live in SDK Concepts.