Back to Features
🔗

SDK (JavaScript)

ActiveIntegrationMUSTFREE

What it does

Official JavaScript/TypeScript SDK (potal-sdk on npm) for server-side and client-side integration. Provides typed methods for all API endpoints, automatic retry, and built-in error handling. Supports Node.js 18+ and modern browsers.

How to use it

1

Install the SDK

Run npm install potal-sdk and import { PotalClient } from "potal-sdk".

2

Initialize the client

Create a new PotalClient({ apiKey: "sk_live_..." }) instance with your secret key.

3

Call methods

Use typed methods like client.classify(), client.calculate(), client.sanctions.screen().

4

Handle responses

All methods return typed response objects with full TypeScript IntelliSense support.

Related Features

Having issues?