---
title: "List Unit Blocks — API Reference"
canonical: "https://repull.dev/docs/api/inventory/unit-blocks-list"
description: "GET /v1/unit-blocks — list rooms out of sale (blocked, out of service, held) by listing, hotel, dates or type. Cursor pagination."
updated: "2026-12-04T21:50:32.403Z"
commit: "05317760b17f5bea607efd630dee2eff2bb5ec44"
---

# List unit blocks: units out of sale for a date range

Unit Blocks & Group Holds · `GET /v1/unit-blocks`

List unit blocks: units out of sale for a date range

`GET /v1/unit-blocks`

> **Note:**
>
> One entry per block, with every unit it covers. \`startDate\`/\`endDate\` return blocks that touch the range. A block's \`endDate\` is exclusive, like a checkout date. Blocked units count as taken in \`GET /v1/availability/{propertyId}\` → \`units\`. Guide: /docs/multi-unit#unit-blocks

#### Request

```
curl https://api.repull.dev/v1/unit-blocks \
  -H "Authorization: Bearer $REPULL_API_KEY"
```

#### Response

```
{
  "data": [
    {
      "id": "17961907985432547",
      "type": "out_of_service",
      "startDate": "2027-03-10",
      "endDate": "2027-03-12",
      "reason": "Repainting",
      "units": [
        { "listingId": "30908", "unitId": "679314-2" },
        { "listingId": "30908", "unitId": "679314-3" }
      ],
      "guest": null,
      "holdHours": null,
      "expiresAt": null,
      "provider": "cloudbeds",
      "createdAt": "2027-02-01T14:03:11.000Z",
      "updatedAt": "2027-02-01T14:03:11.000Z"
    }
  ],
  "pagination": { "nextCursor": null, "hasMore": false }
}
```

**Query Parameters**

| Parameter | Type | Required | Description |
| --- | --- | --- | --- |
| `listingId` | `integer` | No | Only blocks on this listing (room type). |
| `hotelId` | `string` | No | Only blocks on this hotel's room types (\`GET /v1/hotels\`). |
| `startDate` | `date` | No | Blocks that end after this date. |
| `endDate` | `date` | No | Blocks that start before this date. |
| `type` | `string` | No | \`blocked\`, \`out\_of\_service\` or \`hold\`. |
| `limit` | `integer` | No | Page size (max 100). Requests over the cap return 422. Default: `25`. |
| `cursor` | `string` | No | Opaque cursor from the previous response's \`pagination.nextCursor\`. Omit for the first page. |
