# Luma
<!--
ref: @integrations/luma
tags: [Luma, API, event management, RSVP, guest list]
triggers: [need to pull event metadata, fetch guest list for hosted events, programmatic RSVP, access public calendar feed]
trigger_prompt: When you need to automate event management tasks such as retrieving event details, guest lists, or handling RSVPs for events you host.
category: integration
last_reviewed: 2026-05-18
complements: [@integrations/curly, @integrations/airtable, @integrations/apify]
audience: [claude-code-user, agent-author, terminal-only]
version: 18
updated_at: 2026-11-18T19:35:34.300Z
-->

Access and manipulate Luma event data through undocumented internal APIs.

> **There is no public/official Luma REST API.** The endpoints below are the internal `api.lu.ma` / `lu.ma/api` surface that the web app and the iOS/Android apps use. They are stable enough for tooling (in steady use since 2026-04) but undocumented — expect occasional schema drift and treat any field as optional.

## When to Use

- **Build a roster** — pull the metadata for a Luma URL (title, when, where, host) to append to a local event list (e.g. `events.csv`).
- **Pull a guest list** — for events *you host*, fetch the full attendee list (name, email, LinkedIn, company, ARR/funding) via the admin API.
- **Discover events on a hosting calendar** — read another organizer's public calendar feed.
- **RSVP / batch-RSVP** — programmatic registration as a specific Luma user (needs that user's session cookie).

## Auth

Luma has **two auth modes**:

| Mode | What it unlocks | How |
|---|---|---|
| **Anonymous** | Public event page metadata, public calendar listings | None — just GET |
| **Session cookie** | Admin guest list, exports, RSVP-as-user, "my events", DMs | `Cookie: luma.auth-session-key=<value>` |

The `luma.auth-session-key` cookie is what the browser stores after you sign in at `https://lu.ma`. To extract it:

```bash
# Mac, while logged into Luma in Chrome/Brave (browser must be closed for SQLite read):
sqlite3 ~/Library/Application\ Support/Google/Chrome/Default/Cookies \
  "SELECT name, value FROM cookies WHERE host_key LIKE '%lu.ma%';"
# Or use the Cookie-Editor browser extension → Export JSON.
```

Then hand the cookie to curly:

```bash
curly init luma    # hidden prompt — paste the FULL name=value pair
```

`luma` is a built-in service (host, `auth: cookie`, browser UA). The "token" here is the **whole cookie pair** — `luma.auth-session-key=usr-XXXXXXXX`, not just the value — because cookie-mode sends it verbatim as `Cookie: <token>`. Luma does **not** accept `Authorization: Bearer`.

Session cookies expire; when calls start 401ing, re-run `curly init luma` with a fresh pair.

### Anonymous reads still need a real User-Agent

The site returns a JS-only shell to anything that looks like `curl/x.x`. Use `curly luma-web` — the service entry pins a real-browser UA for you:

```bash
curly luma-web "/<slug>"
```

This hits `https://luma.com/<slug>` with the correct UA so the response is the full HTML (with the `__NEXT_DATA__` JSON blob), not the bot shell. The `luma` service entry (against `api.lu.ma`) also pins the same UA, so authenticated/API calls Just Work too. See `@integrations/curly` → *User-Agent — per-service* for how the field is wired.

## Cheat Sheet

All paths are relative to `https://api.lu.ma` for the modern endpoints, or `https://lu.ma/api` for older ones — both hosts serve the same data; the web app uses both. The `event_api_id` is the `evt-XXX` form, **not** the short URL slug.

### Public reads (no auth)

| Op | Call | Notes |
|----|------|-------|
| Event page metadata | `GET https://luma.com/<slug>` | HTML; parse the embedded `__NEXT_DATA__` JSON — the canonical resolver from short-slug to `event.api_id` + full event object. See Pattern 4. The `WebFetch` tool also handles it well with a "extract name, date/time, location, host" prompt. |
| Calendar feed | `GET https://api.lu.ma/calendar/get?calendar_api_id=cal-XXX` | All upcoming events on a hosted calendar. |
| iCal | `https://api.lu.ma/ics/get?entity=event&id=evt-XXX` | Drops into Google/Apple Calendar. |

### Authenticated (`LUMA_AUTH_COOKIE` required)

| Op | Call | Notes |
|----|------|-------|
| Guest list (host) | `GET https://api.lu.ma/event/admin/get-guests?event_api_id=evt-XXX&pagination_limit=2000` | Returns `{entries[], has_more, next_cursor}`. Paginate with `&pagination_cursor=<next_cursor>`. **2000 is the max safe page size** (3013-guest event verified). |
| Guest CSV export | `POST https://api.lu.ma/event/admin/export-guests` | Body: `{"event_api_id":"evt-XXX"}`. Triggers async export — poll the returned job. |
| My events | `GET https://api.lu.ma/me/events` | Events you've RSVP'd to or host. |
| RSVP / register | `POST https://api.lu.ma/event/register` | Body: `{"event_api_id":"evt-XXX","name":"…","email":"…", …answers}`. Honor any "approval required" flag — the response will be `pending`, not `confirmed`. |
| Approve guest | `POST https://api.lu.ma/event/admin/approve-guest` | Body: `{"event_api_id":"evt-XXX","guest_api_ids":["g-XXX",…]}`. Bulk-approve. |
| Send DM to guest | `POST https://api.lu.ma/dm/send` | Body: `{"thread_api_id":"thr-XXX","content":"…"}`. The thread id comes from the guest record. |

### Pagination shape

```
entries:    [...]
has_more:   true | false
next_cursor: "opaque-string" | null
```

Loop until `has_more === false`. Don't trust `next_cursor` to be a timestamp or anything stable — treat it as opaque.

## Patterns

### 1. Add a Luma URL to the local roster

```bash
SLUG=abcd1234
META=$(curly luma-web "/$SLUG" \
  | python3 -c 'import sys,json,re; html=sys.stdin.read(); m=re.search(r"__NEXT_DATA__[^>]*>(\{.+?\})</script>", html); print(json.dumps(json.loads(m.group(1))["props"]["pageProps"]["initialData"]["data"]["event"]))')
NAME=$(jq -r '.name' <<<"$META")
START=$(jq -r '.start_at' <<<"$META")
GEO=$(jq -r '.geo_address_info.full_address // .geo_address_info.city_state // "online"' <<<"$META")
HOST=$(jq -r '.hosts[0].name // .host_info.host_names[0] // ""' <<<"$META")
printf '%s,"%s","%s","%s","",https://luma.com/%s\n' \
  "$NAME" "$START" "$GEO" "$HOST" "$SLUG" \
  >> events.csv
```

For private/sold-out events the `__NEXT_DATA__` blob may be thinner — fall through with `// null` in jq rather than crashing on missing keys.

### 2. Pull a full guest list from an event you host

```bash
EID=evt-XXXXXXXXXXXXXXX   # your event_api_id
OUT=guests.json
cursor=""; page=1; > "$OUT.tmp"
while :; do
  body=$(curly luma "/event/admin/get-guests?event_api_id=$EID&pagination_limit=2000${cursor:+&pagination_cursor=$cursor}")
  jq -c '.entries[]' <<<"$body" >> "$OUT.tmp"
  has=$(jq -r '.has_more' <<<"$body")
  cursor=$(jq -r '.next_cursor // empty' <<<"$body")
  [ "$has" = "false" ] && break
  page=$((page+1))
done
jq -s '.' "$OUT.tmp" > "$OUT" && rm "$OUT.tmp"
echo "Saved $(jq length "$OUT") guests"
```

### 3. Bulk-RSVP a list of events as the user

```bash
for SLUG in abcd1234 efgh5678 ijkl9012; do
  EID=$(curly luma-web "/$SLUG" \
    | python3 -c 'import sys,json,re; m=re.search(r"__NEXT_DATA__[^>]*>(\{.+?\})</script>", sys.stdin.read()); print(json.loads(m.group(1))["props"]["pageProps"]["initialData"]["data"]["event"]["api_id"])')
  curly luma /event/register -X POST -d "$(jq -n \
    --arg eid "$EID" --arg name "$GUEST_NAME" --arg email "$GUEST_EMAIL" \
    '{event_api_id:$eid, name:$name, email:$email}')"
  sleep 1   # be polite
done
```

### 4. Resolving "what's the event_api_id for `luma.com/<slug>`?"

The short URL (`abcd1234`, 8 chars) is **not** the `event_api_id`. The only reliable resolver is parsing the `__NEXT_DATA__` blob embedded in the public event page HTML:

```bash
curly luma-web "/$SLUG" \
  | python3 -c 'import sys,json,re; m=re.search(r"__NEXT_DATA__[^>]*>(\{.+?\})</script>", sys.stdin.read()); print(json.loads(m.group(1))["props"]["pageProps"]["initialData"]["data"]["event"]["api_id"])'
```

(There used to be an `api.lu.ma/url?url=…` shortcut; it returns `Sorry, we could not find what you were looking for` as of 2026-05. The `__NEXT_DATA__` path is what the web app does internally.)

### 5. Pull the guest list of an event you ATTENDED (not host)

Endpoint: `GET https://api.luma.com/event/get-guest-list?event_api_id=<evt-…>&pagination_limit=500` (same `entries` / `has_more` / `next_cursor` shape as the admin path). Needs a session cookie on `.luma.com` — `api.lu.ma` ignores it and 401s.

Two gates, both 403 on failure: you must be registered and approved ("You don't have access to this event."), and the host must have `show_guest_list: true` ("You don't have access to see the guest list.").

**No email in the guest-visible payload, ever.** Each `user` carries name, `bio_short`, `website`, and the `linkedin_handle` / `twitter_handle` / `instagram_handle` / … social handles. Emails need the host `event/admin/get-guests` path. Do not promise emails from a guest scrape.

Runner: `EID=<evt-…> EVENT_URL=<url> OUT=<file.jsonl> node ~/.cache/agent-browser/luma-scrape-guests.mjs`, run from `~/.cache/agent-browser`. It does the fetch in-page in Test-Chrome over CDP (`:10020`), with the operator's Luma session. Exit 2 `NOT_LOGGED_IN` means Test-Chrome has no Luma cookie, so ask him to sign in once at luma.com there. The `evt-` id is in the event page's `__NEXT_DATA__` (Pattern 4). Verified 2026-06-29 (1,009 guests) and 2026-07-22.

## Wiring into curly

Luma needs **two** service entries — the JSON API and the HTML site are different hosts. Services are data in `~/.curly.yaml`; you create them with `curly init`, never by editing the script.

```bash
# 1. api.lu.ma — built-in. Cookie auth + browser UA come preconfigured.
curly init luma

# 2. luma.com — NOT built-in. Anonymous HTML reads; give it host + auth + UA.
curly init luma-web \
  host=https://luma.com \
  auth=none \
  user_agent='Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/124.0.0.0 Safari/537.36'
```

`user_agent` is a first-class per-service field (`host`, `auth`, `auth_header`, `user_agent`, `token` are the reserved `k=v` keys). It matters here: Luma serves a JS-only shell to anything that looks like `curl/x.x`, **even on public endpoints**, so both entries pin a real-browser UA. `luma-web` exists to fetch `https://luma.com/<slug>` and parse `__NEXT_DATA__` to resolve slug → `event_api_id`.

Want anonymous API reads without a cookie? Add a third entry with `auth=none` against the same host:

```bash
curly init luma-anon host=https://api.lu.ma auth=none \
  user_agent='Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/124.0.0.0 Safari/537.36'
```

Change a UA later by re-running `init` on the existing service — it updates the field and leaves the cookie alone: `curly init luma user_agent='…'`.

After installation:

- `curly luma /event/admin/get-guests?event_api_id=…` — authenticated admin reads
- `curly luma-web /<slug>` — public HTML page, parse `__NEXT_DATA__` for full event JSON

## Gotchas

### ⚠️ Session cookies expire — rotate when 401s appear

The `luma.auth-session-key` cookie typically lasts ~30 days. When `curly luma /me/events` starts returning `401 unauthorized`, re-export from the browser. There's no refresh flow you can hit headlessly.

### ⚠️ Approval-required events return `pending`, not an error

`POST /event/register` against an approval-gated event returns `200` with the registration's `approval_status: "pending_approval"`. Treat that as a soft-success, not a confirmed RSVP. To verify confirmation:

```bash
curly luma "/event/get?event_api_id=$EID" | jq '.guest.approval_status'
# "approved" | "pending_approval" | "declined"
```

### ⚠️ `pagination_limit > 2000` returns 500

The admin guest endpoint takes up to ~2000 items per page. Larger values silently return 500 or an empty page. Stick with 2000; it's faster than chunking smaller.

### ⚠️ Two API hosts; both work; pick one

- `https://api.lu.ma/...` — modern, used by the JS SDK
- `https://lu.ma/api/...` — older, used by the legacy web app

Both serve identical responses for the endpoints in this doc. Default to `api.lu.ma`. Mixed-use within one session is fine but won't share rate-limit budget.

### ⚠️ Geocoding fields are messy

`event.geo_address_info` can have any subset of `full_address`, `city`, `city_state`, `address`, `place_name`, `geo_latitude`, `geo_longitude` — and "online" events have `geo_address_info: null` with a `zoom_url` instead. Fall through with `// null` in jq rather than crashing on missing keys.

### ⚠️ Rate limiting is undocumented but real

No `X-RateLimit-*` headers; you'll find out by getting 429s. Empirically: ~10 req/s anonymous, ~5 req/s authenticated on admin endpoints. Sleep `0.2-1s` between calls when scraping. Bulk-RSVP is the most aggressive — sleep `1-2s` between events and don't run more than one terminal at a time.

### ⚠️ Email field is masked unless you're the host

`/event/admin/get-guests` returns full emails. The public `/event/get` returns `email: null` or a masked form like `j***@e***.com`. If you have the slug but not host access, you can't get the guest list — period. (Host access is the gate: a slug alone is not enough — you must co-host the event.)

---

*Related: `@protocol/protocol-api` · `@integrations/notion` · `@integrations/airtable` · `@integrations/clickup` · `@integrations/index`*

---

*You're reading a protocol on [protocol.supply](https://protocol.supply) — hosted, searchable knowledge for AI agents. Think Agent Skills, as an API: bootstrap once (`curl -sL https://api.protocol.supply/bootstrap`), search (`/search?q=…`), fetch (`/@repo/slug`).*

*Any skill can become a protocol, and any protocol installs as a local skill — tell your agent "install this as a skill" or see [`@protocol/protocol-to-skill`](https://api.protocol.supply/@protocol/protocol-to-skill).*