Section 14 Official Documentation

Security, Access Keys & Rate Limits

Manage X-Api-Token keys, API rate limits, and protected system tables.

Security, Access Keys & Rate Limits

This reference guide covers how HosteDay protects your App using X-Api-Token keys, Rate Limits, and protected system tables.


1. API Protection (X-Api-Token)

The API Protection layer validates requests using your App's secret token header:

X-Api-Token: YOUR_API_TOKEN
  • Important Note: API Protection is not enabled automatically when an App is created. You must open API Protection in the dashboard and generate a token to enforce protection across all endpoints.
  • You can generate or rotate tokens anytime and toggle the email verification requirement for users.

2. Rate Limits Table

To protect your App from abuse and traffic spikes, the following rate limits apply:

Endpoint / Route Group Rate Limit (Throttle)
POST /api/auth/login 5 requests / minute
POST /api/auth/register 3 requests / minute
POST /api/auth/forgot-password 3 requests / minute
POST /api/user/password-reset-email 3 requests / minute
POST /api/user/email/verification-notification 6 requests / minute
POST /api/realtime/events/public 60 requests / minute
/api/notifications/devices/* 60 requests / minute
POST /api/jobs/dispatch 30 requests / minute

3. Protected System Tables (BLOCKED_TABLES)

Direct access via automatic CRUD endpoints is blocked for the following sensitive system tables:

  • users
  • personal_access_tokens
  • password_reset_tokens
  • tokens
  • tenant_routes
  • table_job_hooks
  • files
  • jobs
  • migrations
  • sessions

User accounts are managed safely through the dedicated /api/auth/* and /api/user/* endpoints.