Skip to main content

JavaScript Code Examples

Complete JavaScript examples for integrating with CCC APIs. These examples work in both Node.js and browser environments.
In browser environments, API calls may be blocked by CORS. These APIs are designed for server-side use. For client-side applications, make calls through your backend.

Scrub API - Basic Example

Scrub Multiple Phone Numbers

Scrub with Unique Identifiers

HTTP POST for Large Batches

TCPA Authority API

Litigator API

Internal DNC Management

TrustCall Premier API

Error Handling Wrapper

HTML Form Example

A complete HTML example for browser-based scrubbing (through your backend):