> 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.

# Unlock real estate agent contacts

POST https://api.modex.com/v1/contacts/real-estate-agents/unlock
Content-Type: application/json

Unlocks contact data for up to 100 real estate agents in one call. Same body, response, and statuses as **Unlock Loan Officers**.

Returns 403 when contact access or real estate data isn't enabled for your account.

Reference: https://docs.modex.com/api-reference/contacts/unlock-real-estate-agents

## Authentication

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

## Request

### Body (application/json)

This endpoint expects an object.

- `ids` (list of string, optional)

## Response

### 200

OK

- `data` (list of V1ContactsRealEstateAgentsUnlockPostResponsesContentApplicationJsonSchemaDataItems, optional) — The records on this page.
- `usage` (V1ContactsRealEstateAgentsUnlockPostResponsesContentApplicationJsonSchemaUsage, optional) — Your contact-unlock usage after this request. Same shape as Contact Usage.

## Errors

### 403 Forbidden Error

Forbidden

- `error` (ApiErrorError, required)

## Types

### V1ContactsRealEstateAgentsUnlockPostResponsesContentApplicationJsonSchemaDataItems

- `id` (string, optional) — The ID you sent
- `status` (string, optional) — Result for this ID: `unlocked` (newly unlocked, uses quota), `already_unlocked` (free), `not_found`, `unavailable` (no contact data), or `limit_reached` (quota used up).
- `contacts` (V1ContactsRealEstateAgentsUnlockPostResponsesContentApplicationJsonSchemaDataItemsContacts, optional) — `phone_numbers`, `emails`, `websites`, `addresses` as `{type, value}` rows. Present for `unlocked` and `already_unlocked`, otherwise `null`.

### V1ContactsRealEstateAgentsUnlockPostResponsesContentApplicationJsonSchemaUsage

Your contact-unlock usage after this request. Same shape as Contact Usage.

- `used_this_month` (integer, optional)
- `limit` (integer, optional)
- `remaining` (integer, optional)
- `period` (V1ContactsRealEstateAgentsUnlockPostResponsesContentApplicationJsonSchemaUsagePeriod, optional) — The current calendar month, in UTC.

### 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.

### V1ContactsRealEstateAgentsUnlockPostResponsesContentApplicationJsonSchemaDataItemsContacts

`phone_numbers`, `emails`, `websites`, `addresses` as `{type, value}` rows. Present for `unlocked` and `already_unlocked`, otherwise `null`.

- `phone_numbers` (list of V1ContactsRealEstateAgentsUnlockPostResponsesContentApplicationJsonSchemaDataItemsContactsPhoneNumbersItems, optional) — `{type, value}` rows, e.g. `{"type": "mobile", "value": "(503) 555-0142"}`
- `emails` (list of V1ContactsRealEstateAgentsUnlockPostResponsesContentApplicationJsonSchemaDataItemsContactsEmailsItems, optional) — `{type, value}` rows
- `websites` (list of any, optional) — `{type, value}` rows
- `addresses` (list of any, optional)

### V1ContactsRealEstateAgentsUnlockPostResponsesContentApplicationJsonSchemaUsagePeriod

The current calendar month, in UTC.

- `start` (datetime, optional) — Start of the period
- `end` (datetime, optional) — End of the period

### V1ContactsRealEstateAgentsUnlockPostResponsesContentApplicationJsonSchemaDataItemsContactsPhoneNumbersItems

- `type` (string, optional) — Entry type, for example `mobile`, `office`, or `work`
- `value` (string, optional) — The phone number, email address, or URL

### V1ContactsRealEstateAgentsUnlockPostResponsesContentApplicationJsonSchemaDataItemsContactsEmailsItems

- `type` (string, optional) — Entry type, for example `mobile`, `office`, or `work`
- `value` (string, optional) — The phone number, email address, or URL

## Examples

### Unlocked

**Request**

```json
{
  "ids": [
    "e7f8a9b0-c1d2-4e3f-9a4b-5c6d7e8f9a01"
  ]
}
```

**Response**

