Skip to main content

TypeScript SDK

The TypeScript Server SDK (@cdx-forge/di-typescript-sdk) is a Node.js client for the Candescent Digital Insight APIs.

What the TypeScript SDK does

@cdx-forge/di-typescript-sdk lets you call Candescent DI REST APIs from Node.js with a single-typed client instead of hand-written HTTP requests.

  • Wraps every DI API operation — accounts, customers, authentication, business banking, money movement, alerts, and more through CandescentClient service-area properties
  • Handles OAuth for you — obtains, caches, and refreshes tokens; injects Authorization headers on each request
  • Stays type-safe — request and response models are generated from the OpenAPI spec, so your editor and compiler catch mistakes before runtime
  • Manages API complexity — V1/V2 OAuth routing, XML token responses, pagination, retries, and typed errors are built in

Use it in integration services, BFFs, batch jobs, Lambdas, and any server-side code that talks to Candescent on the backend.

Choose the TypeScript SDK when you need:

CapabilityDescription
CandescentClientOne typed entry point for all DI API service areas
Automatic OAuthClient-credentials flow with token cache and refresh (no manual Authorization headers)
Typed modelsRequest and response types generated from OpenAPI
PageIteratorAsync iteration across paginated list endpoints
Typed errorsApiError, AuthenticationError, NotFoundError, RateLimitError, and more
Built-in retriesExponential backoff on transient 408, 429, and 5xx responses
Standalone operationsPer-operation imports via @cdx-forge/di-typescript-sdk/operations for Lambda and scripts

Next steps

  1. Installation — install the package and run your first API call
  2. Quick Start — authentication, accounts, business banking, and standalone operations
  3. SDK Reference — full client API, service areas, and exports
  4. Examples — clone the examples repo and run scripts for every API area