Skip to main content

Overview

Authentication depends on the API surface:

Public API

Requires API key.Preferred header: x-evento-api-key

Embed API

No authentication required.CORS-enabled for browser access.
Never ship your Public API key in client-side JavaScript. Keep keyed requests server-side.

Public API headers

Primary option:
Alternative option:

Examples

Error responses

401 unauthorized

Returned when the API key is missing, invalid, or revoked:
Common causes:
  • Missing x-evento-api-key header
  • Invalid API key format
  • Revoked or expired API key

403 forbidden

Returned when the key is valid but missing required permissions:

429 too many requests

Returned when you exceed the rate limit (1,000 requests/day):
Response headers include:

Best practices

Use environment variables

Store API keys in environment variables, never hardcode them

Server-side only

Use keyed requests from trusted backend environments only.

Implement retry logic

Use exponential backoff when retrying failed requests

Handle errors gracefully

Always check for 401 and 429 responses and handle them appropriately

CORS notes (Embed API)

Embed API includes permissive CORS headers:

Testing authentication

Use this simple request to verify your API key is working:
If the key is valid but the event does not exist, you will receive 404 instead of 401.

Next steps

Get /events/{eventId}

Public event details and guest-list endpoints.

Embed API

No-auth endpoints for browser embeds.