---
title: "Node.js — Documentation"
canonical: "https://repull.dev/docs/connect-with-nodejs"
description: "Connect Node.js to Airbnb, Booking.com, Vrbo and PMS data with @repull/sdk: install, set your API key and list reservations in minutes."
updated: "2026-11-30T00:48:58.694Z"
commit: "18314c12fefb59a7545ef7607c0893919de20aa9"
---

# Node.js

Connect to any vacation rental PMS with Node.js and the Repull SDK.

### Step 1: Prerequisites

Node.js 18+ installed on your machine.

You also need a Repull API key. Get one from your [dashboard](https://repull.dev/dashboard).

### Step 2: Install

**npm**

```bash
npm install @repull/sdk
```

**pnpm**

```bash
pnpm add @repull/sdk
```

**yarn**

```bash
yarn add @repull/sdk
```

**bun**

```bash
bun add @repull/sdk
```

### Step 3: Set up environment variables

Add your credentials to a `.env` file in your project root:

```
REPULL_API_KEY=sk_live_YOUR_KEY
```

There is one key type — `sk_live_` — created from [/dashboard/keys](https://repull.dev/dashboard/keys). It acts on whatever channels your workspace has connected.

### Step 4: Make your first API call

Initialize the SDK with your API key, then call any endpoint. The example below lists properties and fetches reservations.

```
import { Repull } from '@repull/sdk'

const repull = new Repull({
  apiKey: process.env.REPULL_API_KEY!,
})

// List all properties across connected PMS platforms
const { data: properties } = await repull.properties.list()
console.log(`Found ${properties.length} properties`)

// Get reservations from Airbnb
const { data: reservations } = await repull.reservations.list({
  platform: 'airbnb',
  status: 'confirmed',
})

// Set a price for two nights — written to the Repull calendar and pushed to
// the channels Repull can write a calendar to (Airbnb, Booking.com). The TypeScript SDK has
// no availability method, so this is a plain HTTP call.
await fetch(`https://api.repull.dev/v1/availability/{propertyId}`.replace('{propertyId}', String(properties[0].id)), {
  method: 'PUT',
  headers: {
    Authorization: `Bearer ${process.env.REPULL_API_KEY}`,
    'Content-Type': 'application/json',
  },
  body: JSON.stringify({ dates: ['2026-06-01', '2026-06-02'], price: 250 }),
})
```

### Step 5: Next steps

You are all set. Explore the rest of the platform:

- [API Reference](https://repull.dev/docs/api/introduction.md): Full endpoint reference with request and response examples.
- [Webhooks](https://repull.dev/docs/webhooks/introduction.md): Get notified when reservations, messages, or syncs change.
- [MCP Server](https://repull.dev/docs/mcp-server.md): Connect Repull to AI agents via the Model Context Protocol.
- [Channel Manager](https://repull.dev/docs/channels/introduction.md): Push listings and availability to Airbnb, Booking.com, and more.
