> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://docs.modex.com/llms.txt.
> For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://docs.modex.com/_mcp/server.

# List MLS deletes

GET https://api.modex.com/v1/resources/mls/deletes

Deletion log for MLS records removed from the list feed. The list endpoint does not include these records. Cursor-paginated. Each item is `{ id, reference_id, type, reason, deleted_at }`, where `id` is the log row ID and `reference_id` is the removed MLS transaction. `type` is `mls`. `reason` tells you what to do with the object `reference_id` names: `inactive` means mark it inactive, and `deleted` or `soft_deleted` means delete it.

`inactive` means Modex removed the record from the feed. The same record, with the same id, can become active again on `GET /v1/resources/mls`. When it does, `updated_at` changes, so a later incremental sync of that list includes it.

**Keeping in sync:** the first request is `sort=deleted_at&filter[deleted_at]=gte:LAST_SYNC_TIME&limit=100`. For the next page, request `pagination.next_page_url` until it is `null`. After that last page, save the latest `deleted_at` you received and use that time as `LAST_SYNC_TIME` on the following sync. Look up one removed record with `filter[reference_id]`.

Requires the same data agreement as the list. Without one the request returns 403. This feed is not limited by state.

**Sort:** `deleted_at` (default). Prefix with `-` for descending. Rows with the same time are ordered by log `id`.\
**Filters:** `deleted_at`, `id`, `reference_id`.

## Fields

| Field          | Type     | Description                                                                                                                                                                            |
| -------------- | -------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `id`           | string   | Deletion log row ID (UUID).                                                                                                                                                            |
| `reference_id` | string   | ID of the removed record (UUID).                                                                                                                                                       |
| `type`         | string   | Always `mls`.                                                                                                                                                                          |
| `reason`       | string   | `inactive`, `deleted`, or `soft_deleted`. `inactive` means the record left the feed and can become active again under the same id on `GET /v1/resources/mls`, with a new `updated_at`. |
| `deleted_at`   | datetime | When the record was removed.                                                                                                                                                           |

Reference: https://docs.modex.com/api-reference/real-estate-data/mls-transactions/list-mls-deletes

## Authentication

- `Authorization` header (bearer token, required) — Bearer authentication of the form `Bearer <token>`, where token is your auth token.

## Request

### Query parameters

- `limit` (integer, optional) — Page size. Defaults to 25. Maximum is 500.
- `sort` (string, optional) — Sort order: `deleted_at` (default). Prefix with `-` for descending. Rows with the same time are ordered by log `id`.
- `filter[deleted_at]` (string, optional) — When the record was removed. Accepts an operator: `gte:`, `gt:`, `lte:`, or `lt:`. Combine two with a comma for a range, for example `gte:2026-01-01T00:00:00Z,lt:2026-02-01T00:00:00Z`. Without an operator the value must match exactly. Write times in UTC with `Z`, or URL-encode the `+` in an offset.
- `filter[id]` (string, optional) — Exact deletion log row ID.
- `filter[reference_id]` (string, optional) — Exact ID of the removed MLS transaction. Use it to check whether a specific record was removed.
- `cursor` (string, optional) — Value of `pagination.next_cursor` from the previous page. Leave out for the first page. Keep `sort` and filters unchanged between pages.

## Response

### 200

OK

- `data` (list of V1ResourcesMlsDeletesGetResponsesContentApplicationJsonSchemaDataItems, optional) — The records on this page.
- `pagination` (V1ResourcesMlsDeletesGetResponsesContentApplicationJsonSchemaPagination, optional) — Cursor details for the next and previous pages. See Pagination in Getting started.

## Errors

### 403 Forbidden Error

Forbidden

- `error` (ApiErrorError, required)

## Types

### V1ResourcesMlsDeletesGetResponsesContentApplicationJsonSchemaDataItems

- `id` (string, optional) — Deletion log row ID (UUID).
- `reference_id` (string, optional) — ID of the removed record (UUID).
- `type` (string, optional) — Always `mls`.
- `reason` (string, optional) — `inactive`, `deleted`, or `soft_deleted`. `inactive` means the record left the feed and can become active again under the same id on `GET /v1/resources/mls`, with a new `updated_at`.
- `deleted_at` (datetime, optional) — When the record was removed.

### V1ResourcesMlsDeletesGetResponsesContentApplicationJsonSchemaPagination

Cursor details for the next and previous pages. See Pagination in Getting started.

- `per_page` (integer, optional) — Page size used for this response.
- `next_cursor` (string, optional) — Pass as `cursor` to get the next page. `null` on the last page.
- `next_page_url` (string, optional) — Full URL of the next page. `null` on the last page.
- `prev_cursor` (any, optional) — Pass as `cursor` to get the previous page. `null` on the first page.
- `prev_page_url` (any, optional) — Full URL of the previous page. `null` on the first page.

### ApiErrorError

- `type` (string, required) — Error category: invalid_request, authentication_error, permission_error, not_found, rate_limit_error, or api_error.
- `code` (string, required) — Specific error code. Same as `type`, except `validation_error` for request-body validation failures.
- `message` (string, required) — Human-readable explanation.
- `details` (map from string to list of string, optional) — Validation errors only: each invalid field mapped to its messages.

## Examples

**Response**

```json
{
  "data": [
    {
      "id": "a4c8e1b2-6d3f-4a91-9c06-1f5b8e2a6d40",
      "reference_id": "77b1e2d3-4c5f-4a6b-9c8d-7e6f5a4b3c2d",
      "type": "mls",
      "reason": "deleted",
      "deleted_at": "2026-10-06T15:04:11+00:00"
    }
  ],
  "pagination": {
    "per_page": 25,
    "next_cursor": "eyJkZWxldGVkX2F0IjoiMjAyNi0xMC0wNiAxNTowNDoxMSIsIl9wb2ludHNUb05leHRJdGVtcyI6dHJ1ZX0",
    "next_page_url": "https://api.modex.com/v1/resources/mls/deletes?limit=25&sort=deleted_at&cursor=eyJkZWxldGVkX2F0IjoiMjAyNi0xMC0wNiAxNTowNDoxMSIsIl9wb2ludHNUb05leHRJdGVtcyI6dHJ1ZX0"
  }
}
```

