The flow
Event
Something a person did in your app, namedthing.happened, like checkin.scanned or order.paid. Your app sends it with POST /v1/events. An event nobody listens for is still recorded. Events
Rule
A rule says when an event happens, if conditions hold, at most how many times (limit), and what to do. It is the only thing that decides. A rule can also have a budget that caps what it gives in a day, week or month. RulesDraft, live and paused
A rule is a draft until a person takes it live. A draft listens to nothing. A paused rule has stopped, and its balances stay as they are. A key or an agent can create and preview a draft, but a person takes it live. Going liveUnit
Anything a person has: points like Beans, progress like a level or a streak, a badge, a perk. A unit has a group (points, progress, badge or perk) and switches that say what it can do, such as going down, having a cap or expiring. Units
Receipt
One change in the Activity ledger: who it happened to, which rule, person or agent made it, what changed and the balance after. Activity never deletes. An undo writes a new receipt that reverses the first. ActivitySkipped
A rule heard an event and did nothing: a limit was reached, a budget ran out, a condition was false or a supply is gone. The answer to the event says why. It is not an error. Skipped is an answerWho and where
Person
Whoever you send asuser on an event: your own ID or an email. Lurk makes the person the first time it sees the ID. The API and its paths say user where the docs say person. A person has balances, a status and a profile, and belongs to one project. People
Organization and project
An organization is your company. It holds projects, usually Production for real users and Staging for building and testing. Each project has its own people, units, rules, receipts and keys. Projects and keysKey
A bearer token that belongs to one project. A project key (lurk_sk_) is for your server and the SDKs. An agent key (lurk_ak_) is for one coding agent, and what it does carries the agent’s name. A key is shown once. Keys
Audience
A group of people that a rule can read in its conditions. It is either a list you add people to or a condition that works itself out from what people do. AudiencesView
A saved, read-only question about your project, such as a count, a chart over time or a ranked list. Your server reads the answer by key. A view is typed data, never SQL. ViewsWhat waits for a person
Hold
A change a rule parked for a person to look at, because it was above the rule’shold_over amount. Nothing changes for the person until someone gives it or refuses it. Held changes
Proposal
A change that a project key, an agent or Lurky suggests, which a person approves or declines. When a key or an agent tries something that needs a person, it getsapproval_required and a next_step. A proposal waits 7 days. After that it reads as expired and nobody can decide it: ask again. What waits for a person
Where to go next
- Quickstart: send your first event.
- Build with an agent: let a coding agent draft the rules.
- Rate limits: how fast you can call Lurk.