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

# Agent skill: events

> The agent skill's reference for sending events: the fields, the answer and what to read in it.

`POST /v1/events`

```json theme={null}
{
  "event": "order.paid",
  "user": "maya@example.com",
  "properties": { "total_cents": 4200 },
  "idempotency_key": "order-8841"
}
```

| Field | Rule |
| - | - |
| `event` | Lowercase words joined by dots, the thing first: `checkin.scanned`, `order.paid`. |
| `user` | The app's own identifier for the person. Made on first sight. |
| `properties` | Flat: strings, numbers, booleans or short lists of them; up to 50. Rules can read them (`{ "from": "total_cents", "per": 100 }`). |
| `idempotency_key` | Required. The same key means the same event, counted once. |

The answer:

```json theme={null}
{
  "activity": "act_01j9…",
  "user": "maya@example.com",
  "event": "order.paid",
  "receipts": [{ "by": "rule:earn-on-orders", "unit": "beans", "change": 42, "balance": 1292 }],
  "skipped": [],
  "held": []
}
```

* Every change has a receipt and the balance after. `GET /v1/activity` lists them; `GET /v1/activity/{id}` and the explain view say why
  a rule did or did not apply.
* `GET /v1/events/catalog` lists event names Lurk has seen recently or that a rule listens for. Use those names; do not invent new ones to match a rule.
* Choose the key from the thing that happened (order ID, scan ID, delivery ID), so every retry of it has the same key.
* Only live rules give rewards for the event. A person first seen through an event can also get starting units, with a separate receipt.


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