Introduction

Authentication

All API requests must be authenticated using a Bearer token in the Authorization header.

API keys

API keys are used to authenticate your requests. You can create and manage API keys from your Liveday dashboard under Settings > API Keys.

curl -X GET https://api.liveday.se/v1/events \
  -H "Authorization: Bearer YOUR_API_KEY"

Keep your keys secret

Never expose your API keys in client-side code, public repositories, or any publicly accessible location. Use environment variables to store them securely.

Error responses

If authentication fails, you will receive a 401 Unauthorized response:

{
  "error": {
    "code": "unauthorized",
    "message": "Invalid or missing API key."
  }
}

Rate limiting

API requests are rate-limited to 100 requests per minute per API key. If you exceed this limit, you will receive a 429 Too Many Requests response with a Retry-After header indicating when you can make requests again.

Previous
Getting started