Skip to content

Installation

The SDK is split into packages. Install the ones you need:

Server SDK (Node.js backend)

Terminal window
npm install @opendoor/partner-sdk-server-js-core

Use this in your backend (Express, Next.js API routes, etc.) to proxy requests to the Opendoor API. This is where your API key lives.

Client SDK (browser)

Terminal window
npm install @opendoor/partner-sdk-client-js-core

Framework-agnostic HTTP client for making typed requests to your backend’s Opendoor proxy endpoints. Does not talk to Opendoor directly. No framework dependency.

UI Components

Terminal window
npm install @opendoor/partner-sdk-client-react @opendoor/partner-sdk-client-js-core

Prebuilt React components (AddressEntry, QualificationQuestions, DtcOnboardingFlow, etc.) that use the client SDK under the hood.

Requirements

  • Node.js 20+
  • React 17+ (for client-react)
  • Vue 3.3+ (for client-vue)

API Keys

Environments

The SDK defaults to staging for safe testing. When you’re ready to go live, set environment: 'production' with your production API key.

Server SDK:

// Staging (default) - no environment flag needed
const client = new OpendoorClient({
apiKey: process.env.OPENDOOR_STAGING_API_KEY!,
});
// Production
const client = new OpendoorClient({
apiKey: process.env.OPENDOOR_API_KEY!,
environment: 'production',
});

Client SDK (browser):

// Staging (default)
const client = new OpendoorClient({ baseURL: '/api/opendoor/v1' });
// Production
const client = new OpendoorClient({
baseURL: '/api/opendoor/v1',
environment: 'production',
});

Both the server and client SDKs need to be set to 'production' when ready. The server SDK routes API requests to the correct Opendoor endpoints, and the client SDK routes analytics telemetry to the correct pipeline.