```json
{
  "data": [
    {
      "id": "e7f8a9b0-c1d2-4e3f-9a4b-5c6d7e8f9a01",
      "status": "unlocked",
      "contacts": {
        "phone_numbers": [
          {
            "type": "mobile",
            "value": "(503) 555-0177"
          }
        ],
        "emails": [
          {
            "type": "work",
            "value": "casey.morgan@example.com"
          }
        ],
        "websites": [],
        "addresses": []
      }
    }
  ],
  "usage": {
    "used_this_month": 44,
    "limit": 250,
    "remaining": 206,
    "period": {
      "start": "2026-10-01T00:00:00+00:00",
      "end": "2026-10-31T23:59:59+00:00"
    }
  }
}
```

**SDK Code**

```python Unlocked
import requests

url = "https://api.modex.com/v1/contacts/real-estate-agents/unlock"

payload = { "ids": ["e7f8a9b0-c1d2-4e3f-9a4b-5c6d7e8f9a01"] }
headers = {
    "Authorization": "Bearer <token>",
    "Content-Type": "application/json"
}

response = requests.post(url, json=payload, headers=headers)

print(response.json())
```

```javascript Unlocked
const url = 'https://api.modex.com/v1/contacts/real-estate-agents/unlock';
const options = {
  method: 'POST',
  headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
  body: '{"ids":["e7f8a9b0-c1d2-4e3f-9a4b-5c6d7e8f9a01"]}'
};

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

```go Unlocked
package main

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

func main() {

	url := "https://api.modex.com/v1/contacts/real-estate-agents/unlock"

	payload := strings.NewReader("{\n  \"ids\": [\n    \"e7f8a9b0-c1d2-4e3f-9a4b-5c6d7e8f9a01\"\n  ]\n}")

	req, _ := http.NewRequest("POST", url, payload)

	req.Header.Add("Authorization", "Bearer <token>")
	req.Header.Add("Content-Type", "application/json")

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

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

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

}
```

```ruby Unlocked
require 'uri'
require 'net/http'

url = URI("https://api.modex.com/v1/contacts/real-estate-agents/unlock")

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

request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n  \"ids\": [\n    \"e7f8a9b0-c1d2-4e3f-9a4b-5c6d7e8f9a01\"\n  ]\n}"

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

```java Unlocked
import com.mashape.unirest.http.HttpResponse;
import com.mashape.unirest.http.Unirest;

HttpResponse<String> response = Unirest.post("https://api.modex.com/v1/contacts/real-estate-agents/unlock")
  .header("Authorization", "Bearer <token>")
  .header("Content-Type", "application/json")
  .body("{\n  \"ids\": [\n    \"e7f8a9b0-c1d2-4e3f-9a4b-5c6d7e8f9a01\"\n  ]\n}")
  .asString();
```

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

$client = new \GuzzleHttp\Client();

$response = $client->request('POST', 'https://api.modex.com/v1/contacts/real-estate-agents/unlock', [
  'body' => '{
  "ids": [
    "e7f8a9b0-c1d2-4e3f-9a4b-5c6d7e8f9a01"
  ]
}',
  'headers' => [
    'Authorization' => 'Bearer <token>',
    'Content-Type' => 'application/json',
  ],
]);

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

```csharp Unlocked
using RestSharp;

var client = new RestClient("https://api.modex.com/v1/contacts/real-estate-agents/unlock");
var request = new RestRequest(Method.POST);
request.AddHeader("Authorization", "Bearer <token>");
request.AddHeader("Content-Type", "application/json");
request.AddParameter("application/json", "{\n  \"ids\": [\n    \"e7f8a9b0-c1d2-4e3f-9a4b-5c6d7e8f9a01\"\n  ]\n}", ParameterType.RequestBody);
IRestResponse response = client.Execute(request);
```

```swift Unlocked
import Foundation

let headers = [
  "Authorization": "Bearer <token>",
  "Content-Type": "application/json"
]
let parameters = ["ids": ["e7f8a9b0-c1d2-4e3f-9a4b-5c6d7e8f9a01"]] as [String : Any]

let postData = JSONSerialization.data(withJSONObject: parameters, options: [])

let request = NSMutableURLRequest(url: NSURL(string: "https://api.modex.com/v1/contacts/real-estate-agents/unlock")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "POST"
request.allHTTPHeaderFields = headers
request.httpBody = postData as Data

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()
```

### Real estate not enabled

**Request**

```json
{
  "ids": [
    "e7f8a9b0-c1d2-4e3f-9a4b-5c6d7e8f9a01"
  ]
}
```

**Response**

