---
updatedAt: 2026-09-29T03:37:44.000Z
agentTools:
  projectIndex: https://docs.hosttools.com/llms.txt
---

# Webhook Listing Group

This documents the webhook payload that Host Tools will POST to your configured webhook URL when a listing group is added, changed or deleted.

**Note: This is not an API endpoint you call.**
This documents the requests that Host Tools sends TO your webhook URL.

## When triggered:
- `listingGroup.created`: a listing group is created
- `listingGroup.changed`: a group's name, access code, owner import link or listings change. The payload has the group's full current `listingIDs`; compare it with your copy to see which listings joined or left. Several edits within 30 seconds are sent as one webhook with the latest data.
- `listingGroup.deleted`: a listing group is deleted

## Handling the webhook:
1. Your endpoint should respond with HTTP 200 status
2. Process the data asynchronously if needed
3. Respond within 30 seconds


# 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": {
      "ListingGroup": {
        "required": [
          "_id",
          "name",
          "listingIDs",
          "ownerImportLink"
        ],
        "properties": {
          "_id": {
            "type": "string",
            "description": "Listing group ID",
            "example": "6553a15c2f4c1e0017a1b1c1"
          },
          "name": {
            "type": "string",
            "description": "Display name of the listing group",
            "example": "Owner John"
          },
          "listingIDs": {
            "type": "array",
            "description": "IDs of the listings in this group",
            "items": {
              "type": "string"
            }
          },
          "accessCode": {
            "type": "string",
            "description": "Access code for the public turnover URL (Pro feature; optional)"
          },
          "ownerImportLink": {
            "type": "string",
            "nullable": true,
            "description": "Shareable URL an owner can use to connect OTA accounts and import\nlistings into this group. `null` until you call\n/api/listingGroups/{listingGroupID}/generateOwnerImportToken.\n\nOptional query params you can append, for example to embed the page\nin an iframe:\n- `channels` — comma-separated list limiting which channel tiles appear\n  (`airbnb`, `vrbo`, `booking`, `houfy`), e.g. `&channels=vrbo,booking`.\n  Omitted or all-unrecognized shows all channels.\n- `embed=1` (or `embed=true`) — hides the Host Tools footer, support\n  widget and analytics scripts for a clean iframe embed.\n- `redirect` — HTTPS URL on an allowlisted domain. After the owner\n  imports listings, the whole browser tab goes there, unchanged.\n\nYour domain must be allowlisted before browsers will show the page in\nyour iframe, and Airbnb can't be connected inside an iframe. See\n[Embedding Owner Import](https://docs.hosttools.com/reference/owner-import-embed).\n",
            "example": "https://app.hosttools.com/owner-import?ownerImportToken=8f1a2c3d-..."
          }
        }
      },
      "Success": {
        "required": [
          "success"
        ],
        "properties": {
          "success": {
            "type": "boolean"
          }
        }
      },
      "ListingGroupWebhook": {
        "type": "object",
        "required": [
          "type",
          "event",
          "document"
        ],
        "properties": {
          "type": {
            "type": "string",
            "enum": [
              "listingGroup"
            ]
          },
          "event": {
            "type": "string",
            "enum": [
              "listingGroup.created",
              "listingGroup.changed",
              "listingGroup.deleted"
            ]
          },
          "document": {
            "description": "For `listingGroup.created` and `listingGroup.changed`, the listing group as /api/getListingGroup/{listingGroupID} returns it at the time of sending, with its full current `listingIDs`. For `listingGroup.deleted`, only `_id` and `userID`.",
            "oneOf": [
              {
                "$ref": "#/components/schemas/ListingGroup"
              },
              {
                "$ref": "#/components/schemas/DeletedRecord"
              }
            ]
          }
        }
      },
      "DeletedRecord": {
        "type": "object",
        "required": [
          "_id",
          "userID"
        ],
        "properties": {
          "_id": {
            "type": "string",
            "description": "ID of the deleted listing or listing group",
            "example": "5e7a6c0b0f2c9c0017b0b0b0"
          },
          "userID": {
            "type": "string",
            "description": "User ID it belonged to",
            "example": "5e7a6c0b0f2c9c0017b0b0b0"
          }
        }
      }
    }
  },
  "security": [
    {
      "bearerAuth": []
    },
    {
      "authToken": []
    }
  ],
  "paths": {
    "/webhooks/listingGroup": {
      "post": {
        "summary": "Webhook Listing Group",
        "description": "This documents the webhook payload that Host Tools will POST to your configured webhook URL when a listing group is added, changed or deleted.\n\n**Note: This is not an API endpoint you call.**\nThis documents the requests that Host Tools sends TO your webhook URL.\n\n## When triggered:\n- `listingGroup.created`: a listing group is created\n- `listingGroup.changed`: a group's name, access code, owner import link or listings change. The payload has the group's full current `listingIDs`; compare it with your copy to see which listings joined or left. Several edits within 30 seconds are sent as one webhook with the latest data.\n- `listingGroup.deleted`: a listing group is deleted\n\n## Handling the webhook:\n1. Your endpoint should respond with HTTP 200 status\n2. Process the data asynchronously if needed\n3. Respond within 30 seconds\n",
        "tags": [
          "Webhook"
        ],
        "requestBody": {
          "description": "Webhook payload sent by Host Tools",
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ListingGroupWebhook"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Webhook received successfully",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Success"
                }
              }
            }
          }
        }
      }
    }
  }
}
```