Connect (multi-channel)

One hosted entry point that lets your users connect Airbnb, Booking.com, Vrbo and tiket.com, plus 14property management systems. We render a branded picker, walk the user through the per-channel handoff, and redirect them back to your app when they're done.

Connecting next to an existing PMS

On Airbnb, Booking.com and Vrbo a host can connect without disconnecting the PMS or channel manager they already use: accessType: "messaging" for Airbnb and Vrbo, and the Extranet login for Booking.com. See Use Repull alongside a PMS.

How it works

From your server, you create a Connect session. We give you a one-time URL on connect.repull.dev. Send your user there. We render a branded channel picker, the user clicks the channel they manage their listings on, and we take them through the rest of the flow. When everything's done, we redirect them back to your app with status query params on the URL.

  1. Your server calls POST /v1/connect with a redirectUrl.
  2. We return a url on connect.repull.dev.
  3. Redirect your user there.
  4. The picker shows a card for every channel they can connect (or just the ones in your allowed_providers list, if you set one).
  5. The user picks a channel; we walk them through that channel's connection pattern.
  6. The user lands on your redirectUrl when the connection is live.

Already know which channel you want?

Skip the picker — call POST /v1/connect/{provider} with the channel ID instead and the user lands directly on the per-provider screen.

Connecting channels in stages

A user can connect Airbnb today and Booking.com or Vrbo later. Give each of your customers a workspace: send workspace on the first session, then start each later session with the X-Workspace-Id header (and allowed_providers for the channels still to add). Every channel lands in the same workspace, and the user matches the new rooms and units to their existing listings during the flow, so one property stays one listing across channels. See Add or reconnect a channel later.

The connection patterns

Every channel falls into one of these patterns. The picker handles the differences for you — but if you build your own picker against GET /v1/connect/providers, you'll see these in the response.

  • OAuth— the user is redirected to the channel's consent screen, approves access in one click, and we exchange the resulting code for tokens. Used by Airbnb today; coming for Hostaway, Guesty, BookingSync.
  • Credentials— we render a hosted form that collects API keys (or a client ID / secret pair). On submit we validate against the channel's API and persist on success. Used by most PMSes. Vrbo uses it too: the host signs in with their Vrbo account and enters a verification code if Vrbo sends one.
  • Extranet— Booking.com's Extranet login. The host invites a Repull user into their Extranet (or signs in with their own user), next to whatever channel manager already runs the property.
  • Claim— connectivity-provider designation (Booking.com, tiket.com). We hold the platform-level secret; the user designates Repull as their connectivity provider or channel manager in the channel's extranet, then hands us a Hotel ID to claim. For tiket.com see Connect a tiket.com property.
  • Key — pricing tools such as PriceLabs. The page shows the host a key to paste into the tool; the session completes on the tool's first call, and the host can leave with Done before that. Listed under Apps in the picker.

Start a Connect session

Server-to-server. Authenticate with your live API key. The session expires after 30 minutes if the user doesn't finish.

curl -X POST 'https://api.repull.dev/v1/connect' \
  -H 'Authorization: Bearer sk_live_...' \
  -H 'Content-Type: application/json' \
  -d '{
    "redirectUrl": "https://yourapp.com/connect/done",
    "allowed_providers": ["airbnb", "hostaway", "guesty"]
  }'

Body parameters

redirectUrlstringRequired

Where we send the user when they finish (or cancel). We append status query params to this URL.

statestring

Your own correlation value, e.g. a user id or a signed token (at most 500 characters). Echoed in the response, on every redirect back (connected, cancelled, error, expired, pending, requested), in the popup message, and in the connect.session.completed webhook — on every provider.

allowedProvidersstring[]

Optional whitelist of channel IDs the picker should show. Omit to show every channel.

includeRequestOnlyboolean

Also list PMSes Repull doesn't connect yet, plus an Other PMS card. Picking one collects the host's access details for our team instead of connecting. See Request a PMS we don't support yet below.

mappingstring

Vrbo and Booking.com Extranet. 'hosted' (default): after sign-in, Connect asks the user to link each unit to a listing. 'api': Connect skips that step and finishes right after sign-in, so you can do the mapping in your own app with GET /v1/connections/{id}/units and POST /v1/connections/{id}/mappings. Nothing is imported until you post the mappings. The connection reaches you in the connect.session.completed webhook, the popup message and the redirect as externalAccountId (the Vrbo or Booking.com account id) and connectionId (our connection record); its handle is vrbo:{externalAccountId} or booking_extranet:{externalAccountId}.

reservationHistoryMonthsinteger

Airbnb only. How many months of past reservations the first import pulls, from 1 to 60. Omit it for the default window. Upcoming stays are always imported. A wider window takes longer to import, because every extra month is more stays to fetch.

localestring

Optional language for the hosted Connect pages. Any supported code — currently 'en' or 'fr'. See Localizing your Connect pages for the full resolution order.

Show the pages in your user's language

The hosted Connect pages render in English, French, German, Spanish, Italian and Dutch. Pass a locale here, append ?locale=fr to the returned URL, or set a workspace default — see Localizing your Connect pages.

