---
title: "Ruby — Documentation"
canonical: "https://repull.dev/docs/connect-with-ruby"
description: "Call the Repull API from Ruby with the repull gem or net/http: set your API key and list vacation rental reservations and listings."
updated: "2026-11-30T00:48:58.694Z"
commit: "18314c12fefb59a7545ef7607c0893919de20aa9"
---

# Ruby

Connect to Repull from Ruby using net/http.

### Step 1: Prerequisites

Ruby 3.0+ installed on your machine.

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

### Step 2: Install

```
gem install repull
```

### 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

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

```
require 'net/http'
require 'json'

uri = URI('https://api.repull.dev/v1/properties')
req = Net::HTTP::Get.new(uri)
req['Authorization'] = "Bearer #{ENV['REPULL_API_KEY']}"

res = Net::HTTP.start(uri.hostname, uri.port, use_ssl: true) { |http|
  http.request(req)
}

properties = JSON.parse(res.body)
puts "Found #{properties['data'].length} properties"
```

### 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.