**SDK Code**

```python MLS deletes
import requests

url = "https://api.modex.com/v1/resources/mls/deletes"

querystring = {"cursor":"{{cursor}}","filter[deleted_at]":"gte:2026-01-01T00:00:00Z","filter[id]":"a4c8e1b2-6d3f-4a91-9c06-1f5b8e2a6d40","filter[reference_id]":"77b1e2d3-4c5f-4a6b-9c8d-7e6f5a4b3c2d","limit":"25","sort":"deleted_at"}

headers = {"Authorization": "Bearer <token>"}

response = requests.get(url, headers=headers, params=querystring)

print(response.json())
```

```javascript MLS deletes
const url = 'https://api.modex.com/v1/resources/mls/deletes?cursor=%7B%7Bcursor%7D%7D&filter%5Bdeleted_at%5D=gte%3A2026-01-01T00%3A00%3A00Z&filter%5Bid%5D=a4c8e1b2-6d3f-4a91-9c06-1f5b8e2a6d40&filter%5Breference_id%5D=77b1e2d3-4c5f-4a6b-9c8d-7e6f5a4b3c2d&limit=25&sort=deleted_at';
const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
```

```go MLS deletes
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "https://api.modex.com/v1/resources/mls/deletes?cursor=%7B%7Bcursor%7D%7D&filter%5Bdeleted_at%5D=gte%3A2026-01-01T00%3A00%3A00Z&filter%5Bid%5D=a4c8e1b2-6d3f-4a91-9c06-1f5b8e2a6d40&filter%5Breference_id%5D=77b1e2d3-4c5f-4a6b-9c8d-7e6f5a4b3c2d&limit=25&sort=deleted_at"

	req, _ := http.NewRequest("GET", url, nil)

	req.Header.Add("Authorization", "Bearer <token>")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
```

```ruby MLS deletes
require 'uri'
require 'net/http'

url = URI("https://api.modex.com/v1/resources/mls/deletes?cursor=%7B%7Bcursor%7D%7D&filter%5Bdeleted_at%5D=gte%3A2026-01-01T00%3A00%3A00Z&filter%5Bid%5D=a4c8e1b2-6d3f-4a91-9c06-1f5b8e2a6d40&filter%5Breference_id%5D=77b1e2d3-4c5f-4a6b-9c8d-7e6f5a4b3c2d&limit=25&sort=deleted_at")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'

response = http.request(request)
puts response.read_body
```

```java MLS deletes
import com.mashape.unirest.http.HttpResponse;
import com.mashape.unirest.http.Unirest;

HttpResponse<String> response = Unirest.get("https://api.modex.com/v1/resources/mls/deletes?cursor=%7B%7Bcursor%7D%7D&filter%5Bdeleted_at%5D=gte%3A2026-01-01T00%3A00%3A00Z&filter%5Bid%5D=a4c8e1b2-6d3f-4a91-9c06-1f5b8e2a6d40&filter%5Breference_id%5D=77b1e2d3-4c5f-4a6b-9c8d-7e6f5a4b3c2d&limit=25&sort=deleted_at")
  .header("Authorization", "Bearer <token>")
  .asString();
```

```php MLS deletes
<?php
require_once('vendor/autoload.php');

$client = new \GuzzleHttp\Client();

$response = $client->request('GET', 'https://api.modex.com/v1/resources/mls/deletes?cursor=%7B%7Bcursor%7D%7D&filter%5Bdeleted_at%5D=gte%3A2026-01-01T00%3A00%3A00Z&filter%5Bid%5D=a4c8e1b2-6d3f-4a91-9c06-1f5b8e2a6d40&filter%5Breference_id%5D=77b1e2d3-4c5f-4a6b-9c8d-7e6f5a4b3c2d&limit=25&sort=deleted_at', [
  'headers' => [
    'Authorization' => 'Bearer <token>',
  ],
]);

echo $response->getBody();
```

```csharp MLS deletes
using RestSharp;

var client = new RestClient("https://api.modex.com/v1/resources/mls/deletes?cursor=%7B%7Bcursor%7D%7D&filter%5Bdeleted_at%5D=gte%3A2026-01-01T00%3A00%3A00Z&filter%5Bid%5D=a4c8e1b2-6d3f-4a91-9c06-1f5b8e2a6d40&filter%5Breference_id%5D=77b1e2d3-4c5f-4a6b-9c8d-7e6f5a4b3c2d&limit=25&sort=deleted_at");
var request = new RestRequest(Method.GET);
request.AddHeader("Authorization", "Bearer <token>");
IRestResponse response = client.Execute(request);
```

```swift MLS deletes
import Foundation

let headers = ["Authorization": "Bearer <token>"]

let request = NSMutableURLRequest(url: NSURL(string: "https://api.modex.com/v1/resources/mls/deletes?cursor=%7B%7Bcursor%7D%7D&filter%5Bdeleted_at%5D=gte%3A2026-01-01T00%3A00%3A00Z&filter%5Bid%5D=a4c8e1b2-6d3f-4a91-9c06-1f5b8e2a6d40&filter%5Breference_id%5D=77b1e2d3-4c5f-4a6b-9c8d-7e6f5a4b3c2d&limit=25&sort=deleted_at")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "GET"
request.allHTTPHeaderFields = headers

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
```