```json
{
  "data": [
    {
      "id": "e7f8a9b0-c1d2-4e3f-9a4b-5c6d7e8f9a01",
      "status": "unlocked",
      "contacts": {
        "phone_numbers": [
          {
            "type": "mobile",
            "value": "(503) 555-0177"
          }
        ],
        "emails": [
          {
            "type": "work",
            "value": "casey.morgan@example.com"
          }
        ],
        "websites": [],
        "addresses": []
      }
    }
  ],
  "usage": {
    "used_this_month": 44,
    "limit": 250,
    "remaining": 206,
    "period": {
      "start": "2026-10-01T00:00:00+00:00",
      "end": "2026-10-31T23:59:59+00:00"
    }
  }
}
```

**SDK Code**

```python Real estate not enabled
import requests

url = "https://api.modex.com/v1/contacts/real-estate-agents/unlock"

payload = { "ids": ["e7f8a9b0-c1d2-4e3f-9a4b-5c6d7e8f9a01"] }
headers = {
    "Authorization": "Bearer <token>",
    "Content-Type": "application/json"
}

response = requests.post(url, json=payload, headers=headers)

print(response.json())
```

```javascript Real estate not enabled
const url = 'https://api.modex.com/v1/contacts/real-estate-agents/unlock';
const options = {
  method: 'POST',
  headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
  body: '{"ids":["e7f8a9b0-c1d2-4e3f-9a4b-5c6d7e8f9a01"]}'
};

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

```go Real estate not enabled
package main

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

func main() {

	url := "https://api.modex.com/v1/contacts/real-estate-agents/unlock"

	payload := strings.NewReader("{\n  \"ids\": [\n    \"e7f8a9b0-c1d2-4e3f-9a4b-5c6d7e8f9a01\"\n  ]\n}")

	req, _ := http.NewRequest("POST", url, payload)

	req.Header.Add("Authorization", "Bearer <token>")
	req.Header.Add("Content-Type", "application/json")

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

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

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

}
```

```ruby Real estate not enabled
require 'uri'
require 'net/http'

url = URI("https://api.modex.com/v1/contacts/real-estate-agents/unlock")

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

request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n  \"ids\": [\n    \"e7f8a9b0-c1d2-4e3f-9a4b-5c6d7e8f9a01\"\n  ]\n}"

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

```java Real estate not enabled
import com.mashape.unirest.http.HttpResponse;
import com.mashape.unirest.http.Unirest;

HttpResponse<String> response = Unirest.post("https://api.modex.com/v1/contacts/real-estate-agents/unlock")
  .header("Authorization", "Bearer <token>")
  .header("Content-Type", "application/json")
  .body("{\n  \"ids\": [\n    \"e7f8a9b0-c1d2-4e3f-9a4b-5c6d7e8f9a01\"\n  ]\n}")
  .asString();
```

```php Real estate not enabled
<?php
require_once('vendor/autoload.php');

$client = new \GuzzleHttp\Client();

$response = $client->request('POST', 'https://api.modex.com/v1/contacts/real-estate-agents/unlock', [
  'body' => '{
  "ids": [
    "e7f8a9b0-c1d2-4e3f-9a4b-5c6d7e8f9a01"
  ]
}',
  'headers' => [
    'Authorization' => 'Bearer <token>',
    'Content-Type' => 'application/json',
  ],
]);

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

```csharp Real estate not enabled
using RestSharp;

var client = new RestClient("https://api.modex.com/v1/contacts/real-estate-agents/unlock");
var request = new RestRequest(Method.POST);
request.AddHeader("Authorization", "Bearer <token>");
request.AddHeader("Content-Type", "application/json");
request.AddParameter("application/json", "{\n  \"ids\": [\n    \"e7f8a9b0-c1d2-4e3f-9a4b-5c6d7e8f9a01\"\n  ]\n}", ParameterType.RequestBody);
IRestResponse response = client.Execute(request);
```

```swift Real estate not enabled
import Foundation

let headers = [
  "Authorization": "Bearer <token>",
  "Content-Type": "application/json"
]
let parameters = ["ids": ["e7f8a9b0-c1d2-4e3f-9a4b-5c6d7e8f9a01"]] as [String : Any]

let postData = JSONSerialization.data(withJSONObject: parameters, options: [])

let request = NSMutableURLRequest(url: NSURL(string: "https://api.modex.com/v1/contacts/real-estate-agents/unlock")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "POST"
request.allHTTPHeaderFields = headers
request.httpBody = postData as Data

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()
```