Response

{
  "sessionId": "cs_8gQrT2v9k3M4nLp7wJxYzAbCdEfGhIjKlMnOp",
  "url": "https://connect.repull.dev/cs_8gQrT2v9k3M4nLp7wJxYzAbCdEfGhIjKlMnOp",
  "expiresAt": "2026-04-29T18:25:14.000Z",
  "state": null
}

List supported channels

The full registry is public. Use it to build your own picker or to validate which IDs you can pass to allowed_providers. No API key required.

curl https://api.repull.dev/v1/connect/providers

Each entry includes the channel ID, display name, category (ota, pms or app for tools such as PriceLabs), connection pattern, status (live, beta, or coming-soon), logo URL, and a one-line description. The picker sorts OTAs first, then PMSes alphabetically. Add ?includeRequestOnly=true to also get the PMSes offered on request (status: "request-only").

Request a PMS we don't support yet

Your users may run a PMS Repull doesn't connect yet. Create the session with includeRequestOnly: true and the picker adds a second PMS section: around 30 more systems (Zeevou, RentalReady, Escapia, Streamline, Hostfully, Rentals United, SiteMinder and others) and an Other PMS card where the host types the name.

curl -X POST https://api.repull.dev/v1/connect \
  -H "Authorization: Bearer $REPULL_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{ "redirectUrl": "https://yourapp.com/connected", "includeRequestOnly": true }'
  • Picking one opens a short form: the host's email, and whatever access they have (a login, an API key or client ID, a secret, or a note on their setup). Only the Repull integration team sees these details.
  • The host sees "A team member will contact you". Nothing is connected yet, so Continue returns ?status=requested&provider=zeevou (plus your state), and no connect.session.completed webhook fires.
  • We use the request to build the integration and contact the host. Once a PMS is supported, its card moves to the main section with the same id, so sessions you create later connect it directly.
  • To offer only some of them, name their ids in allowedProviders; that works without the flag.

Handle the redirect back

When the connection completes (or fails), we redirect the user to your redirectUrl with these query params appended. Every return carries sessionId (the one the create call returned) and your state when you sent one, whatever the outcome, and keeps the query string your redirectUrl already had:

?status=connected&provider=hostaway&connectionId=42&externalAccountId=27434&accountId=42&sessionId=cs_9Hk2…&state=user_8421
# or
?status=cancelled&sessionId=cs_9Hk2…&state=user_8421
?status=error&code=activation_failed&sessionId=cs_9Hk2…&state=user_8421
?status=expired&sessionId=cs_9Hk2…&state=user_8421
?status=pending&sessionId=cs_9Hk2…&state=user_8421       # the user chose to finish later
?status=requested&provider=zeevou&sessionId=cs_9Hk2…&state=user_8421   # includeRequestOnly: a request, not a connection

externalAccountId is the platform's own account id (here the Hostaway account) and connectionId is our connection record, the X-Account-Id: the same pair as the connect.session.completed webhook. accountId is the connection record too, kept for existing integrations; it is not sent for Vrbo and Booking.com Extranet sign-ins. See Account ids.

On connected, query GET /v1/connect/{provider} to confirm the connection is live and pull host metadata.

Read back each connection's access level

Every connection on GET /v1/connect carries accessType, and so does every account in accounts[] on GET /v1/connect/{provider} (plus the top level). It is one of three values, or nullwhen we don't know:

ChannelaccessTypeWhat it means
Airbnbread_only, messaging, full_accessThe tier the host connected with, per host. read_only: reads only. messaging (“Messaging & reviews”): reads, replies to guests and reviews, never changes prices or availability. full_access: also manages prices, availability and listings.
Vrbomessaging, full_accessmessaging: bookings and messages, no calendar push. full_access: also pushes prices and availability.
Booking.comfull_accessThe connectivity-partner connection reads and writes, including rates and availability.
Booking.com Extranet loginmessagingReads reservations, messages and reviews and replies to guests. It never writes rates or availability.
PMSread_only, full_accessFrom the connection's write policy: read_only when every write switch is off, full_access when any is on (writePolicy on GET /v1/connect/{provider} says which).
curl https://api.repull.dev/v1/connect/airbnb \
  -H 'Authorization: Bearer sk_live_...'

# { "connected": true, "provider": "airbnb", "accessType": "messaging",
#   "accounts": [ { "externalAccountId": "168660501", "connected": true, "accessType": "messaging" } ], ... }

An Airbnb host's level is chosen when they connect (accessType on the session, or the host picks on the consent screen). To change it, start a new Connect session with the new accessType. See Airbnb access levels.

On Airbnb, full_access puts every listing on the account under API management, and Airbnb turns API-managed listings to Instant Book by default, including listings kept inactive in Repull. Switch a listing back to Request to Book with booking settings. messaging leaves booking settings as the host set them.

The redirect above is one of two completion paths. If you open the Connect URL in a popup rather than navigating the whole page, the hosted page posts a message back to window.opener and closes itself — your app never leaves the screen. It emits one of three messages, each carrying the sessionId correlation value and the provider:

