All examples below call the real Luma API. Use a test calendar and non-production data when possible.
Prerequisites
- Luma Plus organization
- API key from Luma API keys
@alhwyn/lumainstalled withnpm install @alhwyn/lumaorbun add @alhwyn/luma(Install)
Smoke test
Createsmoke.ts:
luma.users.get() and luma.events.list() — see Users and Events.
If the script fails with AuthenticationError, double-check the key and that your organization has API access.
Read guests on a real event
Once the smoke test passes, try read-only calls on an event you own. Use an event ID from the smoke test output or your Luma dashboard:Troubleshooting
| Error | Likely cause |
|---|---|
AuthenticationError (401) | Invalid or missing LUMA_API_KEY |
ValidationError (400) | Wrong parameter shape — check the method docs for that resource |
RateLimitError (429) | Too many requests — back off and retry |
Missing LUMA_API_KEY | Export the variable or add it to .env in your project root |