Source: https://www.brixit.io/docs/api-listings-list

# List listings

To list listings in Brixit, send a POST request to /api/automation/v1/execute with operation set to listings.list. Use the data fields below for supported input and filters.

[Listings API](https://www.brixit.io/docs/api-listings) · `listings.list`

[URL](https://www.brixit.io/docs/api-listings-list#url-and-authentication) · [Fields](https://www.brixit.io/docs/api-listings-list#fields) · [Example](https://www.brixit.io/docs/api-listings-list#example-request) · [Response](https://www.brixit.io/docs/api-listings-list#response) · [Try it](https://www.brixit.io/docs/api-listings-list#try-it)

## URL and authentication

`POST https://YOUR-BACKEND/api/automation/v1/execute`

Send `Authorization: Bearer <connection key>`, `Accept: application/json` and
`Content-Type: application/json`. [Create a connection](https://www.brixit.io/docs/api#get-connected).

This operation requires **read access** and CRM permission `view_listing`.
The gateway invokes `GET /api/v1/app/listing` internally.
Use the POST URL above with your automation key, including for read and delete operations.

## Request parameters

| Key | Type | Requirement |
| --- | --- | --- |
| `operation` | string | Required; exactly `listings.list` |
| `data` | object | Optional; see fields below |

## Fields

Fields below belong inside `data`. Dot paths describe nested objects; `*` means each
array item. `nullable` permits null and `sometimes` validates a supplied field.
`in:` lists allowed values; `min:` and `max:` limit the value, length or item count.
`exists:` and `exists_in_company:` require a valid record ID. Conditional rules
such as `required_if` and `required_with` refer to other fields in the same payload.
Use YYYY-MM-DD for date-only values and timestamps with timezone offsets for follow-ups.

| Field | Type | Requirement | Format / validation |
| --- | --- | --- | --- |
| `search` | string | Optional |  — Search by listing title, location address, or listing reference. Example: luxury villa or BRX-1001 |
| `listing_purpose` | string | Optional |  — Filter by listing purpose (rent, sell). Example: rent |
| `listing_type` | array | Optional |  — Filter by listing type IDs (apartment, villa, etc.). Example: [1, 2, 3] |
| `status` | string | Optional |  — Filter by listing status. Example: available |
| `price_start` | numeric | Optional |  — Filter by minimum price. Example: 100000 |
| `price_end` | numeric | Optional |  — Filter by maximum price. Example: 500000 |
| `source_id` | array | Optional |  — Filter by listing source id(s). Example: [1, 2] |
| `location` | array | Optional |  — Filter by location IDs. Example: [1, 2, 3] |
| `bedrooms` | integer | Optional |  — Filter by number of bedrooms. Example: 2 |
| `bathrooms` | integer | Optional |  — Filter by number of bathrooms. Example: 2 |
| `developer` | array | Optional |  — Filter by developer IDs. Example: [1, 2, 3] |
| `created_by` | array | Optional |  — Filter by creator IDs. Example: [1, 2, 3] |
| `assigned_to` | array | Optional |  — Filter by assigned user IDs. Example: [1, 2, 3] |
| `start_date` | date | Optional |  — Filter by creation start date. Example: 2024-01-01 |
| `end_date` | date | Optional |  — Filter by creation end date. Example: 2024-12-31 |
| `sort_type` | string | Optional |  — Field to sort by (default: created_at). Example: price |
| `sort` | string | Optional |  — Direction of sort (ASC, DESC) — default: DESC. Example: DESC |
| `page` | integer | Optional | integer; min:1 — Default 1. |
| `per_page` | integer | Optional | integer; min:1; max:100 — Gateway default 25; clamped to 1–100. |
| `aggregate` | string | Optional |  — Aggregation operation. Supported: sum, avg, min, max, count. When provided, returns aggregated result instead of paginated listings. Example: sum |
| `field` | string | Optional |  — Field to aggregate on. Required for sum/avg/min/max, optional for count. Allowed fields: price, size, plot_size, bedrooms, bathrooms, parkings, build_year, floor_number, total_floors, viewings. Example: price |

## Example request

Replace the example IDs and values with records in your installation. Supply any
additional custom fields required by your company.

```json
{
  "operation": "listings.list",
  "data": {
    "page": 1,
    "per_page": 25
  }
}
```

## Response

Returns matching records in `data`. Paginated results include `meta.current_page`, `meta.last_page`, `meta.per_page`, `meta.total` and `meta.has_more_pages`. Increment the request’s `data.page` while more pages remain. Related fields depend on record visibility and the resource.

The gateway preserves the underlying HTTP status and JSON body. Successful requests return **HTTP 200**. A response may also include localized message fields.

Illustrative response excerpt (additional fields may be returned):

```json
{
  "status": "success",
  "data": [],
  "meta": {
    "current_page": 1,
    "last_page": 1,
    "per_page": 25,
    "total": 0,
    "has_more_pages": false
  }
}
```

## Errors

| HTTP status | Meaning |
| --- | --- |
| 400 | A CRM business rule rejected the action. |
| 401 | Missing, invalid, expired or revoked connection key. |
| 403 | Connection access or CRM permissions do not allow this action. |
| 404 | Operation or record unavailable. |
| 413 | Request or result exceeds its size limit; reduce payload or page size. |
| 422 | Missing or invalid fields, or a CRM business rule rejected the operation. |
| 429 | Rate limit exceeded; wait before retrying. |
| 500 | The server could not complete the operation. |

Validation failures may return `message` / `errors`, or an `error` string with
an optional `fields` array. The tester shows the actual HTTP status and full body.
[Read about limits and retries](https://www.brixit.io/docs/api#errors-and-limits).

## Try it

[Open the interactive API tester](https://www.brixit.io/docs/api-listings-list#try-it)
