AgentLoft API reference
The AgentLoft API lets your own systems read CRM data from your AgentLoft account: leads, their website activity, saved and claimed properties, comments, saved searches and inquiries. It is read-only. It never changes anything in your account.
- Base URL
https://api.agentloft.com/v1- Format
- JSON responses, UTF-8
- Methods
GETonly- Timestamps
- ISO 8601, for example
2026-11-20T14:03:11.000Z - Ids
- Every record has a numeric
id, and most also have auuid. Single-record endpoints accept either.
Authentication
Every request needs an API key. A user with the Administer System permission creates keys in the AgentLoft admin app, on the API Keys page under Account. A key looks like al_live_ followed by 64 hex characters. It is shown once, when it's created, so copy it into your secrets store straight away. AgentLoft only keeps a fingerprint of the key and can't show it again.
The examples on this page read the key from a shell variable, so you can copy and run them as they are. Set it once in your terminal:
export KEY="al_live_your_key_here"
Send the key in either of two ways.
Bearer token
curl https://api.agentloft.com/v1/people \ -H "Authorization: Bearer $KEY"
Basic auth
Use the key as the username and leave the password empty. Many integration tools support this directly.
curl https://api.agentloft.com/v1/people -u "$KEY:"
When a key stops working. A key acts as the user who created it. It stops working when you revoke it. It also stops working when its creator is deleted, deactivated, or loses the Administer System permission. The API Keys page shows such keys as Not working, with the reason. To fix it, create a new key as a user who has access, then revoke the old one.
A company can have up to 10 keys that aren't revoked. Give each integration its own key, so you can revoke one without breaking the others. Revoking takes effect straight away.
What a key can see
A key sees the same leads its creator sees in the admin app:
- If the creator is the primary manager, or has the Administer Leads permission, the key sees every lead.
- Otherwise, it sees only the leads assigned to its creator.
The activity endpoints follow the same rule. You get a page view, saved property, comment, saved search or inquiry only if you can see the lead it belongs to. Two kinds of records are never returned:
- Records of deleted leads. Deleting a lead hides its activity too.
- Records with no lead, for example an inquiry from a visitor who never registered.
Pagination
Every list endpoint returns one page of results plus a _metadata object. Results are sorted oldest first by the endpoint's sort field (shown on each endpoint), with id breaking ties.
| Parameter | Type | Description |
|---|---|---|
limit | integer | Records per page, 1 to 100. Default 50. |
cursor | string | The next_cursor from the previous page. Leave it out for the first page. |
{
"_metadata": {
"limit": 50,
"has_more": true,
"next_cursor": "eyJzIjoidXBkYXRlZF9hdCIsInYiOiIyMDI2LTExLTIwVDE0OjAzOjExLjAwMFoiLCJpZCI6NDIxMH0"
},
"data": [ ... ]
}
To read everything, keep requesting with the latest next_cursor until has_more is false. On the last page, next_cursor is null.
- Treat the cursor as an opaque string. Don't build or change it yourself.
- Use a cursor only with the endpoint that returned it, and send the same filters on every page as on the first.
- New records added while you're paging show up on a later page. On endpoints sorted by
updated_at, a record that changes while you're paging moves to the end, so you may get it twice. Match onidto handle that.
# Read every lead, page by page (needs curl and jq)
URL="https://api.agentloft.com/v1/people?limit=100"
CURSOR=""
while : ; do
PAGE=$(curl -s -H "Authorization: Bearer $KEY" "$URL${CURSOR:+&cursor=$CURSOR}")
echo "$PAGE" | jq -c '.data[]'
[ "$(echo "$PAGE" | jq -r '._metadata.has_more')" = "true" ] || break
CURSOR=$(echo "$PAGE" | jq -r '._metadata.next_cursor')
done
Filters
All list endpoints take the same filters, alongside limit and cursor. Any other parameter is rejected with 400 invalid_request, so a typo can't silently return unfiltered data.
| Parameter | Type | Description |
|---|---|---|
created_at_after | ISO 8601 | Only records created after this time. The exact time itself is not included. |
updated_at_after | ISO 8601 | Only records changed after this time. The exact time itself is not included. |
person_id | integer | Only records for this lead. Use the lead's id from /people. On /people itself, it returns just that lead. |
curl -G https://api.agentloft.com/v1/saved-properties \ -H "Authorization: Bearer $KEY" \ --data-urlencode "updated_at_after=2026-11-20T00:00:00Z" \ --data-urlencode "person_id=4210"
Keeping data in sync
Each endpoint is sorted by the field that tells you what's new for that kind of record:
Sorted by updated_at | Sorted by created_at |
|---|---|
/people, /saved-properties, /property-comments, /saved-searches |
/page-views, /claimed-properties, /inquiries |
The first group are records that change, so an edit moves the record to the end of the list. The second group are events that happen once.
A simple sync loop:
- For each endpoint, remember the sort-field value of the last record you processed.
- Next time, call the endpoint with
updated_at_after(orcreated_at_afterfor the second group) set to that value, and page through to the end. - Records come oldest first, so you can save your position after every page and pick up where you left off after a failure.
*_after filters leave out the exact time you pass. To be sure you don't miss a record from that last second, subtract one second from your saved value and skip records you already have (by id). Within a single run, the cursor handles this for you.
Deletions aren't reported. A deleted lead, and the activity that belongs to it, simply stops appearing. If you need to catch deletions, compare your ids with a full read from time to time.
For saved properties, un-saving doesn't remove the record. It changes to "is_saved": false and its updated_at moves forward, so an updated_at_after sync picks it up.
Rate limits
Limits use fixed one-minute windows that start on the minute:
- 120 requests per minute per API key.
- 300 requests per minute per company, across all its keys.
Successful responses carry these headers. They describe whichever of the two limits is closer to running out:
| Header | Description |
|---|---|
X-RateLimit-Limit | The limit that applies: 120 or 300. |
X-RateLimit-Remaining | Requests left in this window. |
X-RateLimit-Reset | When the window resets, as a Unix time in seconds. |
Over the limit, the API returns 429 rate_limited with a Retry-After header in seconds. Wait that long, then retry.
Two other cases also return 429:
too_many_failed_attempts: too many requests with invalid keys came from your IP address. Check the key, then retry after a minute.busy: too many requests for your account are running at the same time. It comes withRetry-After: 1. Send requests one after another rather than in parallel.
Errors
Errors use standard HTTP status codes and always have the same body:
{
"error": {
"code": "invalid_request",
"message": "The query parameters are invalid.",
"details": [
{ "parameter": "limit", "message": "\"limit\" must be less than or equal to 100" }
]
}
}
details appears only on validation errors. Check code in your code; the wording of message can change.
| Status | Code | Meaning |
|---|---|---|
| 400 | invalid_request | A parameter is missing, invalid or unknown, or the cursor is invalid. |
| 401 | unauthorized | No key was sent, or the key is invalid, revoked, or no longer works because of its creator. |
| 404 | not_found | The record doesn't exist, or the key can't see it. Also returned for unknown URLs. |
| 429 | rate_limited | Over the per-key or per-company limit. See Retry-After. |
| 429 | too_many_failed_attempts | Too many invalid keys from your IP address. |
| 429 | busy | Too many requests at once for your account. Retry after a second. |
| 500 | internal_error | Something went wrong on our side. The message includes a tracking code; send it to support. |
Sample response · 401
{
"error": { "code": "unauthorized", "message": "The API key is invalid or has been revoked." }
}
Sample response · 429
HTTP/1.1 429 Too Many Requests
Retry-After: 23
X-RateLimit-Limit: 120
X-RateLimit-Remaining: 0
X-RateLimit-Reset: 1795442460
{
"error": { "code": "rate_limited", "message": "Rate limit exceeded: 120 requests per minute." }
}
Sample response · 500
{
"error": { "code": "internal_error", "message": "Something went wrong. Tracking code: NJMZM" }
}
List leads
Returns the leads the key can see. Deleted leads aren't included. Takes the pagination parameters and all filters.
Lead fields
| Field | Type | Description |
|---|---|---|
id | integer | AgentLoft lead id. Other endpoints call this person_id. |
uuid | string | AgentLoft lead uuid. |
fub_person_id | integer · null | The lead's id in Follow Up Boss, when the lead is synced there. |
first_name | string · null | |
last_name | string · null | |
full_name | string · null | |
emails | array | Each item is { "email": string, "is_primary": boolean }, primary first. Empty if the lead has no email. |
phone | string · null | |
address | object · null | The lead's address: street, city, state, code (ZIP), country and type. |
stage | object · null | { "id": integer, "name": string }, for example "Lead". |
assigned_user_id | integer · null | The agent the lead is assigned to. |
is_subscribed | boolean | Whether the lead is subscribed to emails. |
email_frequency | string · null | How often the lead gets listing emails: daily, weekly or immediately. |
last_activity | timestamp · null | When the lead was last active. |
created_at | timestamp | |
updated_at | timestamp | Changes whenever the lead record changes. |
Request
curl "https://api.agentloft.com/v1/people?limit=2" -H "Authorization: Bearer $KEY"
Sample response · 200
{
"_metadata": { "limit": 2, "has_more": true, "next_cursor": "eyJzIjoi..." },
"data": [
{
"id": 4210,
"uuid": "9b2f6c1e-3a4d-4f7b-8e21-5c0d9a7b1e44",
"fub_person_id": 18834,
"first_name": "Jane",
"last_name": "Doe",
"full_name": "Jane Doe",
"emails": [ { "email": "[email protected]", "is_primary": true } ],
"phone": "555-0100",
"address": {
"street": "123 Main St",
"city": "Raleigh",
"state": "NC",
"code": "27601",
"country": "United States",
"type": "home"
},
"stage": { "id": 1, "name": "Lead" },
"assigned_user_id": 7,
"is_subscribed": true,
"email_frequency": null,
"last_activity": "2026-11-19T22:41:05.000Z",
"created_at": "2026-03-02T16:10:44.000Z",
"updated_at": "2026-11-20T14:03:11.000Z"
},
{
"id": 4387,
"uuid": "e41a7d0b-58c2-4b9f-a3e6-7f1c2d9b0a58",
"fub_person_id": null,
"first_name": "Sam",
"last_name": "Lee",
"full_name": "Sam Lee",
"emails": [
{ "email": "[email protected]", "is_primary": true },
{ "email": "[email protected]", "is_primary": false }
],
"phone": null,
"address": null,
"stage": null,
"assigned_user_id": null,
"is_subscribed": true,
"email_frequency": "weekly",
"last_activity": "2026-11-20T15:27:52.000Z",
"created_at": "2026-11-20T15:27:50.000Z",
"updated_at": "2026-11-20T15:27:52.000Z"
}
]
}
Get a lead
{id} is the lead's id or uuid. Returns { "data": { ... } } with the lead fields. Returns 404 not_found if the lead doesn't exist, is deleted, or the key can't see it.
Request
curl https://api.agentloft.com/v1/people/4210 -H "Authorization: Bearer $KEY"
Sample response · 200
{
"data": {
"id": 4210,
"uuid": "9b2f6c1e-3a4d-4f7b-8e21-5c0d9a7b1e44",
"fub_person_id": 18834,
"first_name": "Jane",
"last_name": "Doe",
"full_name": "Jane Doe",
"emails": [ { "email": "[email protected]", "is_primary": true } ],
"phone": "555-0100",
"address": {
"street": "123 Main St",
"city": "Raleigh",
"state": "NC",
"code": "27601",
"country": "United States",
"type": "home"
},
"stage": { "id": 1, "name": "Lead" },
"assigned_user_id": 7,
"is_subscribed": true,
"email_frequency": "daily",
"last_activity": "2026-11-19T22:41:05.000Z",
"created_at": "2026-03-02T16:10:44.000Z",
"updated_at": "2026-11-20T14:03:11.000Z"
}
}
Sample response · 404
{
"error": { "code": "not_found", "message": "Person not found" }
}
List page views
Pages your leads viewed on your AgentLoft website.
person_id, or a created_at_after no more than 31 days ago. Otherwise it returns 400 invalid_request. To read older history, go lead by lead with person_id.| Field | Type | Description |
|---|---|---|
id | integer | |
person_id | integer | The lead's id. |
page_url | string | The page address. |
page_title | string | The page title. |
created_at | timestamp | When the page was viewed. |
updated_at | timestamp |
Request
curl -G https://api.agentloft.com/v1/page-views -H "Authorization: Bearer $KEY" \ --data-urlencode "created_at_after=2026-11-19T00:00:00Z"
Sample response · 200
{
"_metadata": { "limit": 50, "has_more": false, "next_cursor": null },
"data": [
{
"id": 9182736,
"person_id": 4210,
"page_url": "https://www.example-realty.com/homes/123-main-st",
"page_title": "123 Main St | Example Realty",
"created_at": "2026-11-19T22:41:05.000Z",
"updated_at": "2026-11-19T22:41:05.000Z"
}
]
}
List saved properties
Listings your leads saved (favourited) on your website.
| Field | Type | Description |
|---|---|---|
id | integer | |
uuid | string | |
person_id | integer | The lead's id. |
listing_id | string | The MLS listing number. |
mls | string | Which MLS the listing comes from, for example triangle. Can be an empty string. |
is_saved | boolean | false once the lead un-saves it. |
created_at | timestamp | When it was first saved. |
updated_at | timestamp | Changes when it's saved or un-saved. |
Request
curl -G https://api.agentloft.com/v1/saved-properties -H "Authorization: Bearer $KEY" \ --data-urlencode "person_id=4210"
Sample response · 200
{
"_metadata": { "limit": 50, "has_more": false, "next_cursor": null },
"data": [
{
"id": 5531,
"uuid": "0c7d2a9e-6f1b-4e3a-9d55-2b8e4f6a1c03",
"person_id": 4210,
"listing_id": "2412345",
"mls": "triangle",
"is_saved": true,
"created_at": "2026-11-18T09:12:40.000Z",
"updated_at": "2026-11-18T09:12:40.000Z"
},
{
"id": 5398,
"uuid": "7f3b1d6a-2c9e-4a8b-b5d0-91e6c4a2f7d1",
"person_id": 4210,
"listing_id": "2398765",
"mls": "triangle",
"is_saved": false,
"created_at": "2026-11-02T18:40:03.000Z",
"updated_at": "2026-11-19T08:05:17.000Z"
}
]
}
List claimed properties
Homes your leads claimed as their own on your website.
| Field | Type | Description |
|---|---|---|
id | integer | |
uuid | string | |
person_id | integer | The lead's id. |
listing_id | string | The MLS listing number. |
mls | string | Which MLS the listing comes from, for example triangle. Can be an empty string. |
created_at | timestamp | When it was claimed. |
updated_at | timestamp |
Request
curl https://api.agentloft.com/v1/claimed-properties -H "Authorization: Bearer $KEY"
Sample response · 200
{
"_metadata": { "limit": 50, "has_more": false, "next_cursor": null },
"data": [
{
"id": 312,
"uuid": "b8e2f4a1-9d3c-4c7e-8a15-6f0b2d4e9c37",
"person_id": 4210,
"listing_id": "2287410",
"mls": "triangle",
"created_at": "2026-10-14T19:22:08.000Z",
"updated_at": "2026-10-14T19:22:08.000Z"
}
]
}
List property comments
Comments on listings, written by a lead or by an agent.
| Field | Type | Description |
|---|---|---|
id | integer | |
uuid | string | |
person_id | integer | The lead's id. |
listing_id | string | The MLS listing number. |
mls | string | Which MLS the listing comes from, for example triangle. Can be an empty string. |
comment | string | The comment text. |
admin_user_id | integer · null | The agent who wrote it, or null if the lead wrote it. |
created_at | timestamp | |
updated_at | timestamp | Changes when the comment is edited. |
Request
curl -G https://api.agentloft.com/v1/property-comments -H "Authorization: Bearer $KEY" \ --data-urlencode "updated_at_after=2026-11-18T00:00:00Z"
Sample response · 200
{
"_metadata": { "limit": 50, "has_more": false, "next_cursor": null },
"data": [
{
"id": 1207,
"uuid": "3d9a6e2f-1b7c-4f8a-9e40-c2b5d8a1f6e3",
"person_id": 4210,
"listing_id": "2412345",
"mls": "triangle",
"comment": "Love the kitchen. Can we see it this weekend?",
"admin_user_id": null,
"created_at": "2026-11-18T09:15:02.000Z",
"updated_at": "2026-11-18T09:15:02.000Z"
},
{
"id": 1211,
"uuid": "a6c1e8d4-7f2b-4e9a-83d5-0b4f9c2e7a16",
"person_id": 4210,
"listing_id": "2412345",
"mls": "triangle",
"comment": "Booked for Saturday at 11am.",
"admin_user_id": 7,
"created_at": "2026-11-18T10:02:44.000Z",
"updated_at": "2026-11-18T10:02:44.000Z"
}
]
}
List saved searches
Property searches saved for your leads, by the lead or by an agent, with the listing alerts sent for them.
| Field | Type | Description |
|---|---|---|
id | integer | |
uuid | string | |
person_id | integer | The lead's id. |
title | string | The search name. |
search | object | The search criteria (area, price, beds and so on), as stored. |
email_frequency | string · null | How often listing alerts are sent for this search: daily, weekly or immediately. |
last_sent_at | timestamp · null | When the last alert was sent. |
email_sent_count | integer | Alerts sent so far. |
is_favourite | boolean | |
source | string · null | Where the search was created. |
created_by_type | string | user if an agent created it, person if the lead did. |
created_at | timestamp | |
updated_at | timestamp |
Request
curl -G https://api.agentloft.com/v1/saved-searches -H "Authorization: Bearer $KEY" \ --data-urlencode "person_id=4210"
Sample response · 200
{
"_metadata": { "limit": 50, "has_more": false, "next_cursor": null },
"data": [
{
"id": 884,
"uuid": "5e7c2a9b-4d1f-4b6e-a3c8-9f0d1e2b7c45",
"person_id": 4210,
"title": "3+ bed homes under $900k",
"search": {
"price_max": 900000,
"beds_min": 3,
"baths_min": 2
},
"email_frequency": "daily",
"last_sent_at": "2026-11-20T13:00:04.000Z",
"email_sent_count": 42,
"is_favourite": true,
"source": null,
"created_by_type": "person",
"created_at": "2026-09-30T21:48:19.000Z",
"updated_at": "2026-11-20T13:00:04.000Z"
}
]
}
The search object holds only the criteria that were set. Other keys you may see include locations, price_min, sqft_min, year_built_min and is_new_construction.
Get a saved search
{id} is the saved search's id or uuid. Returns { "data": { ... } } with the fields above, or 404 not_found.
Request
curl https://api.agentloft.com/v1/saved-searches/884 -H "Authorization: Bearer $KEY"
Sample response · 200
{
"data": {
"id": 884,
"uuid": "5e7c2a9b-4d1f-4b6e-a3c8-9f0d1e2b7c45",
"person_id": 4210,
"title": "3+ bed homes under $900k",
"search": {
"price_max": 900000,
"beds_min": 3,
"baths_min": 2
},
"email_frequency": "daily",
"last_sent_at": "2026-11-20T13:00:04.000Z",
"email_sent_count": 42,
"is_favourite": true,
"source": null,
"created_by_type": "person",
"created_at": "2026-09-30T21:48:19.000Z",
"updated_at": "2026-11-20T13:00:04.000Z"
}
}
List inquiries
Forms your leads submitted on your website, such as a question about a listing. Inquiries from visitors who aren't a lead aren't returned.
| Field | Type | Description |
|---|---|---|
id | integer | |
uuid | string | |
person_id | integer | The lead's id. |
type | string | Which form was submitted, for example property-question, take-a-tour, request-a-showing, home-worth-check, basic-contact, free-market-analysis, unlock-home-value or mortgage. |
listing_id | string · null | The listing the inquiry is about, if any. |
value | object | The submitted form fields, as entered. The fields depend on type. |
page_url | string · null | The page the form was submitted from. |
created_at | timestamp | When it was submitted. |
updated_at | timestamp |
Request
curl -G https://api.agentloft.com/v1/inquiries -H "Authorization: Bearer $KEY" \ --data-urlencode "created_at_after=2026-11-01T00:00:00Z"
Sample response · 200
{
"_metadata": { "limit": 50, "has_more": false, "next_cursor": null },
"data": [
{
"id": 2675,
"uuid": "c4f8a2e6-0b9d-4e1c-97a3-5d2e8b6f1a09",
"person_id": 4210,
"type": "take-a-tour",
"listing_id": "2412345",
"value": {
"full_name": "Jane Doe",
"email": "[email protected]",
"phone": "555-0100",
"tour_date": "2026-11-22",
"tour_time": "11:00 AM"
},
"page_url": "https://www.example-realty.com/homes/123-main-st",
"created_at": "2026-11-18T09:20:31.000Z",
"updated_at": "2026-11-18T09:20:31.000Z"
}
]
}
Get an inquiry
{id} is the inquiry's id or uuid. Returns { "data": { ... } } with the fields above, or 404 not_found.
Request
curl https://api.agentloft.com/v1/inquiries/c4f8a2e6-0b9d-4e1c-97a3-5d2e8b6f1a09 \ -H "Authorization: Bearer $KEY"
Sample response · 200
{
"data": {
"id": 2675,
"uuid": "c4f8a2e6-0b9d-4e1c-97a3-5d2e8b6f1a09",
"person_id": 4210,
"type": "take-a-tour",
"listing_id": "2412345",
"value": {
"full_name": "Jane Doe",
"email": "[email protected]",
"phone": "555-0100",
"tour_date": "2026-11-22",
"tour_time": "11:00 AM"
},
"page_url": "https://www.example-realty.com/homes/123-main-st",
"created_at": "2026-11-18T09:20:31.000Z",
"updated_at": "2026-11-18T09:20:31.000Z"
}
}