48hr.email/api/routes/config.api.md
ClaraCrazy fb3d8a60aa
[AI][Feat]: Add API
Also adding API docs <3
2026-01-05 10:29:12 +01:00

793 B

Configuration API

Overview

Public endpoints for configuration, domains, limits, and features.


Endpoints

GET /api/config/domains

Get allowed email domains.

  • Response:
    • domains: array of strings

GET /api/config/limits

Get rate limits and constraints.

  • Response:
    • api.rateLimit, email.purgeTime, email.purgeUnit, email.maxForwardedPerRequest, user.maxVerifiedEmails, user.maxLockedInboxes, user.lockReleaseHours

GET /api/config/features

Get enabled features.

  • Response:
    • authentication, forwarding, statistics, inboxLocking

Response Format

{
  success: true|false,
  data: ...
}

Example Response

{
  "success": true,
  "data": {
    "domains": ["example.com", "demo.com"]
  }
}