mirror of
https://github.com/Crazyco-xyz/48hr.email.git
synced 2026-01-10 03:29:36 +01:00
45 lines
793 B
Markdown
45 lines
793 B
Markdown
# 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"]
|
|
}
|
|
}
|
|
```
|