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
GET only
Timestamps
ISO 8601, for example 2026-11-20T14:03:11.000Z
Ids
Every record has a numeric id, and most also have a uuid. 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:

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:

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.

ParameterTypeDescription
limitintegerRecords per page, 1 to 100. Default 50.
cursorstringThe 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.

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

ParameterTypeDescription
created_at_afterISO 8601Only records created after this time. The exact time itself is not included.
updated_at_afterISO 8601Only records changed after this time. The exact time itself is not included.
person_idintegerOnly 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_atSorted 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:

  1. For each endpoint, remember the sort-field value of the last record you processed.
  2. Next time, call the endpoint with updated_at_after (or created_at_after for the second group) set to that value, and page through to the end.
  3. Records come oldest first, so you can save your position after every page and pick up where you left off after a failure.
Timestamps are stored to the second, so several records can share the same second. The *_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:

Successful responses carry these headers. They describe whichever of the two limits is closer to running out:

HeaderDescription
X-RateLimit-LimitThe limit that applies: 120 or 300.
X-RateLimit-RemainingRequests left in this window.
X-RateLimit-ResetWhen 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:

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.

StatusCodeMeaning
400invalid_requestA parameter is missing, invalid or unknown, or the cursor is invalid.
401unauthorizedNo key was sent, or the key is invalid, revoked, or no longer works because of its creator.
404not_foundThe record doesn't exist, or the key can't see it. Also returned for unknown URLs.
429rate_limitedOver the per-key or per-company limit. See Retry-After.
429too_many_failed_attemptsToo many invalid keys from your IP address.
429busyToo many requests at once for your account. Retry after a second.
500internal_errorSomething 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

GET/people sorted by updated_at

Returns the leads the key can see. Deleted leads aren't included. Takes the pagination parameters and all filters.

Lead fields

FieldTypeDescription
idintegerAgentLoft lead id. Other endpoints call this person_id.
uuidstringAgentLoft lead uuid.
fub_person_idinteger · nullThe lead's id in Follow Up Boss, when the lead is synced there.
first_namestring · null
last_namestring · null
full_namestring · null
emailsarrayEach item is { "email": string, "is_primary": boolean }, primary first. Empty if the lead has no email.
phonestring · null
addressobject · nullThe lead's address: street, city, state, code (ZIP), country and type.
stageobject · null{ "id": integer, "name": string }, for example "Lead".
assigned_user_idinteger · nullThe agent the lead is assigned to.
is_subscribedbooleanWhether the lead is subscribed to emails.
email_frequencystring · nullHow often the lead gets listing emails: daily, weekly or immediately.
last_activitytimestamp · nullWhen the lead was last active.
created_attimestamp
updated_attimestampChanges 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

GET/people/{id}

{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

GET/page-views sorted by created_at

Pages your leads viewed on your AgentLoft website.

This is the largest list, so every request needs either 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.
FieldTypeDescription
idinteger
person_idintegerThe lead's id.
page_urlstringThe page address.
page_titlestringThe page title.
created_attimestampWhen the page was viewed.
updated_attimestamp

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

GET/saved-properties sorted by updated_at

Listings your leads saved (favourited) on your website.

FieldTypeDescription
idinteger
uuidstring
person_idintegerThe lead's id.
listing_idstringThe MLS listing number.
mlsstringWhich MLS the listing comes from, for example triangle. Can be an empty string.
is_savedbooleanfalse once the lead un-saves it.
created_attimestampWhen it was first saved.
updated_attimestampChanges 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

GET/claimed-properties sorted by created_at

Homes your leads claimed as their own on your website.

FieldTypeDescription
idinteger
uuidstring
person_idintegerThe lead's id.
listing_idstringThe MLS listing number.
mlsstringWhich MLS the listing comes from, for example triangle. Can be an empty string.
created_attimestampWhen it was claimed.
updated_attimestamp

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

GET/property-comments sorted by updated_at

Comments on listings, written by a lead or by an agent.

FieldTypeDescription
idinteger
uuidstring
person_idintegerThe lead's id.
listing_idstringThe MLS listing number.
mlsstringWhich MLS the listing comes from, for example triangle. Can be an empty string.
commentstringThe comment text.
admin_user_idinteger · nullThe agent who wrote it, or null if the lead wrote it.
created_attimestamp
updated_attimestampChanges 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

GET/saved-searches sorted by updated_at

Property searches saved for your leads, by the lead or by an agent, with the listing alerts sent for them.

FieldTypeDescription
idinteger
uuidstring
person_idintegerThe lead's id.
titlestringThe search name.
searchobjectThe search criteria (area, price, beds and so on), as stored.
email_frequencystring · nullHow often listing alerts are sent for this search: daily, weekly or immediately.
last_sent_attimestamp · nullWhen the last alert was sent.
email_sent_countintegerAlerts sent so far.
is_favouriteboolean
sourcestring · nullWhere the search was created.
created_by_typestringuser if an agent created it, person if the lead did.
created_attimestamp
updated_attimestamp

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/saved-searches/{id}

{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

GET/inquiries sorted by created_at

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.

FieldTypeDescription
idinteger
uuidstring
person_idintegerThe lead's id.
typestringWhich 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_idstring · nullThe listing the inquiry is about, if any.
valueobjectThe submitted form fields, as entered. The fields depend on type.
page_urlstring · nullThe page the form was submitted from.
created_attimestampWhen it was submitted.
updated_attimestamp

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

GET/inquiries/{id}

{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"
  }
}