Reference

SDK methods

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

createJob(params)

Creates a sponsorship job through POST /v1/jobs. Returns accepted job metadata, a rate-limit result, or null when the request fails.

getDecision(slotId)

Reads decisions through /v1/decisions/{slot_id}, using WebSocket compatibility where configured and polling as fallback.

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.