SDK Overview
PalPluss provides official SDKs for TypeScript/Node.js, Python, and PHP. Every SDK covers the same API surface with idiomatic naming conventions and full type coverage for its language.Installation
Client initialisation
The API key can be passed directly or read from thePALPLUSS_API_KEY environment variable.
Constructor options
| Option | Default | Description |
|---|---|---|
apiKey | PALPLUSS_API_KEY env var | Your API key (pk_live_... or pk_test_...) |
timeout | 30s | Per-request timeout |
autoRetryOnRateLimit | true | Automatically retry after HTTP 429 |
maxRetries | 3 | Maximum retry attempts |
PALPLUSS_BASE_URL to override the base URL (sandbox, local, etc.).
Choose your language
TypeScript / Node.js
Next.js, NestJS, Encore.ts, plain Node.js, and more.
Python
FastAPI, Django, Flask, and async patterns.
PHP
Laravel, Symfony, and plain PHP.
Response shape
Every successful response is unwrapped by the SDK — you receive thedata payload directly. The raw envelope looks like this:
data and attaches requestId to error objects so you can include it in support requests.
Error handling
All SDKs throw a typedPalPlussApiError on non-2xx responses and a RateLimitError on HTTP 429.