Skip to main content
Lurk has a few words, and each means one thing. They come in the order data flows: an event comes in, a rule decides, a unit changes, and a receipt keeps the record. Each term below links to the page that explains it.

The flow

Event

Something a person did in your app, named thing.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. Rules

Draft, 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 live

Unit

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

Skipped

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 answer

Who and where

Person

Whoever you send as user 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 keys

Key

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

View

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

What waits for a person

Hold

A change a rule parked for a person to look at, because it was above the rule’s hold_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 gets approval_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