> ## Documentation Index
> Fetch the complete documentation index at: https://docs.getlurk.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Reading people

> Find a person, read their history of events and receipts, see who is new, returning or lapsing, and save people as a CSV.

How to look people up and read what Lurk recorded about them. Who a person is, their profile and aliases are on [People](https://docs.getlurk.com/guides/people.md). In the dashboard, the same things are on the Users page: [Manage people](https://docs.getlurk.com/dashboard/manage-people.md).

## Finding a person

`GET /v1/users?search=` takes one whole value: a `usr_…` ID, your identifier exactly as you send it, an email, or a handle on any platform. Emails and handles match in any case, and a handle with or without the @. It answers everyone who matches.

```bash theme={null}
curl "https://api.getlurk.com/v1/users?search=@analima" -H "Authorization: Bearer $LURK_KEY"
```

There is no partial match, and names are not searched: everything is sealed and found through keyed hashes. `GET /v1/users/{id}` still takes only a `usr_…` ID or your identifier, since an email may be more than one person.

## A person's history

`GET /v1/users/{id}/history` (MCP: `lurk.users.history`) answers everything Lurk recorded for one person, newest first: each event as you sent it, and each receipt as `GET /v1/activity` has it.

```bash theme={null}
curl "https://api.getlurk.com/v1/users/maya@example.com/history?limit=50" -H "Authorization: Bearer $LURK_KEY"
```

| Field | Holds |
| - | - |
| `kind` | `event` or `receipt` |
| `name`, `properties`, `source` | An event's name, what it carried (as sent) and whose word it is |
| `session` | The event's `session` property, when it is a string: the visit it was part of |
| `receipt` | A receipt: who acted, through what, and each unit it changed |
| `at`, `recorded_at` | When it happened, and when Lurk recorded it. The list is in `recorded_at` order; the two differ only for an event you sent with an old `timestamp` |
| `seen_as` | The other person it was recorded under (someone merged into them, or an alias), or `null` |

* Filter with `event` (that event and the receipts it caused), `kind`, `since` and `until`. Page with `limit` (1 to 200) and `cursor`, as every list does.
* With `event`, a page looks through at most 1,000 of each person's events and receipts. For someone with a long history and few of that event, a page can hold fewer than `limit` items, even none, with `has_more` and a `next_cursor` to look further.
* It includes the people merged into them and their aliases, at most 50 in all; `includes` lists them.
* Your team, your keys and your agents can read it. Lurky, the assistant in the dashboard, cannot. Lurky does read a receipt's Why, which shows the value of a property a rule checked (`plan = "pro"`), and the remembered values of a property you switched on: see [Privacy and AI](https://docs.getlurk.com/guides/privacy-and-ai.md).
* Keep names, emails, phone numbers, addresses, free text, IP addresses, payment, health and location out of event properties: what a person did goes in properties, who they are goes in their [profile](https://docs.getlurk.com/guides/people.md#a-persons-profile).

## New, returning, lapsing

Every person is one of three, worked out when you ask, from two numbers you set per project:

| Status | Means | Default |
| - | - | - |
| `new` | First heard of in the last `new_for_days` days | 14 |
| `lapsing` | Not new, and not active for `lapsing_after_days` days | 30 |
| `returning` | Everyone else: not new, and still active | |

Change the two numbers (`new_for_days`, `lapsing_after_days`, each 1 to 365) in **Settings → Project**. The status moves with them, with no waiting.

```bash theme={null}
curl "https://api.getlurk.com/v1/users?status=lapsing&include=total" -H "Authorization: Bearer $LURK_KEY"
```

* Activity is kept to the hour: an event moves `last_active_at` only if it is more than an hour newer than what is kept.
* An event cannot make someone "active" in the future: the time is the event's, but never later than when Lurk heard it.
* People who were there before status existed have no recorded activity, so they are judged from when Lurk first heard of them. It sharpens as their events arrive.

## Export

An owner or admin can save the people that match a search as a CSV from the dashboard: [Export](https://docs.getlurk.com/dashboard/manage-people.md#export). Larger background exports are not available yet.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.