Skip to main content
Our official TypeScript SDK provides type-safe access to the API Dental platform with full IntelliSense support.

GitHub Repository

View source code and contribute

NPM Package

api-dental on npm

Installation

Usage

Available Methods

Request & Response Types

The SDK includes TypeScript definitions for all request params and response fields:

Error Handling

When the API returns a non-success status code, a subclass of APIError is thrown:

Retries

Certain errors are automatically retried 2 times by default with exponential backoff. Connection errors, 408, 409, 429, and >= 500 errors are retried.

Timeouts

Requests time out after 1 minute by default:
For ClearCoverage requests, consider increasing the timeout to 120 seconds as enriched eligibility queries may take longer to process.

Accessing Raw Response Data

Logging

Custom loggers are supported, including pino, winston, bunyan, and consola:

Requirements

  • TypeScript >= 4.9
  • Node.js 20 LTS or later
  • Deno v1.28.0+
  • Bun 1.0+
  • Cloudflare Workers
  • Vercel Edge Runtime