Docs/Documentation/Quickstart

Node.js

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

Installation

npm install @repull/sdk

Complete Example

import { Repull } from '@repull/sdk'

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

// 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',
})

// Push all listings to Airbnb
await repull.channels.syncAirbnb()

// AI: generate a guest response
const { response } = await repull.ai.respondToGuest(
  'Guest asks about early check-in options'
)
console.log(response)

Environment Variables

REPULL_API_KEY=sk_test_YOUR_KEY
REPULL_WORKSPACE_ID=YOUR_WORKSPACE_ID

Start with sk_test_ keys for sandbox data. Switch to sk_live_ when ready for production.

AI