SDK (JavaScript)
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
Install the SDK
Run npm install potal-sdk and import { PotalClient } from "potal-sdk".
Initialize the client
Create a new PotalClient({ apiKey: "sk_live_..." }) instance with your secret key.
Call methods
Use typed methods like client.classify(), client.calculate(), client.sanctions.screen().
Handle responses
All methods return typed response objects with full TypeScript IntelliSense support.
Related Features
Official Python SDK with sync and async client support
Comprehensive cURL examples and shell script snippets
155+ API endpoints with consistent JSON responses
Interactive API docs with code examples in 5 languages
Drop-in JavaScript widget for any website or checkout page