Skip to main content

Segments: Portfolio Groups and Filters

Create, read and manage segments, saved filtered groups of listings, through the RM API.

Written by Ryo

Segments are saved filtered views of your portfolio. Each segment has a filter_backend that defines which listings belong to it — Wheelhouse evaluates the filter dynamically, so membership updates automatically as listing data changes. Use segments to scope bulk operations and reporting to a subset of your portfolio.


GET /segments

List all portfolio segments for the authenticated user.

curl "https://api.usewheelhouse.com/ss_api/v1/segments" \
-H "X-Integration-Api-Key: your_api_key_here"

Response

Returns a flat array of segment objects:

[
{
"id": 1001,
"name": "Beach Properties",
"description": "All oceanfront listings",
"is_default": false,
"created_at": "2025-06-01T10:00:00Z",
"updated_at": "2026-01-15T08:30:00Z"
},
{
"id": 1002,
"name": "Mountain Cabins",
"description": null,
"is_default": true,
"created_at": "2025-09-10T14:00:00Z",
"updated_at": "2026-02-20T11:00:00Z"
}
]

Response fields

  • id — Wheelhouse's internal segment ID (integer)

  • name — the segment name

  • description — optional description (nullable)

  • filter_backend — the filter object defining which listings belong to this segment (see POST /segments for filter reference)

  • is_default — whether this is the user's default segment

  • created_at / updated_at — ISO 8601 timestamps


POST /segments

Create a new portfolio segment.

curl "https://api.usewheelhouse.com/ss_api/v1/segments" \
-H "X-Integration-Api-Key: your_api_key_here" \
-H "Content-Type: application/json" \
-d '{
"name": "Beach Properties",
"description": "All oceanfront listings",
"filter_backend": {
"bedrooms_gte": 2,
"source": "A",
"listings.title": "Beach,Ocean"
}
}'

Request body fields

  • name (string, required) — name of the segment

  • description (string, optional) — optional description

  • filter_backend (object, optional) — filter definition controlling which listings belong to this segment (see below)

  • is_default (boolean, optional) — set as the user's default segment; any existing default is cleared

filter_backend structure

The filter_backend is a flat object where each key is a listing attribute path with an optional operator suffix, and the value is the match criterion. All conditions are ANDed — a listing must match every condition to be included. Boolean filters (no suffix, accept true/false):

  • is_live — listing is live on its channel

  • listings.is_active — listing is active in Wheelhouse

  • listing_preferences.automatic_rate_posting_enabled — auto rate posting is on

Old performance filter keys are ignored

Performance filters used to look like listing_stats.revenue_0_30_gte. Those old keys are now ignored, so that condition no longer filters anything. Rewrite them in the new format: listing_stats.revenue_0_30_gte becomes listing_stats_rolling:metric:revenue:next_30_gte, and a trailing window such as listing_stats.revenue_30_0_gte becomes listing_stats_rolling:metric:revenue:past_30_gte. The last booked date filter, listing_stats.last_booked_at, is unchanged.

Numeric range filters (suffixes: none =, _ne ≠, _lt <, _gt >, _lte ≤, _gte ≥):

  • bedrooms, bathrooms, sleeps, beds

  • listing_preferences.base_price, listing_preferences.weekly_discount, listing_preferences.monthly_discount

  • Performance: listing_stats_rolling:metric:{metric}:{window} — metric is revenue, occupancy or booking_count; window is next_N (the next N days) or past_N (the last N days), where N is 7, 14, 21, 30, 60, 90, 180 or 365 (e.g. listing_stats_rolling:metric:revenue:next_30_gte)

Enumeration filters (suffixes: none =, _ne ≠):

  • source — channel ID: "A" (Airbnb), "V" (Vrbo), "B" (Booking.com)

  • market_id — Wheelhouse market ID (integer)

  • country_code — ISO 3166-1 alpha-2 (e.g. "US")

  • listings.currency — ISO 4217 currency code

String match filters (suffixes: none contains, _not does not contain; comma-separate for OR):

  • listings.title, listing_views.display_name, source_address

Tag filters:

  • tags.id — listing has any of the listed tag IDs (OR)

  • tags.id_ne — listing has none of the listed tag IDs

  • tags.id_and — listing has all of the listed tag IDs

Date range filters (same suffixes as numeric; values are ISO 8601 date strings or integers for rolling days):

  • listings.created_at, listing_stats.last_booked_at

Membership filters:

  • listings.id_in / listings.id_not_in — include/exclude specific listing IDs

  • latlong_distance_from_lte — value format: "latitude,longitude,meters"

Example:

{
"is_live": true,
"bedrooms_gte": 2,
"source": "A",
"listings.title": "Beach,Ocean",
"tags.id_pool": [12],
"listings.created_at_gte": "2025-01-01"
}

Status codes

  • 201 — segment created; response is the new segment object

  • 400 — invalid request body (e.g. name is missing)

  • 403 — read-only API key cannot create segments


PUT /segments/:segment_id

Update an existing portfolio segment. All fields are optional — omitted fields are left unchanged.

curl --request PUT "https://api.usewheelhouse.com/ss_api/v1/segments/1001" \
-H "X-Integration-Api-Key: your_api_key_here" \
-H "Content-Type: application/json" \
-d '{
"name": "Beachfront Properties",
"is_default": true
}'

Path parameters

  • segment_id (integer, required) — Wheelhouse internal segment ID

Request body fields

  • name (string, optional) — new name for the segment

  • description (string, optional) — new description

  • filter_backend (object, optional) — updated filter definition (same structure as POST)

  • is_default (boolean, optional) — promote to default segment; any existing default is cleared

Status codes

  • 200 — updated segment returned

  • 403 — read-only API key cannot update segments

  • 404 — segment not found or does not belong to the authenticated user


DELETE /segments/:segment_id

Permanently delete a portfolio segment you own. The listings in the segment are not changed. If you delete your default segment, you have no default segment until you set another one.

curl --request DELETE "https://api.usewheelhouse.com/ss_api/v1/segments/1001" \
-H "X-Integration-Api-Key: your_api_key_here"

Path parameters

  • segment_id (integer, required) — Wheelhouse internal segment ID

Segments assigned to a team member

A segment assigned to a team member can't be deleted, because that would change which listings they can access. Remove it from their assigned segments first with POST /teams/members/{sub_user_id}/assigned_segments, then delete it.

Status codes

  • 204 — segment deleted; no response body

  • 400 — the segment is assigned to a team member; unassign it first

  • 403 — read-only API key cannot delete segments

  • 404 — segment not found or does not belong to the authenticated user

  • 409 — a change to the account's team members is in progress; retry after it finishes


GET /segments/:segment_id/listings

List the listings that belong to a portfolio segment. The segment's filter criteria are evaluated at request time.

curl "https://api.usewheelhouse.com/ss_api/v1/segments/1001/listings" \
-H "X-Integration-Api-Key: your_api_key_here"

Path parameters

  • segment_id (integer, required) — Wheelhouse internal segment ID

Query parameters

  • exclude_inactive (boolean, optional, default: true) — exclude inactive listings from the response

  • per_page (integer, optional, default: 50) — number of listings per page

  • page (integer, optional) — page number

  • offset (integer, optional) — number of items to skip; alternative to page

Response Returns a flat array of listing objects in the same format as GET /listings. Status codes

  • 200 — array of listings

  • 404 — segment not found

Related

  • Dynamic Sets: Competitive Benchmarking

  • Tags & Flags: Custom labels and system indicators

  • How to organize and filter listings (tags, segments, dynamic sets)

  • How to Pull Aggregated Metrics for a Segment

Did this answer your question?