IDs & External IDs

TL;DR

There is one Repull id per property. The same value is the id on a property, the listingId on a reservation, and the propertyId for availability. A channel's own id (Airbnb listing id, Booking hotel id) is a separate externalId.

Repull normalizes every property, room, and unit behind a single canonical id. Learn this once and you never have to guess which id a given endpoint expects.

The Repull id

Every property has one stable Repull id (an integer, e.g. 4118). That same value appears under different field names depending on the resource you're reading — but it always points at the same property:

EndpointFieldExample
GET /v1/propertiesid4118
GET /v1/listings/{id}id4118
GET /v1/reservationslistingId4118
GET /v1/availability/{propertyId}propertyId (path)4118
GET /v1/channels/airbnb/listingslistingId4118
GET /v1/channels/booking/propertieslistingId4118

One id to store

Persist the Repull id against your own records. Any endpoint that takes a property, listing, or availability id takes this value — you never need to translate between them.

External IDs

An externalId is the id a specific channel uses for the same property — the Airbnb listing id, the Booking.com hotel id, and so on. One Repull property can carry several external ids (one per channel it's published to). Read them from the listing's channels array:

curl https://api.repull.dev/v1/listings/4118 \
  -H "Authorization: Bearer sk_live_YOUR_KEY"
{
  "id": 4118,
  "name": "Lakeview Loft",
  "status": "active",
  "channels": [
    { "platform": "airbnb",  "externalId": "12345678", "active": true, "syncEnabled": true },
    { "platform": "booking", "externalId": "998877",   "active": true, "syncEnabled": true }
  ]
}

GET /v1/properties returns a lighter shape — channels is just the list of connected platforms:

{ "id": 4118, "name": "Lakeview Loft", "channels": ["airbnb", "booking"] }

Channel-specific ids

When you need the raw ids a channel exposes (host id, connection id, hotel id), use the per-channel routes. Each groups connections under the Repull listingId.

Airbnb

curl https://api.repull.dev/v1/channels/airbnb/listings \
  -H "Authorization: Bearer sk_live_YOUR_KEY"
{
  "data": [
    {
      "listingId": 4118,
      "name": "Lakeview Loft",
      "connections": [
        {
          "id": 55,                        // Airbnb connection id (the "airbnbConnectionId")
          "airbnbId": "12345678",          // Airbnb listing id
          "accountId": "112233",           // Airbnb host id — which connected account this row is from
          "accountName": "Seaside Stays",        // that account's display name
          "hostId": "112233",              // alias of accountId, kept for compatibility
          "hostName": "Seaside Stays",           // alias of accountName
          "active": true,
          "syncEnabled": true,
          "primary": true
        }
      ]
    }
  ],
  "pagination": { "nextCursor": null, "hasMore": false, "total": 1 }
}

A workspace can connect several Airbnb host accounts, so accountId tells you which one a row came from — it is the same id GET /v1/connect/airbnb publishes as accounts[].externalAccountId, and the value the Airbnb collection routes take as ?account_id=. See Account scope → Several Airbnb accounts.

Airbnb ids are strings

Airbnb host and listing ids exceed 253, so they are strings everywhere in the API. Parsing one as a number silently rounds it — 1000000000000000002 becomes 1772489413932732200, which is a different account and returns 404.

Booking.com

Note this route returns a bare array (no data wrapper).

curl https://api.repull.dev/v1/channels/booking/properties \
  -H "Authorization: Bearer sk_live_YOUR_KEY"
[
  {
    "listingId": 4118,
    "name": "Lakeview Loft",
    "connections": [
      {
        "id": 12,                 // Booking connection id
        "hotelId": "998877",      // Booking.com property (hotel) id
        "active": true,
        "syncEnabled": true,
        "syncCategory": "full"
      }
    ]
  }
]

Rooms are separate from properties

Booking.com models room types under a property. Property-level reads return the hotelId; individual room ids are handled during pairing — see Pair PMS Listings.

Account ids

Every connected account is named by two ids, the same way everywhere: webhook account blocks and the account fields in event data, connect.session.completed, the Connect popup message and redirect, GET /v1/connect and GET /v1/connect/{provider}, the account on reservations, conversations, reviews and properties, and the ?account= filter.

  • externalAccountId is the platform's own account id. It is never a Repull id.
  • connectionId (account.id on webhooks) is our connection record: the value you send as X-Account-Id. It is null only when the account has no connection record.
  • The handle provider:externalAccountId names the account in ?account= and in /v1/connections/{handle}/units and /v1/connections/{handle}/mappings.
providerexternalAccountIdHandle example
airbnbAirbnb host idairbnb:79730216
bookingBooking.com hotel idbooking:10167991
booking_extranetBooking.com account id behind the Extranet loginbooking_extranet:20123456
vrboVrbo account id (null until it is captured at sign-in)vrbo:7001234
a PMS (hostaway, guesty, …)The PMS's own account or company id (null when the PMS does not expose one)hostaway:27434
{
  "event": "connect.session.completed",
  "account": { "id": 482, "provider": "booking_extranet", "externalAccountId": "20123456" },
  "data": { "provider": "booking_extranet", "externalAccountId": "20123456", "connectionId": 482, "...": "..." }
}

Changed November 2026: Extranet and Vrbo ids

Booking.com Extranet and Vrbo accounts used to be named by Repull's own login id (e.g. booking_extranet:88, vrbo:46), with connectionId: null. Now externalAccountId is the platform's id and connectionId our connection record, for every provider. Use connectionId when you need our record. The old ids still work wherever you send one (handles, ?account=, accountId) until February 12, 2027, and they are never returned. To move over, re-read GET /v1/connect (or GET /v1/connect/vrbo-login) and store each account's new externalAccountId and id.
AI