---
title: "Create a Listing — Documentation"
canonical: "https://repull.dev/docs/create-a-listing"
description: "Create a listing in Repull with full content (address, occupancy, policies, amenities, photos) and check whether each channel will accept it."
updated: "2026-11-30T00:48:58.694Z"
commit: "18314c12fefb59a7545ef7607c0893919de20aa9"
---

# Creating a listing

How to get a property into Repull with a full set of content — address, occupancy, policies, amenities, photos — and how to tell, before you publish anything, whether a channel will accept it. Nothing on this page touches Airbnb or Booking.com.

## The shortest create that works

`name` is the only required field. Everything else is optional and can be filled in later.

```bash
curl -X POST https://api.repull.dev/v1/listings \
  -H "Authorization: Bearer sk_live_YOUR_KEY" \
  -H "Content-Type: application/json" \
  -d '{"name": "Sunset Loft #2"}'

{ "id": "48211" }
```

The response is `201` with the new listing id. **It is a string**— every id in this API is a string, including the ones that look like integers. Keep it as one; parsing it into a number is the one thing that will go wrong quietly.

A create can be refused with [`402 listings_limit_exceeded`](https://repull.dev/docs/errors/listings_limit_exceeded.md) when the workspace is already at its plan's listing count. Deactivating a listing you no longer need frees a slot immediately — see [active & inactive listings](https://repull.dev/docs/manage-listings.md).

## Everything you can set at create

Sending all of it in one call is worth doing when you have it — a listing created with a complete address and occupancy is publishable straight away, and one created with only a name is not.

| Group | Fields |
| --- | --- |
| Identity | `name` (required), `propertyType` |
| Address | `street`, `city`, `state`, `postalCode` (alias `zipcode`), `countryCode`, `lat`, `lng` |
| Occupancy | `bedrooms`, `bathrooms`, `beds`, `personCapacity` |
| Copy | `summary`, `description` |
| Money | `defaultDailyPrice`, `cleaningFee` |
| Policies | `cancellationPolicy`, `checkInTimeStart`, `checkOutTime`, `allowsPets`, `allowsSmoking`, `allowsChildren`, `allowsEvents` |

```bash
curl -X POST https://api.repull.dev/v1/listings \
  -H "Authorization: Bearer sk_live_YOUR_KEY" \
  -H "Content-Type: application/json" \
  -d '{
        "name": "Sunset Loft #2",
        "propertyType": "apartment",
        "street": "1200 Ocean Drive",
        "city": "Miami Beach",
        "state": "FL",
        "postalCode": "33139",
        "countryCode": "US",
        "lat": 25.7805,
        "lng": -80.1300,
        "bedrooms": 2,
        "beds": 3,
        "bathrooms": 1.5,
        "personCapacity": 4,
        "defaultDailyPrice": 240,
        "cleaningFee": 85,
        "cancellationPolicy": "moderate",
        "checkInTimeStart": "15:00",
        "checkOutTime": "11:00",
        "allowsPets": false
      }'
```

## The address rule

This is the part of a listing that decides whether it can ever go live, and it is the part people leave for later. Coordinates are not enough on their own: Airbnb refuses to create a listing without a real postal address behind them, and the refusal happens at publish time, long after you thought the listing was finished.

- **Always**: `street` and `city`.
- **For a US property, additionally**: `state` and the postal code.
- **Always send `countryCode` for a property outside the US.**Omitting it does not leave the country blank — the listing behaves as a US one, and then fails the US rules above for a property that is nowhere near the US.
- `lat` and `lng` are required for an Airbnb publish as well, alongside the postal fields rather than instead of them.

> **Note: state and postalCode are settable on both endpoints**
>
> They are accepted on `POST /v1/listings` and in the `address` block of `PUT /v1/listings/{id}/content`. If you built against an earlier version of this API and worked around their absence — or concluded a US listing could not be created through the API at all — that workaround can come out.

Correcting the address on a Repull listing is always allowed and is what a later create reads. It does not move a listing that is already live on a channel: on Airbnb the address is settled when the listing is created there and is not an API operation afterwards — see [creation-only fields](https://repull.dev/docs/channels/airbnb/publication-contract.md#creation-only).

## Writing the rest of the content

`PUT /v1/listings/{id}/content`is the full content write. It takes named sections — `title` (alias `name`), `description`, `summary`, `address`, `occupancy`, `details`, `policies`, `amenities`, `photos`, `rooms`, `checkoutTasks`, `pricing` — plus `locale` and `photosMode`. Every one of them is optional.

```bash
curl -X PUT https://api.repull.dev/v1/listings/48211/content \
  -H "Authorization: Bearer sk_live_YOUR_KEY" \
  -H "Content-Type: application/json" \
  -d '{
        "title": "Sunset Loft #2 — ocean block, quiet street",
        "summary": "Bright two-bedroom a block from the sand.",
        "address": { "state": "FL", "postalCode": "33139" },
        "occupancy": { "maxGuests": 4, "bedrooms": 2, "beds": 3, "bathrooms": 1.5 },
        "details": { "propertyTypeCategory": "apartment", "roomTypeCategory": "entire_home" },
        "policies": { "checkInTimeStart": "15", "checkOutTime": "11", "quietHoursStart": "22:00" }
      }'

{
  "id": "48211",
  "changed": ["title", "summary", "address", "occupancy", "details", "policies"],
  "deferred": []
}
```

`changed`names the sections that were actually written — read it rather than assuming the whole body applied. `deferred` names anything you sent that was accepted but not stored, which in practice means a `photos` array that carried no usable image URL. A section in `deferred` left the previous value untouched.

### Check-in and check-out times

`policies.checkInTimeStart` and `policies.checkOutTime`are the listing's own check-in and check-out times, set per listing. A reservation takes the times the channel states for the property first — Booking.com and Airbnb state their own — and falls back to these when the channel states none. With neither, a reservation shows 15:00 and 10:00. Send an hour (`"16"`) or a 24-hour time (`"16:00"`).

```bash
curl -X PUT https://api.repull.dev/v1/listings/48211/content \
  -H "Authorization: Bearer sk_live_YOUR_KEY" \
  -H "Content-Type: application/json" \
  -d '{ "policies": { "checkInTimeStart": "16", "checkOutTime": "11" } }'

{ "id": "48211", "changed": ["checkInOut"], "deferred": [] }
```

Read them back with [`GET /v1/listings/{id}?include=details`](https://repull.dev/docs/listing-content-and-details.md) (`details.checkInTimeStart`, `details.checkOutTime`), and see them on each stay as `checkInTime` / `checkOutTime` in [GET /v1/reservations](https://repull.dev/docs/get-reservations.md).

### Merge or replace — the distinction that costs data

Most sections merge at field level: send `{"occupancy": {"beds": 3}}` and the bedroom count you set earlier survives. Five things do not work that way.

| Section | Behaviour |
| --- | --- |
| `amenities` | **Full replacement.** Send the complete set every time. Omit it and the existing amenities are untouched; send `[]` and they are cleared. |
| `photos` | **Full replacement**, unless you pass `"photosMode": "append"`. Omit to leave the set alone; `[]` clears it. |
| `policies.guestSafetyDisclosures` | **Full replacement** of the disclosure set, on the same terms. |
| `rooms` | **Full replacement** of the rooms and every bed in them. The rooms you send become the whole set. |
| `checkoutTasks` | **Full replacement** of the task list, on the same terms. |

> **Warning: A partial amenity write is an amenity wipe**
>
> Sending `{"amenities": ["wifi"]}` to add Wi-Fi to a listing that already has twenty amenities leaves it with one. Read the current set from `GET /v1/listings/{id}?include=amenities`, add to it, and send the whole thing back.

### What `locale` actually covers

`locale` says which language the copy in _this request_ is written in, and content is stored per locale so each language keeps its own row. It is narrower than it looks, and this is the part that surprises people.

Only four things are stored per locale: `title` (and its alias `name`), `description`, `summary`, and `policies.houseRules`. Everything else — `address`, `occupancy`, `details`, `amenities`, `photos`, the rest of `policies`— is language-agnostic and is written regardless of the locale you send.

> **Warning: An Italian title also overwrites the listing name**
>
> `title`is stored twice: once in the per-locale row, and once as the listing's own language-free name. So `{"locale":"it","title":"Loft sul mare"}` writes the Italian row _and_renames the listing. If you are backfilling translations, send every language's `title` first and your primary language last, or leave `title` out of the translation writes entirely and send only `description`, `summary` and `policies.houseRules`.

```bash
# Italian copy, without touching the listing's language-free name
curl -X PUT https://api.repull.dev/v1/listings/48211/content \
  -H "Authorization: Bearer sk_live_YOUR_KEY" \
  -H "Content-Type: application/json" \
  -d '{
        "locale": "it",
        "summary": "Luminoso bilocale a un isolato dalla spiaggia.",
        "policies": { "houseRules": "Vietato fumare. Silenzio dalle 22." }
      }'
```

### Rooms and beds

`rooms`describes each room and the beds in it — what Airbnb shows guests as the sleeping arrangements. The counts in `occupancy` are totals; `rooms`is the layout behind them. Values use Airbnb's vocabulary: room types such as `bedroom`, `full_bathroom`, `half_bathroom` and `living_room`; bed types such as `king_bed`, `queen_bed`, `single_bed` and `sofa_bed`.

```bash
curl -X PUT https://api.repull.dev/v1/listings/48211/content \
  -H "Authorization: Bearer sk_live_YOUR_KEY" \
  -H "Content-Type: application/json" \
  -d '{
        "rooms": [
          { "roomType": "bedroom", "roomNumber": 1, "roomName": "Primary bedroom",
            "beds": [{ "bedType": "queen_bed", "quantity": 1 }] },
          { "roomType": "bedroom", "roomNumber": 2,
            "beds": [{ "bedType": "single_bed", "quantity": 2 }] },
          { "roomType": "full_bathroom" },
          { "roomType": "living_room", "beds": [{ "bedType": "sofa_bed", "quantity": 1 }] }
        ]
      }'

{ "id": "48211", "changed": ["rooms"], "deferred": [] }
```

Every room and bed is checked before anything is written. If one entry is wrong, the whole request is refused and the answer names the entry, so a listing is never left with half its rooms:

```json
HTTP/1.1 422
{
  "error": {
    "code": "invalid_params",
    "message": "rooms[1].beds[0].quantity must be a whole number from 1 to 20",
    "field": "rooms[1].beds[0].quantity"
  }
}
```

### Checkout tasks

`checkoutTasks` is what the guest is asked to do before leaving. There are six task types: `return_keys`, `turn_things_off`, `throw_trash`, `lock_up`, `gather_towels` and `additional_requests`. Add `instructions` to any of them for the detail the guest sees. Any other type is refused with `422` naming the entry.

```json
{
  "checkoutTasks": [
    { "taskType": "lock_up", "instructions": "Pull the front door until it clicks." },
    { "taskType": "return_keys", "instructions": "Leave the keys on the kitchen counter." },
    { "taskType": "throw_trash" }
  ]
}
```

> **Note: Checkout tasks are an Airbnb feature**
>
> Airbnb is the only channel with checkout tasks, and it accepts them only from partner apps it has certified for them. Until that certification is in place, a publish reports Airbnb's refusal for the checkout-tasks section and every other section still lands. Your tasks stay stored; publish again once it is.

### This write does not reach a channel

`PUT /v1/listings/{id}/content`writes Repull's own copy of the listing and nothing else. No part of it is forwarded to Airbnb or Booking.com. What it does do is record which sections changed, so that a later publish knows what to send. Distribution is always a separate, explicit call — see [publishing a listing](https://repull.dev/docs/publish-a-listing.md).

### Listings a PMS manages

When a connected PMS (Guesty, Hostaway) manages the listing, the PMS owns its content: title, descriptions, check-in/out times, capacity, amenities, house rules, address and added photos are written to the PMS first, and Repull keeps only what the PMS accepted. Sections it refused come back in `deferred` and in `pms.errors`; when it applied nothing the call is `422 pms_write_unsupported`. Send photos with `photosMode: "append"`. `GET /v1/listings/{id}` → `capabilities.pms.listings` lists the sections the PMS takes. A PMS with no content API (Mews, Cloudbeds, Lodgify, …) keeps the content in Repull only. See [Writing through a PMS](https://repull.dev/docs/pms-writes.md#content).

## Photos

If your images are already hosted somewhere public, put the URLs straight into the `photos`array on the content write. If they are files on a device or a server of your own, mint an upload URL and send the bytes directly to storage — **the file never passes through this API**, so a 40 MB photo is not a 40 MB request body.

```bash
# 1. Mint a short-lived signed target
curl -X POST https://api.repull.dev/v1/listings/48211/photos/upload-url \
  -H "Authorization: Bearer sk_live_YOUR_KEY" \
  -H "Content-Type: application/json" \
  -d '{"fileName": "living-room.jpg", "fileType": "image/jpeg", "fileSize": 2184010}'

{
  "listingId": "48211",
  "uploadUrl": "https://storage.example.com/upload/...",
  "token": "...",
  "path": "listings/48211/living-room.jpg",
  "publicUrl": "https://cdn.repull.dev/listings/48211/living-room.jpg",
  "expiresIn": 3600
}

# 2. PUT the raw bytes to uploadUrl — not to this API
curl -X PUT "$UPLOAD_URL" \
  -H "Content-Type: image/jpeg" \
  --data-binary @living-room.jpg

# 3. Attach publicUrl to the listing, keeping the photos you already had
curl -X PUT https://api.repull.dev/v1/listings/48211/content \
  -H "Authorization: Bearer sk_live_YOUR_KEY" \
  -H "Content-Type: application/json" \
  -d '{
        "photosMode": "append",
        "photos": [
          { "url": "https://cdn.repull.dev/listings/48211/living-room.jpg",
            "caption": "Living room" }
        ]
      }'
```

`GET /v1/listings/{id}/photos` lists what is stored and `DELETE /v1/listings/{id}/photos` removes one by the `path` the upload returned. `expiresIn` is in seconds; if the upload did not happen in time, mint another URL rather than retrying the old one.

## Letting Repull write the copy

`POST /v1/listings/{id}/generate-content` produces a title, summary, description and amenity list from what the listing already knows. Pass reference photo URLs to ground the copy in the actual rooms.

```bash
curl -X POST https://api.repull.dev/v1/listings/48211/generate-content \
  -H "Authorization: Bearer sk_live_YOUR_KEY" \
  -H "Content-Type: application/json" \
  -d '{
        "style": "professional",
        "persist": false,
        "photos": ["https://cdn.repull.dev/listings/48211/living-room.jpg"]
      }'
```

`style` is `warm`, `professional` or `concise`. `persist` defaults to `true` and saves the result onto the listing; send `false` to get the draft back and show it to a human first, which is what you want if the listing already has copy someone wrote.

## Check it is publishable before you publish

A publish that fails on a missing address field is a slow way to learn something you could have asked for. `GET /v1/listings/{id}/publish-status` answers it directly: `addressReadiness` is keyed by channel and names the exact fields that are missing.

```bash
curl -s https://api.repull.dev/v1/listings/48211/publish-status \
  -H "Authorization: Bearer sk_live_YOUR_KEY"

{
  "listingId": "48211",
  "addressReadiness": {
    "airbnb": {
      "ready": false,
      "missing": ["state", "postalCode"],
      "have": "street=1201 Ocean Drive, city=Miami Beach, state=∅, postalCode=∅, country=US"
    }
  },
  "channels": [],
  "connections": []
}
```

`missing` is the list to put in front of whoever can fill it in, field by field. Write the missing fields with the `address` block on the content write, read `publish-status` again, and only then publish.

> **Note: Empty channels does not mean not connected**
>
> `channels` is sync activity and stays empty until the first push. Connection state is in `connections`, which is populated as soon as a channel is linked. A listing that is connected but has never been published shows an empty `channels` and a populated `connections`.

## Rates, and the calendar they create

Stating a price is not bookkeeping — it is what gives the listing a calendar. `defaultDailyPrice` prices every night that is not a weekend night, and `weekendPrice` prices Saturday and Sunday nights. From those two numbers the create writes **365 nights** of calendar, and that calendar is what a publish sends to the channel.

```bash
curl -X POST https://api.repull.dev/v1/listings \
  -H "Authorization: Bearer sk_live_YOUR_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "name": "Barton Springs 1BR",
    "roomTypeCategory": "entire_home",
    "street": "1500 Barton Springs Rd", "city": "Austin",
    "state": "TX", "postalCode": "78704", "countryCode": "US",
    "lat": 30.2620, "lng": -97.7660,
    "defaultDailyPrice": 165,
    "weekendPrice": 210,
    "cleaningFee": 40
  }'

{ "id": "30197", "calendarDaysSeeded": 365 }
```

`calendarDaysSeeded`is the direct answer to "did my listing get a calendar". A listing created without a price answers `0`, and a listing with no calendar publishes no availability.

> **Warning: A listing with no availability cannot go live on Booking.com**
>
> Booking.com will not open a property that has never been sent availability — its readiness check answers `No availability pushed` and the property stays unsellable. So a price at creation is not a detail you can come back to later; it is the difference between a property that can open and one that cannot.

### Changing a rate afterwards

Rates live in the `pricing` section of the content write, and changing one moves the calendar with it.

```bash
curl -X PUT https://api.repull.dev/v1/listings/30197/content \
  -H "Authorization: Bearer sk_live_YOUR_KEY" \
  -H "Content-Type: application/json" \
  -d '{"pricing": {"defaultDailyPrice": 175, "weekendPrice": 225}}'

{ "id": "30197", "changed": ["pricing", "calendar"], "deferred": [] }
```

`calendar` in `changed`means nights moved to the new rate. Only nights that still carry the old rate and were written from it are touched — a night you priced yourself, or one that is blocked or already reserved, keeps what it has. So a rate change reaches the calendar without overwriting anyone's work.

The section also carries `cleaningFee`, `pricePerExtraGuest`, `securityDeposit`, `weeklyDiscount` and `monthlyDiscount` (percentages, so `10`is ten percent off — a value between 0 and 1 is refused rather than published as a fraction of one percent), `guestsIncluded` and `currency`. Like every other section it is a partial write, and it is still local — publish to send new rates to a channel.

## Next

The listing now exists, has content, and reports itself ready. Putting it on the market is a separate job with separate rules per channel:

- [Publishing a listing](https://repull.dev/docs/publish-a-listing.md) — Airbnb and Booking.com, end to end
- [The Airbnb publication contract](https://repull.dev/docs/channels/airbnb/publication-contract.md) — what a publish can and cannot change
- [Listing content & details](https://repull.dev/docs/listing-content-and-details.md) — reading back the content you wrote
- [Active & inactive listings](https://repull.dev/docs/manage-listings.md) — what deactivating does, and what it does not
- [IDs & external IDs](https://repull.dev/docs/identifiers.md) — which id belongs to which system
