# Lurk > Events in, rules decide, units change, receipts out. For apps and for agents. - [Lurk](https://docs.getlurk.com/index.md): Turn what your users do into points, streaks, badges and perks, with rules you or your agent write. - [Quickstart](https://docs.getlurk.com/quickstart.md): Get a key, create a unit and a rule, take it live, send an event and read the receipt. About ten minutes. - [Concepts](https://docs.getlurk.com/concepts.md): The words Lurk uses, in the order you meet them: event, rule, unit, receipt, person, project, key, audience, view, hold and proposal. - [Build with an agent](https://docs.getlurk.com/build-with-an-agent.md): Let your coding agent set Lurk up and write the rules. It drafts; a person takes them live. - [Projects and keys](https://docs.getlurk.com/projects-and-keys.md): An organization holds projects. Each project has its own users, rules and keys. - [SDKs](https://docs.getlurk.com/sdks/overview.md): TypeScript and Python clients for the Lurk API. Optional: every call is also a plain HTTPS request. - [TypeScript and JavaScript](https://docs.getlurk.com/sdks/typescript.md): @getlurk/sdk: a typed client for Node, browsers, Cloudflare Workers, Bun and Deno. - [Python](https://docs.getlurk.com/sdks/python.md): getlurk: a typed client for Python 3.11 and newer, with an asyncio twin. No dependencies. - [Test your integration](https://docs.getlurk.com/sdks/testing.md): A fake client with no network, a Staging project for the real thing, and a clock you can move. - [Events](https://docs.getlurk.com/events.md): Something a user did, with properties. Name it once, send it from anywhere. Rules decide what it changes. - [Rules](https://docs.getlurk.com/rules.md): A rule says when something happens, if it counts, how often, and what changes. - [Balance and schedule triggers](https://docs.getlurk.com/rule-triggers.md): Start a rule when a balance reaches a number, at every multiple of one, or on a schedule instead of on an event. - [Units](https://docs.getlurk.com/units.md): Anything a user has, counts or holds: points, XP, levels, badges, perks, roles. - [Levels, passes and appearance](https://docs.getlurk.com/unit-patterns.md): Draw a unit as an amount, a thing or a level. Make a level that starts at 1, or a pass that follows an audience. - [Resets, supply and expiry](https://docs.getlurk.com/unit-limits.md): Set a unit back to 0, limit how much can ever be given, and make what is given expire after some days or on a date. - [Audiences](https://docs.getlurk.com/audiences.md): A group of people that a rule, a view or a pass reads: a list you fill, or a condition that keeps itself up to date. - [Activity](https://docs.getlurk.com/activity.md): The ledger. One receipt per change: who or what did it, what changed, the balance after, and why. - [Views](https://docs.getlurk.com/views.md): Saved questions about your project: a number, a chart over time or a ranked list, read from your server by key. - [Annotations](https://docs.getlurk.com/annotations.md): Mark a day of your project with a short note, such as a release or a campaign start. - [Build a rule](https://docs.getlurk.com/dashboard/build-a-rule.md): Make a draft rule in the dashboard, finish it in the sentence editor, preview it on the last 30 days, and see which role can do each step. - [Read Activity](https://docs.getlurk.com/dashboard/read-activity.md): Find a receipt in the dashboard, open Why to see the checks behind it, decide a held change, undo a receipt and export a CSV, and who may do each. - [Manage people](https://docs.getlurk.com/dashboard/manage-people.md): Find a person in the dashboard, give them units by hand, group people in audiences, add an alias or merge two people, and who may do each. - [Go live](https://docs.getlurk.com/dashboard/go-live.md): Take a rule live in the dashboard, copy rules and units from Staging to Production with Promote, approve them there, and switch your app to the Production key. - [People](https://docs.getlurk.com/guides/people.md): Lurk knows your users by the ID your app sends: who a person is, what you can tell Lurk about them, and how an alias joins an earlier visitor ID. - [Reading people](https://docs.getlurk.com/guides/reading-people.md): Find a person, read their history of events and receipts, see who is new, returning or lapsing, and save people as a CSV. - [Merging people](https://docs.getlurk.com/guides/merging-people.md): Move the value of one person to another with a merge, what a merge does and refuses, and how to undo it. - [Going live](https://docs.getlurk.com/guides/going-live.md): From a Staging project to Production. Drafts first, a person's yes, then live. - [Idempotency, retries and limits](https://docs.getlurk.com/guides/idempotency-and-retries.md): Send the same thing twice and it counts once. What to retry, when, and how fast you can go. - [Pagination](https://docs.getlurk.com/guides/pagination.md): Every list is newest first, in pages, with a cursor. - [Versioning and deprecation](https://docs.getlurk.com/guides/versioning.md): What stays the same under your code, what can grow, and how long you have if something has to go. - [Privacy and AI](https://docs.getlurk.com/guides/privacy-and-ai.md): What Lurk keeps, what Lurky sends to a model, and every switch that is yours. - [Send feedback](https://docs.getlurk.com/guides/send-feedback.md): Tell the Lurk team about a bug, a gap or an idea, from the API, the MCP server or an SDK. What to include, and what happens to it. - [Install web analytics](https://docs.getlurk.com/web/install.md): Add the Lurk script and a small relay to your own site to count page views and events. No cookie unless a visitor consents. - [Web analytics relay recipes](https://docs.getlurk.com/web/relay-recipes.md): Relay setups for Next.js, Express, Cloudflare Workers and Vercel, how to choose the visitor address header, and the relay's limits. - [How web analytics counts](https://docs.getlurk.com/web/definitions.md): What a visitor, a visit, a page view, a bounce, a channel, a final day and a hidden row mean in Lurk web analytics. - [Web analytics and privacy](https://docs.getlurk.com/web/privacy.md): What the Lurk web script sends, what Lurk keeps and for how long, how a visitor opts out, and what you must tell your visitors. - [Why a report has no numbers](https://docs.getlurk.com/web/no-numbers.md): Why a web analytics report is empty: no site, collection off, paused by Lurk, monthly limit, a day not final yet, no data or hidden rows. - [Sign-in for your app's users](https://docs.getlurk.com/end-user-auth/overview.md): Let the people who sign in to your app see their balance and receipts and send a few events, with your own sign-in provider and no project key in the browser. - [Add a trusted issuer](https://docs.getlurk.com/end-user-auth/add-a-trusted-issuer.md): Save a paused sign-in provider and see which callers need approval. - [Sign-in with Clerk](https://docs.getlurk.com/end-user-auth/clerk.md): Trust your Clerk instance so the people who sign in to your app can read their own balance and receipts. Clerk session tokens only. - [Sign-in with Supabase](https://docs.getlurk.com/end-user-auth/supabase.md): Trust your Supabase project so the people who sign in to your app can read their own balance and receipts, with the access token Supabase already gives them. - [Sign-in with another provider](https://docs.getlurk.com/end-user-auth/other-providers.md): Trust an OpenID Connect provider that signs tokens with RS256 or ES256 and publishes its keys at a fixed HTTPS address. - [Linking people](https://docs.getlurk.com/end-user-auth/linking-people.md): How a signed-in user becomes a person in your project, what merges and blocks do to that link, and how to test a token without storing it. - [Client API](https://docs.getlurk.com/end-user-auth/client-api.md): The three calls a signed-in person's app can make, the headers they need, CORS, limits and the errors a device can meet. - [Sign-in troubleshooting](https://docs.getlurk.com/end-user-auth/troubleshooting.md): What the token test's refusals and the client API's errors mean when people sign in to your app, and what to check for each. - [Connect your assistant](https://docs.getlurk.com/connect-your-assistant.md): Let your own AI assistant work in Lurk as you, with your role. It signs in as you, never sees keys, and anything live waits for a person. - [Setup prompt](https://docs.getlurk.com/agent-setup/prompt.md): The prompt that has your own assistant connect itself to Lurk's MCP server. Point it at this page's Markdown, or paste it. - [MCP server](https://docs.getlurk.com/mcp-server.md): Point an agent at Lurk. It reads your project, writes rules as drafts and previews them. Going live always waits for a person. - [MCP tools](https://docs.getlurk.com/mcp-tools.md): Every tool an agent key sees, by what it does: read, change something, and not available yet. - [Agent instructions](https://docs.getlurk.com/agent-instructions.md): A short brief to put in AGENTS.md, CLAUDE.md or .cursor/rules, so your coding agent uses Lurk safely. - [Agent skill](https://docs.getlurk.com/agent-skill.md): Lurk's skill for coding agents: the habits that keep an integration safe, as a file your agent loads. How to install it. - [Agent skill: events](https://docs.getlurk.com/agent-skill/events.md): The agent skill's reference for sending events: the fields, the answer and what to read in it. - [Agent skill: rules](https://docs.getlurk.com/agent-skill/rules.md): The agent skill's reference for rules: their shape, what starts them, and how a person takes one live. - [Agent skill: MCP](https://docs.getlurk.com/agent-skill/mcp.md): The agent skill's reference for the MCP server: the tools a key sees, and what is not offered on purpose. - [Agent skill: errors](https://docs.getlurk.com/agent-skill/errors.md): The agent skill's reference for errors: each code, and whether to retry, fix the request or ask a person. - [Agent skill: a person's own assistant](https://docs.getlurk.com/agent-skill/member-assistant.md): The agent skill's reference for an assistant a person connected by signing in: no key, the project on every call, live is theirs. - [Webhooks](https://docs.getlurk.com/webhooks.md): Lurk tells your server when something happens. Signed, retried, and safe to repeat. - [Rate limits](https://docs.getlurk.com/rate-limits.md): How many calls a key, a project and a signed-in person can make a minute, the feedback limits, the size limits, and what to do on a 429. - [Errors](https://docs.getlurk.com/errors.md): Every error has a status, a code and a sentence you can show. - [Changelog](https://docs.getlurk.com/changelog.md): New things, fixes and API changes. Subscribe by RSS. - [Send an event](https://docs.getlurk.com/api-reference/events/send-an-event.md): Sends something a user did. Lurk runs your live rules on it and returns the receipts: what changed and the balance after. A retry with the same `idempotency_key` returns the first answer. `timestamp` may be in the past, not over 5 minutes ahead. `profile` and `alias` ride along. [Events](/events) - [List the events this project has](https://docs.getlurk.com/api-reference/events/list-the-events-this-project-has.md): Lists the event names your project sent in the last 30 days or that a rule listens for, with counts, property names and types, and the rules listening. Property values are never listed, except where a person turned on remembering them. [Events](/events#the-event-catalog) - [List units](https://docs.getlurk.com/api-reference/units/list-units.md): Newest first, with what each holds across everyone, how many hold it, and what was added and taken in the last 30 days. `counts` says how many units each group has. - [Create a unit](https://docs.getlurk.com/api-reference/units/create-a-unit.md): Sets up a unit: a name, a group and switches for what it can do (goes down, cap, supply, expiry, spend, use, send). The key defaults to a slug of the name and must be new. Owners, admins and developers, or a project key. [Units](/units) - [Get a unit](https://docs.getlurk.com/api-reference/units/get-a-unit.md): By ID or key: its settings and what it holds across everyone. - [Change a unit](https://docs.getlurk.com/api-reference/units/change-a-unit.md): Changes what you send. A setting applies to changes from now on and changes nobody's balance: lowering a cap below what people hold leaves their balances, and stops further additions. - [Get who holds the most of a unit](https://docs.getlurk.com/api-reference/units/get-who-holds-the-most-of-a-unit.md): The top of one unit: up to 10 people, most first, with rank, `usr_…` ID and amount; equal amounts share a rank. The unit may be left out: the oldest unit someone holds. Never carries your own identifier for a person or an email. [Leaderboard](/units#the-leaderboard) - [Preview giving a unit by hand](https://docs.getlurk.com/api-reference/units/preview-giving-a-unit-by-hand.md): Shows what giving a unit by hand would do, without doing it: who would get it, who is skipped and why, who matched nobody, and what is left of a rule's budget (`count_against`). `users` are `usr_…` or your own IDs, up to 200. Writes nothing. [Giving by hand](/units#giving-by-hand) - [Take a unit from a person for something](https://docs.getlurk.com/api-reference/units/take-a-unit-from-a-person-for-something.md): Takes an amount of a unit from a person, all or nothing (`insufficient_balance`). The unit needs `spendable` on. A `reference` is used once per unit (`reference_used`). Unknown person or unit: `not_found`. Owners and admins, or a project key; never an agent. [Spending](/units#spending-and-using) - [Send a unit from one person to another](https://docs.getlurk.com/api-reference/units/send-a-unit-from-one-person-to-another.md): Moves an amount of one unit between two people as two receipts, all or nothing. The unit needs `sendable` on and must go down; the daily limit is `rate_limited`. Unknown person or unit: `not_found`. Owners and admins, or a project key; never an agent. [Sending](/units#sending-between-people) - [Use something a person holds](https://docs.getlurk.com/api-reference/units/use-something-a-person-holds.md): Redeems an amount (one by default) of a unit a person holds, all or nothing. The unit needs `usable` on. A `reference` is used once per unit. Fires `unit.used`. Unknown person or unit: `not_found`. Owners and admins, or a project key; never an agent. [Using](/units#spending-and-using) - [List rules](https://docs.getlurk.com/api-reference/rules/list-rules.md): Newest first. Filter by status, unit, event or part of the name. `counts` says how many rules each status has under the other filters. - [Create a rule as a draft](https://docs.getlurk.com/api-reference/rules/create-a-rule-as-a-draft.md): Nothing runs until an owner or admin takes the draft live, in person. Keys and agents can create and preview rules, but saving a rule with `effects` (not available yet) is refused with `approval_required`. `key` defaults to a slug of the name. See [Rules](/rules). - [Take a rule live](https://docs.getlurk.com/api-reference/rules/take-a-rule-live.md): Takes the newest version live. Only an owner or admin, in person. Agents and keys get `approval_required` and should create a proposal. - [Get a rule](https://docs.getlurk.com/api-reference/rules/get-a-rule.md): By ID or key. `definition` is the newest version; `live_definition` is what is running now, which differs while an edit waits for a person. - [Update a rule](https://docs.getlurk.com/api-reference/rules/update-a-rule.md): Saves a new version of the newest, with the parts you send replaced. A live rule keeps its version until a person takes the new one live. `name` alone renames, no new version. Saving `effects` (not available yet) gets a key `approval_required`, as does renaming a rule with them. [Rules](/rules). - [Pause a rule](https://docs.getlurk.com/api-reference/rules/pause-a-rule.md): Stops a live rule at once: nothing is given or taken while it is paused. Keys and agents can pause. Starting it again needs an owner or admin, in person, with `POST /v1/rules/{id}/resume`. See [Rules](/rules). - [Start a paused rule again](https://docs.getlurk.com/api-reference/rules/start-a-paused-rule-again.md): The rule runs again on the version it was running. A paused rule going live is a go-live, so only an owner or admin, in person. - [Preview a rule](https://docs.getlurk.com/api-reference/rules/preview-a-rule.md): Replays up to 20,000 recorded events from the past `days` (1 to 90, default 30) through the real engine and says what the rule would have given. Nothing is given. Send `definition` to try an unsaved edit. Schedule and balance rules get a forecast, not a replay. An estimate: see `notes`. - [Get what a rule did](https://docs.getlurk.com/api-reference/rules/get-what-a-rule-did.md): From the receipts: how many times the rule changed something, for how many people, and how much it gave or took per unit, plus how often it did not apply and why, and the ten people it reached most. Skips are kept for 30 days. - [List receipts](https://docs.getlurk.com/api-reference/activity/list-receipts.md): Newest first. Every receipt says who acted, through what, and each unit it changed with the balance after. Filter by person (a usr_… ID or the brand's own identifier), rule, unit or time. - [Explain a receipt](https://docs.getlurk.com/api-reference/activity/explain-a-receipt.md): The receipt and the checks the engine made for it, in order, from the trace stored with it: never reconstructed afterwards. A receipt written before traces were kept has none (`traced: false`). - [List what happened and what didn't](https://docs.getlurk.com/api-reference/activity/list-what-happened-and-what-didnt.md): Lists, newest first, receipts, rules that heard an event and did nothing (kept at least 30 days) and changes waiting for a person. Filter by `kind` (`given`, `skipped` or `held`), person, rule, unit or time. A unit filter keeps receipts and held changes. [Activity](/activity#the-feed) - [List people](https://docs.getlurk.com/api-reference/users/list-people.md): Lists people, newest first (`sort`), with holdings, profile and status. `search` takes one whole value: a `usr_…` ID, your identifier, an email or a handle; no partial match. Also `audience`, `signs_in_with` (a provider's `iss_…` ID), `status`, `include=total`. [People](/guides/people) - [Get a person](https://docs.getlurk.com/api-reference/users/get-a-person.md): Gets one person with holdings, profile, status and receipt count. Members and project keys also receive web acquisition sources and browser counts, starting after consent. A merged-away person returns `not_found`. [People](/guides/people) - [Update a person's profile](https://docs.getlurk.com/api-reference/users/update-a-persons-profile.md): Sets the profile of an existing person (for a new one, send `profile` with the event): email, name, picture, handles, language. Left out is kept, null clears. In `handles` an entry replaces that platform's, null removes it. `profile: null` erases all. [People](/guides/people#a-persons-profile) - [Get a person's history](https://docs.getlurk.com/api-reference/users/get-a-persons-history.md): A person's events and receipts, newest first, including merged people's and aliases' (`seen_as`). `event` also returns the receipts it caused, and a page filtered by it can hold fewer than `limit` items, even none, and still have `has_more`. [People](/guides/people#a-persons-history) - [Add an alias to a person](https://docs.getlurk.com/api-reference/users/add-an-alias-to-a-person.md): Says another identifier, e.g. a pre-sign-in visitor ID, was this person too, so their history shows its events and receipts. It need not have sent events. Repeating an alias answers as it is. No chains, max 20, the shared anonymous ID refused. [Aliases](/guides/people#aliases-who-a-visitor-was) - [Remove an alias from a person](https://docs.getlurk.com/api-reference/users/remove-an-alias-from-a-person.md): Removes an alias: the person's history stops reading that identifier's events and receipts, and nothing else changes. An identifier that is not this person's alias returns `not_found`. [Aliases](/guides/people#aliases-who-a-visitor-was) - [Merge one person into another](https://docs.getlurk.com/api-reference/users/merge-one-person-into-another.md): Merges `from` into `into`: what `from` holds moves to `into` as receipts, and `from`'s later events count for `into`. Needs an owner or admin in person; keys and agents get `approval_required`. Looking up `from` afterwards returns `not_found`. [Merging](/guides/people#merging-existing-people) - [Undo a merge](https://docs.getlurk.com/api-reference/users/undo-a-merge.md): Gives a merged-away person back by reversing the merge's receipts with new ones. Refused if the person kept has spent what came or a cap would break. Needs an owner or admin in person; keys and agents get `approval_required`. [Merging people](/guides/people#merging-existing-people) - [Block a person's device credentials](https://docs.getlurk.com/api-reference/users/block-a-persons-device-credentials.md): Blocks a person's device credentials on their next request. Blocking a merged-away person blocks the person kept. Needs an owner or admin in person; keys and agents get `approval_required`. Applies where device sign-in is switched on. - [Unblock a person's device credentials](https://docs.getlurk.com/api-reference/users/unblock-a-persons-device-credentials.md): Lifts the block on a person's device credentials. Unblocking a merged-away person unblocks the person kept. Needs an owner or admin in person; keys and agents get `approval_required`. Applies where device sign-in is switched on. - [List webhook endpoints](https://docs.getlurk.com/api-reference/webhook_endpoints/list-webhook-endpoints.md): Newest first. Shows where events go and whether each endpoint is still switched on. - [Add a webhook endpoint](https://docs.getlurk.com/api-reference/webhook_endpoints/add-a-webhook-endpoint.md): Lurk sends the events you pick to this URL, signed with the secret in the response. The secret is shown once. A project can have up to 25 active endpoints; switched-off ones are not counted. - [Delete a webhook endpoint](https://docs.getlurk.com/api-reference/webhook_endpoints/delete-a-webhook-endpoint.md): Stops sending to it and removes its delivery history. This can't be undone. - [List the properties that remember their values](https://docs.getlurk.com/api-reference/known_values/list-the-properties-that-remember-their-values.md): Lists the properties of your own events that a person turned "remember values" on for, each with the values Lurk has seen (at most 20) or why it turned itself off. A property nobody turned on is not listed. [Events](/events#remember-values) - [Send feedback to the Lurk team](https://docs.getlurk.com/api-reference/feedback/send-feedback-to-the-lurk-team.md): Sends a bug, gap, idea, docs problem or question to the Lurk team. Staff read it before it is shared in their tracker; no reply is promised. Ask your user first, once per task. Never include secrets, keys or your users' data: removal is best effort, best in English. 5 a minute; 50 a project a day. - [List annotations](https://docs.getlurk.com/api-reference/annotations/list-annotations.md): Lists the project’s chart annotations between two days, oldest first. An annotation is a short note on one day, shown on charts. [Annotations](/annotations) - [Add an annotation](https://docs.getlurk.com/api-reference/annotations/add-an-annotation.md): Adds a chart annotation: a day and one short sentence. An owner, admin or developer, or a project key. Don’t put personal data in the text. [Annotations](/annotations) - [Remove an annotation](https://docs.getlurk.com/api-reference/annotations/remove-an-annotation.md): Removes an annotation from every chart. It can’t be undone. [Annotations](/annotations) - [Change an annotation](https://docs.getlurk.com/api-reference/annotations/change-an-annotation.md): Changes an annotation’s day or text. [Annotations](/annotations) - [List trusted issuers](https://docs.getlurk.com/api-reference/trusted_issuers/list-trusted-issuers.md): Newest first. The sign-in providers this project has set up, paused or archived. - [Add a trusted issuer](https://docs.getlurk.com/api-reference/trusted_issuers/add-a-trusted-issuer.md): Saves a paused trusted issuer. Owner or admin in person. A project key or agent key can save it when agent go-live is on for the project and the project does not require approval. Otherwise, keys get `approval_required`. A member's assistant signed in with OAuth always gets `approval_required`. - [Get a trusted issuer](https://docs.getlurk.com/api-reference/trusted_issuers/get-a-trusted-issuer.md): One trusted issuer: profile, addresses, revision, status and the health of its signing keys. `can_activate` says whether it could be activated now. - [Rename a trusted issuer](https://docs.getlurk.com/api-reference/trusted_issuers/rename-a-trusted-issuer.md): Renames a trusted issuer. Nothing else can be edited: a different address or profile is a new issuer. A rename does not change the revision; a stale `expected_revision` changes nothing. - [Activate a trusted issuer](https://docs.getlurk.com/api-reference/trusted_issuers/activate-a-trusted-issuer.md): Turns a checked, healthy, paused issuer on. Its last check, and for `oidc` a verified token test, must be at the current revision and at most 24 hours old, or it is refused. Owner or admin in person; a key or agent gets `approval_required`. - [Pause a trusted issuer](https://docs.getlurk.com/api-reference/trusted_issuers/pause-a-trusted-issuer.md): Stops an issuer's tokens from signing anyone in; bindings stay. A saved issuer is paused already. An archived issuer stays archived. Owner or admin in person; a key or agent gets `approval_required`. - [Archive a trusted issuer](https://docs.getlurk.com/api-reference/trusted_issuers/archive-a-trusted-issuer.md): Retires an issuer for good: no credential can use it; bindings and receipts stay, and its address can be set up again as a new issuer. Cannot be undone. Owner or admin in person; a key or agent gets `approval_required`. - [Check a trusted issuer's signing keys](https://docs.getlurk.com/api-reference/trusted_issuers/check-a-trusted-issuers-signing-keys.md): Fetches the issuer's signing keys now and saves what it found: key count, `key_ids_hash`, algorithms, any `problem`. Activation needs a check at the current revision. About 10 a minute per project, one fetch per issuer at a time (`rate_limited`). - [Get what a device may send](https://docs.getlurk.com/api-reference/client_events/get-what-a-device-may-send.md): The event names a device (a signed-in app user) may send, each with its cap and property limits, plus the per-person, project-wide and new-people caps. Empty until a person saves; any other name is refused. `revision` is 0 before the first save. - [List identity bindings](https://docs.getlurk.com/api-reference/issuer_identities/list-identity-bindings.md): Newest first. Which person each sign-in subject of your trusted issuers is bound to. Filter by `issuer_id` or by `user` (that person and the people merged into them). The subject is never returned. - [Bind a sign-in subject to a person](https://docs.getlurk.com/api-reference/issuer_identities/bind-a-sign-in-subject-to-a-person.md): Binds a provider user id (`subject`, write-only, never returned) to an existing person. Refused if already bound (unmap first), or for a merged-away person or archived issuer. Owner or admin in person; a key or agent gets `approval_required`. - [Remove an identity binding](https://docs.getlurk.com/api-reference/issuer_identities/remove-an-identity-binding.md): Removes a binding, even a merged-away person's; the person stays. The next sign-in with that subject makes a new person unless it is mapped first or the new-people limit refuses it. Owner or admin in person; a key or agent gets `approval_required`. - [List proposals](https://docs.getlurk.com/api-reference/proposals/list-proposals.md): Proposals newest first. By default the open ones, the ones waiting for a person; `waiting` counts them. An open proposal past its expiry reads as expired. - [Propose a change for a person to approve](https://docs.getlurk.com/api-reference/proposals/propose-a-change-for-a-person-to-approve.md): Asks a person to approve 1 to 10 changes in order, including a starter template or units, rules and taking them live in one request. Later steps may refer to unit or rule keys created earlier in the same request. Nothing runs until an owner or admin approves. - [Get a proposal](https://docs.getlurk.com/api-reference/proposals/get-a-proposal.md): One proposal with its changes, who asked, and how it was decided. - [Wait for a proposal decision](https://docs.getlurk.com/api-reference/proposals/wait-for-a-proposal-decision.md): After sharing the approval link, wait here for the person's decision. Continue when approved, stop when declined, and call again with the same ID when still_waiting. - [List holds](https://docs.getlurk.com/api-reference/holds/list-holds.md): Changes a rule parked for a person, newest first. By default the ones still waiting; `waiting` counts them. Nothing has changed for the person until a hold is given. - [Get a hold](https://docs.getlurk.com/api-reference/holds/get-a-hold.md): One hold with the changes it would make, why it waits, and how it was decided. - [List audiences](https://docs.getlurk.com/api-reference/audiences/list-audiences.md): The groups of people rules can read, newest first, with how many are in each, which rules read it and whether a condition is broken (`status`, `problems`). A condition audience's members are worked out every five minutes: `refreshed_at` says when, and a rule sees it as it stood then. - [Create an audience](https://docs.getlurk.com/api-reference/audiences/create-an-audience.md): Makes a list (people you add) or a condition audience (kept up to date by its conditions). A new condition audience starts empty. The worker fills it with people who match. A project can have 100 condition audiences. Rules read it in `if`. [Audiences](/units#audiences) - [Add people to a list audience](https://docs.getlurk.com/api-reference/audiences/add-people-to-a-list-audience.md): Adds up to 1,000 people by `usr_…` ID or by the brand's own ID. People already in it are counted, not added twice. An ID that matches nobody is returned in `not_found` and nothing is created for it. Only a list audience takes people by hand: a condition audience keeps its own members. - [List rule budgets](https://docs.getlurk.com/api-reference/budgets/list-rule-budgets.md): What each live rule's budgets have given in the window they are in now ('5,000 Beans a week'), newest rule first, with the window's start and end in the project's time zone. A rule's budgets are never split across pages. `nearly_used` keeps those 80% or more used. - [List templates](https://docs.getlurk.com/api-reference/templates/list-templates.md): The kits that add units and rules in one go, in the catalog's order, with whether each is available, or already added to this project (`in_use`). `filter: in_use` shows what this project has added. - [Get a template](https://docs.getlurk.com/api-reference/templates/get-a-template.md): One template: what it adds (units, and rules that arrive as drafts) with its default settings, the settings a person can change, and when it was added to this project. - [Plan a template](https://docs.getlurk.com/api-reference/templates/plan-a-template.md): What adding a template with these settings would do, and a test week: a fixed, made-up week of visits, orders and sign-ups run through the real engine against the template's own rules. Nothing is written. Say what already exists (it is reused, not added again) and what to check. - [Add a template](https://docs.getlurk.com/api-reference/templates/add-a-template.md): Adds a template's units, views and rules; the rules are drafts and a person takes each live. Existing units and views are reused. Refused if the template is already added, a unit exists with other settings, or a rule key belongs to another rule. To change settings, remove and re-add. - [Take a template back](https://docs.getlurk.com/api-reference/templates/take-a-template-back.md): Removes the rules the template added **that are still drafts**, and forgets that it was added. Live or paused rules, a rule another added template also uses, the units and everything people earned stay, counted in `kept`. A draft that was never live has no receipts, so the ledger is untouched. - [List views](https://docs.getlurk.com/api-reference/views/list-views.md): The saved questions of the project, newest first. A view is typed data (who, what, over, shape), never SQL. Search matches a name or key; `conversion=true` lists only conversions. - [Create a view](https://docs.getlurk.com/api-reference/views/create-a-view.md): Saves a question about the project: who, what, over which range, as which shape (number, chart, ranked list). A member, key, brand agent or Lurky may; not a viewer. Audience and units must exist. `key` defaults to a slug of the name (`view-` first if a digit leads). [Views](/views#save-a-view) - [Get a view](https://docs.getlurk.com/api-reference/views/get-a-view.md): A view and its answer: a number, a series over time, or a ranked list. `range` reads another range, `compare` adds the span of the same length just before, `audience` reads for another audience. Ranges and weeks (Monday to Sunday) follow the project's time zone. [Views](/views#read-a-view) - [Update a view](https://docs.getlurk.com/api-reference/views/update-a-view.md): Renames a view, changes its description, replaces its whole definition, or sets or clears `conversion` (an owner, admin, developer or key only). Send at least one change. Dashboards that show it show the new question. [Views](/views#list-and-change-views) - [Preview a view](https://docs.getlurk.com/api-reference/views/preview-a-view.md): Answers a view without saving it: a number, series, ranked list or funnel. A funnel counts one try per person, from their first step one in the range; a later try is not counted. Members of every role, keys and brand agents. At most 90 days. [Views](/views#preview-a-view) - [List integrations](https://docs.getlurk.com/api-reference/integrations/list-integrations.md): Every way events reach Lurk or state leaves it, with its status: `connected`, `needs_attention`, `not_connected` or `later` (not available yet). Your app (once an active key is used), MCP, webhooks, Web; chat platforms are not available yet. `filter: connected` includes `needs_attention`. - [Get the health of the integrations](https://docs.getlurk.com/api-reference/integrations/get-the-health-of-the-integrations.md): What is wrong with this project's connectors, and how to fix it. Without `key` it answers for those connected or needing attention; with `key`, for that one. `needs_attention` counts them all. A failing webhook endpoint or refused Web collection is a problem; an endpoint a person turned off is not. - [Get what is left to set this project up](https://docs.getlurk.com/api-reference/projects/get-what-is-left-to-set-this-project-up.md): The steps to set the project up (unit, rule, Home dashboard, go-live, app key, first event), which are done, and which dashboard areas they open. Derived from project state, so agent work counts. Once a rule goes live nothing is locked. Locks are advice: no operation is refused. - [Get the project's clock](https://docs.getlurk.com/api-reference/clocks/get-the-projects-clock.md): What time it is in this project, and whether it has been moved from real time. Only a test project's clock can be moved. Every other project shows real time. - [Advance a test project's clock](https://docs.getlurk.com/api-reference/clocks/advance-a-test-projects-clock.md): Moves the project's time forward by days, hours or minutes, so a seven-day streak, a weekly schedule or an expiry can be tried without waiting. Test projects only. Scheduled rules and expiries that come due run within a minute. Time only moves forward, except for a reset. - [Set a test project's clock to a time](https://docs.getlurk.com/api-reference/clocks/set-a-test-projects-clock-to-a-time.md): Sets the time the project thinks it is, such as the Monday a schedule should run. It cannot be earlier than the project's time now; use a reset to start over. Test projects only. - [Reset a test project's clock to real time](https://docs.getlurk.com/api-reference/clocks/reset-a-test-projects-clock-to-real-time.md): Ends the test clock: the project runs on real time again. This is the one way time goes back, so receipts made while the clock was ahead will look as if they come from the future until real time catches up. Test projects only. ## OpenAPI Specs - [openapi](/api-reference/openapi.json) This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.