Eventlayer / Start building

Authentication

Authenticate API requests with your API key.

Use an API key to make requests from your server. Create a key in the dashboard.

TypeScript

Set EVENTLAYER_KEY in your server environment:

EVENTLAYER_KEY=sk_your_key_here

The SDK reads it automatically:

import { Eventlayer } from "eventlayer";

const eventlayer = new Eventlayer();

You can also pass your key directly: new Eventlayer("sk_your_key_here"). Keep keys out of browser and mobile application code.

HTTP

Send your key in the Authorization header:

curl https://api.eventlayer.dev/v1/event \
  -H "Authorization: Bearer $EVENTLAYER_KEY"

Incoming webhooks

Use your endpoint’s signing secret to verify webhooks. A signing secret verifies incoming events; it does not authenticate API requests.

Issue your first ticket or manage your API keys.