---
updatedAt: 2026-06-12T16:45:46.000Z
agentTools:
  projectIndex: https://docs.hosttools.com/llms.txt
---

# Headless Airbnb Auto-Connect

Redirects the end-user's browser straight to Airbnb's OAuth consent
screen without showing any Host Tools UI. After the owner consents,
Host Tools auto-imports every net-new listing from that Airbnb account
into the listing group associated with `ownerImportToken`, then
redirects the owner to the partner's `redirect` URL with result query
parameters appended.

While the listings import, the owner waits on a Host Tools page that
counts them ("120 of 349 listings"). A large account takes several
minutes. The page sends the owner to your `redirect` when the import
finishes. If the owner closes it, the import still finishes, but the
redirect doesn't happen: use the `listingGroup.changed` webhook to see
the listings join the group.

**This is a browser redirect URL, not a JSON endpoint.** Send the owner's
browser to this URL — do not call it with `fetch` or `axios`.

**Typical integration flow:**
1. Call `POST /api/listingGroups/{listingGroupID}/generateOwnerImportToken`
   to obtain an `ownerImportToken` for the target listing group.
2. Construct the auto-connect URL with the token, your allowlisted `redirect`
   URL, and the desired `scope`.
3. Redirect your end-user's browser to that URL.
4. After Airbnb consent and the import, the owner is redirected to your
   `redirect` URL. Read `owner-import-status` to determine success or
   failure.

**On success**, the partner `redirect` receives:
`?owner-import-status=success&imported=<n>&accountID=<id>`
plus `&failed=<n>` when some listings couldn't be imported.

**On failure**, the partner `redirect` receives:
`?owner-import-status=error&owner-import-error=<code>`
where `<code>` is one of `invalid-link`, `invalid-scope`, `oauth-denied`,
`oauth-failed`, `import-failed`.

Listings that were already imported on this Host Tools user are skipped —
they are not re-imported or moved between groups. Only truly-new listings
are added to the group.

If the `redirect` parameter is missing or its domain is not allowlisted,
the endpoint returns a `400 ErrorModel` response — this is the only path
that doesn't end in a 302, because there's no safe partner URL to bounce
the error to.

Only Airbnb supports headless auto-connect. VRBO, Booking.com, and Houfy
still use the standard owner-import flow.