repull:connect:completed   { sessionId, provider, connectionId, externalAccountId }   // live
repull:connect:error       { sessionId, provider, error }          // failed
repull:connect:close       { sessionId, provider }                 // cancelled / expired

Full listener example

Always pin event.origin to https://connect.repull.dev and correlate on sessionId. See the complete round-trip — popup open, origin check, the three message types, and the redirect fallback when there's no opener — on OAuth Connect → Popup completion.

When a user doesn't finish

Users leave Connect for ordinary reasons: a PMS refused the API key they pasted, Booking.com hasn't confirmed the property yet, or they simply closed the tab. Two things help you get them back.

  • Booking.com waits for the Extranet approval. If the user enters a Hotel ID before connecting us in their Booking.com Extranet, the page shows a waiting step with the exact steps, keeps checking, and moves on by itself once Booking.com confirms. The same link stays valid for 48 hours, so the user can close it and come back. A property that keeps another channel manager is offered the Booking.com login connection instead, because Booking.com allows one channel manager per property.
  • tiket.com waits for the activation.tiket.com does not notify channel managers when a property activates them, so after the user enters a Hotel ID that is not active yet, Repull keeps checking for up to 14 days and connects the property by itself once tiket.com activates it. The user can also ask tiket.com's connectivity team to activate it from the same page.
  • The connect.session.abandoned webhook. When a session the user opened ends without finishing, you get one event with your state, the provider, a reason (not_finished, credentials_rejected, provider_approval_pending, mapping_not_finished or failed) and a nextStep you can pass on. Create a new session and send the user its link. Event reference.

Disconnect an account

DELETE /v1/connect/{provider} disconnects one connected account from your workspace. Airbnb and Booking.com are supported; other providers return 501 not_implemented, with a fixexplaining how to disconnect on the provider's side.

Provider support is checked first, before your workspace's connections are looked at. So an unsupported provider answers 501 whether or not you have a connection to it — the answer depends on the provider alone, and you can branch on it without first knowing your own connection state. On a supported provider, 404 means this workspace has no connection to it.

accountIdstring

Query parameter. The account to disconnect: for Airbnb, the host id (accounts[].externalAccountId from GET /v1/connect/airbnb); for Booking.com, the hotel id. Optional when the workspace has exactly one account for the provider, required when it has several.

# Airbnb: list connected accounts, then disconnect one
curl 'https://api.repull.dev/v1/connect/airbnb' \
  -H 'Authorization: Bearer sk_live_...'
# { "connected": true, ..., "accounts": [
#     { "externalAccountId": "143778955", "name": "Lidia", "status": "active", "connected": true },
#     { "externalAccountId": "380436627", "name": "Marco", "status": "active", "connected": true }
# ] }

curl -X DELETE 'https://api.repull.dev/v1/connect/airbnb?accountId=143778955' \
  -H 'Authorization: Bearer sk_live_...'

# {
#   "disconnected": true,
#   "provider": "airbnb",
#   "accountId": "143778955",
#   "listingsDeactivated": ["4118", "4119"]
# }
  • Only that account is disconnected. Its stored authorization is removed and it stops syncing. Other accounts for the same provider stay connected.
  • Its listings are deactivated, not deleted.They stop counting toward your plan's listing limit, their data is kept, and their ids are returned in listingsDeactivated. A listing that is still connected through another account or channel stays active. To bring them back, reconnect the account and activate them with POST /v1/listings/status. See Active & inactive listings.
  • All or nothing. If the call fails, the account and its listings are unchanged.

Errors

  • 422 invalid_params: several accounts are connected and you did not pass accountId. valid_values lists the account ids you can pass.
  • 404 not_found: on a supported provider — accountId is not an account connected to this workspace, or the workspace has no connection to that provider at all.
  • 501 not_implemented: the provider cannot be disconnected over the API. Returned for every unsupported provider, connected or not — it is decided before your connections are read.
# Unsupported provider — 501 even with no hostaway connection in the workspace
curl -X DELETE 'https://api.repull.dev/v1/connect/hostaway' \
  -H 'Authorization: Bearer sk_live_...'
# 501
# { "error": { "code": "not_implemented",
#     "message": "Disconnecting hostaway over the API is not supported yet — ...",
#     "fix": "Remove the hostaway credentials in the provider's own dashboard. Confirm with `GET /v1/connect/hostaway`." } }

# Supported provider, nothing connected — 404
curl -X DELETE 'https://api.repull.dev/v1/connect/airbnb' \
  -H 'Authorization: Bearer sk_live_...'
# 404
# { "error": { "code": "not_found", "message": "No airbnb connection found" } }

The accountId here is the same Airbnb host id the Airbnb collection routes take as ?account_id= — see Account scope → Several Airbnb accounts.

Revoking on Airbnb is not enough

A host can also revoke access from their Airbnb account (Account → Privacy & sharing → Connected apps). That alone does not update your workspace, so call this endpoint as well.
AI