Skip to main content
The SDK authenticates with the x-luma-api-key header on every request to https://public-api.luma.com.

Prerequisites

1

Luma Plus

API access requires a Luma Plus organization. See the official getting started guide.
2

Create an API key

Open Luma API keys and create a key for your calendar.
3

Store the key securely

Never commit API keys to git. Use environment variables or a secrets manager.

Environment variables

Copy .env.example to .env in your project root:
Set your key:
Bun loads .env automatically. In Node.js, load it yourself or export the variable in your shell.

Initialize the client

Pass the key as the first constructor argument. The SDK sends it on every outbound request.

Client options

Use baseUrl only if you need to point at a different host (for example, a mock server in tests).

Verify your key works

Run a smoke test against the live API:
See Test your setup for a full walkthrough.