---
title: "List Guests — Documentation"
canonical: "https://repull.dev/docs/list-guests"
description: "Search guest profiles across all reservations: names, contact details, stay history and lifetime revenue. Query parameters and examples."
updated: "2026-11-30T00:48:58.694Z"
commit: "18314c12fefb59a7545ef7607c0893919de20aa9"
---

# List Guests

Search and retrieve guest profiles across all reservations — names, contact details, stay history, and lifetime revenue.

## When to use this endpoint

- Build a guest CRM with unified profiles from all platforms
- Search for returning guests by name, email, or phone
- Export guest data for marketing campaigns or loyalty programs
- Identify high-value repeat guests based on stay count and revenue

> **Note: Need full guest details?**
>
> Use `GET /v1/guests/:id` to fetch a single guest with all contacts, reservation history, and custom fields.

## List guests

`GET /v1/guests`

**cURL**

```bash
curl "https://api.repull.dev/v1/guests?q=Sarah&limit=10" \
  -H "Authorization: Bearer sk_live_YOUR_KEY"
```

**Node.js**

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

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

const { data, pagination } = await repull.guests.list({
  q: 'Sarah', // matches name, email or phone
  limit: 10,
})

for (const guest of data) {
  console.log(`${guest.displayNameLong} — ${guest.totalReservations} stays, ${guest.totalRevenue}`)
}

if (pagination.hasMore) {
  await repull.guests.list({ q: 'Sarah', limit: 10, cursor: pagination.nextCursor! })
}
```

**Python**

```python
import os
from repull import AuthenticatedClient
from repull.api.guests import list_guests

client = AuthenticatedClient(
    base_url="https://api.repull.dev",
    token=os.environ["REPULL_API_KEY"],
)

guests = list_guests.sync(client=client, limit=20)
```

**Go**

```go
import (
	"context"
	"os"

	"github.com/ivannikolovbg/repull-go/repull"
)

client, err := repull.NewClientWithResponses(
	repull.DefaultBaseURL,
	repull.WithBearer(os.Getenv("REPULL_API_KEY")),
)
ctx := context.Background()

limit := 20
resp, err := client.ListGuestsWithResponse(ctx, &repull.ListGuestsParams{Limit: &limit})
```

**Ruby**

```ruby
config = Repull::Configuration.new
config.access_token = ENV.fetch('REPULL_API_KEY')
config.host = 'api.repull.dev'

client = Repull::ApiClient.new(config)

api = Repull::GuestsApi.new(client)
guests = api.list_guests(limit: 20)
```

**PHP**

```php
$config = Repull\Configuration::getDefaultConfiguration()
    ->setAccessToken(getenv('REPULL_API_KEY'));
$http = new GuzzleHttp\Client();

$api = new Repull\Api\GuestsApi($http, $config);
$guests = $api->listGuests(limit: 20);
```

**C#**

```csharp
using Repull.SDK;

var client = RepullClientFactory.Create(
    Environment.GetEnvironmentVariable("REPULL_API_KEY")!);

var guests = await client.V1.Guests.GetAsync(
    rc => rc.QueryParameters.Limit = 20);
```

## Query parameters

| Parameter | Type | Required | Description |
| --- | --- | --- | --- |
| `limit` | `integer` | No | Maximum number of results to return. Default: `50`. |
| `offset` | `integer` | No | Number of results to skip for pagination. Default: `0`. |
| `search` | `string` | No | Search across guest name, email, and phone number. Supports partial matching. |

## Response format

Returns a paginated array of guest objects with aggregated stay and revenue data.

```
{
  "data": [
    {
      "id": "789",
      "firstName": "Sarah",
      "lastName": "Mitchell",
      "email": "sarah@example.com",
      "phone": "+1-555-0123",
      "language": "en",
      "totalStays": 3,
      "totalRevenue": 4200,
      "lastStay": "2026-06-05",
      "createdAt": "2025-08-15T09:00:00Z"
    },
    {
      "id": "812",
      "firstName": "Sarah",
      "lastName": "Chen",
      "email": "sarah.chen@example.com",
      "phone": "+44-20-7946-0958",
      "language": "en",
      "totalStays": 1,
      "totalRevenue": 1800,
      "lastStay": "2026-05-20",
      "createdAt": "2026-04-10T14:30:00Z"
    }
  ],
  "pagination": {
    "total": 2,
    "limit": 10,
    "offset": 0,
    "hasMore": false
  }
}
```

### Response fields

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `id` | `string` | No | Unique guest identifier. |
| `firstName` | `string` | No | Guest first name. |
| `lastName` | `string` | No | Guest last name. Nullable. |
| `email` | `string` | No | Primary email address. Nullable. |
| `phone` | `string` | No | Primary phone number. Nullable. |
| `language` | `string` | No | Preferred language (ISO 639-1). |
| `totalStays` | `integer` | No | Total number of completed reservations. |
| `totalRevenue` | `number` | No | Lifetime revenue from this guest (in account default currency). |
| `lastStay` | `string` | No | Check-out date of most recent stay (YYYY-MM-DD). Nullable. |
| `createdAt` | `string` | No | ISO 8601 timestamp when the guest record was created. |

## Filtering examples

### Search by name

```
curl "https://api.repull.dev/v1/guests?search=Mitchell" \
  -H "Authorization: Bearer sk_live_YOUR_KEY"
```

### Search by email

```
curl "https://api.repull.dev/v1/guests?search=sarah@example.com" \
  -H "Authorization: Bearer sk_live_YOUR_KEY"
```

### Search by phone

```
curl "https://api.repull.dev/v1/guests?search=555-0123" \
  -H "Authorization: Bearer sk_live_YOUR_KEY"
```

## Pagination

Results are cursor-paginated. Pass the previous response's `pagination.nextCursor` back as `cursor`, and stop when `pagination.hasMore` is `false`.

```
// Export all guests for a CRM sync
let cursor: string | undefined

do {
  const { data, pagination } = await repull.guests.list({ limit: 50, cursor });

  for (const guest of data) {
    await syncToCRM(guest);
  }

  cursor = pagination.hasMore ? pagination.nextCursor ?? undefined : undefined;
} while (cursor);
```

## API Reference

See the complete [Guests API Reference](https://repull.dev/docs/api/guests.md) for all endpoints including get profile and create guest.