If you embed the owner-import page in an iframe, use this endpoint for
Airbnb: Airbnb's sign-in pages can't load inside an iframe. See
[Embedding Owner Import](https://docs.hosttools.com/reference/owner-import-embed).


# OpenAPI definition

```json
{
  "openapi": "3.0.0",
  "info": {
    "version": "1.30.0",
    "title": "Host Tools API Reference",
    "description": "Host Tools API. Supports two authentication methods:\n- **Legacy auth token**: Pass the `authToken` header with your user token\n- **OAuth 2.0 Bearer token**: Pass `Authorization: Bearer <token>` header (see OAuth endpoints below)\n\nOAuth 2.0 is recommended for new integrations. It supports granular scopes and automatic token refresh.\n",
    "contact": {
      "name": "Tom Krones",
      "email": "support@hosttools.com",
      "url": "https://hosttools.com"
    }
  },
  "servers": [
    {
      "url": "https://app.hosttools.com"
    }
  ],
  "components": {
    "securitySchemes": {
      "bearerAuth": {
        "type": "http",
        "scheme": "bearer",
        "bearerFormat": "OAuth2 Access Token",
        "description": "OAuth 2.0 access token obtained via the authorization code flow"
      },
      "authToken": {
        "type": "apiKey",
        "in": "header",
        "name": "authToken",
        "description": "Legacy user authentication token (UUID)"
      }
    },
    "schemas": {
      "ErrorModel": {
        "required": [
          "message"
        ],
        "properties": {
          "message": {
            "type": "string"
          }
        }
      }
    }
  },
  "security": [
    {
      "bearerAuth": []
    },
    {
      "authToken": []
    }
  ],
  "paths": {
    "/api/owner-import/auto-connect/airbnb": {
      "get": {
        "summary": "Headless Airbnb Auto-Connect",
        "description": "Redirects the end-user's browser straight to Airbnb's OAuth consent\nscreen without showing any Host Tools UI. After the owner consents,\nHost Tools auto-imports every net-new listing from that Airbnb account\ninto the listing group associated with `ownerImportToken`, then\nredirects the owner to the partner's `redirect` URL with result query\nparameters appended.\n\nWhile the listings import, the owner waits on a Host Tools page that\ncounts them (\"120 of 349 listings\"). A large account takes several\nminutes. The page sends the owner to your `redirect` when the import\nfinishes. If the owner closes it, the import still finishes, but the\nredirect doesn't happen: use the `listingGroup.changed` webhook to see\nthe listings join the group.\n\n**This is a browser redirect URL, not a JSON endpoint.** Send the owner's\nbrowser to this URL — do not call it with `fetch` or `axios`.\n\n**Typical integration flow:**\n1. Call `POST /api/listingGroups/{listingGroupID}/generateOwnerImportToken`\n   to obtain an `ownerImportToken` for the target listing group.\n2. Construct the auto-connect URL with the token, your allowlisted `redirect`\n   URL, and the desired `scope`.\n3. Redirect your end-user's browser to that URL.\n4. After Airbnb consent and the import, the owner is redirected to your\n   `redirect` URL. Read `owner-import-status` to determine success or\n   failure.\n\n**On success**, the partner `redirect` receives:\n`?owner-import-status=success&imported=<n>&accountID=<id>`\nplus `&failed=<n>` when some listings couldn't be imported.\n\n**On failure**, the partner `redirect` receives:\n`?owner-import-status=error&owner-import-error=<code>`\nwhere `<code>` is one of `invalid-link`, `invalid-scope`, `oauth-denied`,\n`oauth-failed`, `import-failed`.\n\nListings that were already imported on this Host Tools user are skipped —\nthey are not re-imported or moved between groups. Only truly-new listings\nare added to the group.\n\nIf the `redirect` parameter is missing or its domain is not allowlisted,\nthe endpoint returns a `400 ErrorModel` response — this is the only path\nthat doesn't end in a 302, because there's no safe partner URL to bounce\nthe error to.\n\nOnly Airbnb supports headless auto-connect. VRBO, Booking.com, and Houfy\nstill use the standard owner-import flow.\n\nIf you embed the owner-import page in an iframe, use this endpoint for\nAirbnb: Airbnb's sign-in pages can't load inside an iframe. See\n[Embedding Owner Import](https://docs.hosttools.com/reference/owner-import-embed).\n",
        "tags": [
          "Owner Import"
        ],
        "parameters": [
          {
            "name": "ownerImportToken",
            "in": "query",
            "description": "Listing-group share token. Obtain via\n`POST /api/listingGroups/{listingGroupID}/generateOwnerImportToken`.\n",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "redirect",
            "in": "query",
            "description": "Absolute HTTPS URL on an allowlisted domain. The owner is redirected\nhere after the flow completes (success or failure), with result query\nparameters appended. Contact the Host Tools team to allowlist your domain.\n",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "scope",
            "in": "query",
            "description": "Airbnb OAuth scope. `full` (default) requests full host permissions;\n`setup` requests a more restricted permission set. Most partners should\nuse the default.\n",
            "required": false,
            "schema": {
              "type": "string",
              "enum": [
                "full",
                "setup"
              ],
              "default": "full"
            }
          }
        ],
        "responses": {
          "302": {
            "description": "Redirect — either to Airbnb's OAuth consent screen (on valid token +\nallowlisted redirect), or back to the partner's `redirect` URL with an\nerror code if token/scope validation fails.\n"
          },
          "400": {
            "description": "Validation error — `ownerImportToken`/`redirect`/`scope` failed to\nparse or the redirect domain is not allowlisted. Returned only when\nthere's no safe partner URL to bounce the error to.\n",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorModel"
                }
              }
            }
          }
        }
      }
    }
  }
}
```