Admin API
Overview
The Admin API provides administrative operations for system administrators.
Warning
Admin endpoints require elevated privileges. These operations are restricted to users with the SADM (system admin) role.
Endpoints
List Tenants
List all tenants (identities) managed by this server.
Authentication: Required (admin role)
Query Parameters:
limit- Maximum results (default: 20)offset- Skip N results for pagination
Response:
Example:
Send Password Reset
Send a password reset email to a tenant.
Authentication: Required (admin role)
Path Parameters:
id_tag- Identity tag of the tenant
Response:
Example:
Send Test Email
Send a test email to verify SMTP configuration.
Authentication: Required (admin role)
Request Body:
Response:
Example:
Update Profile (Admin)
Admin update of a profile (roles, status, ban metadata).
Authentication: Required (admin role)
Path Parameters:
id_tag- Identity tag of the profile to update
Request Body:
Profile Status Values:
| Status | Description |
|---|---|
Active |
Normal active account |
Trusted |
Verified/trusted account |
Blocked |
Blocked from interactions |
Muted |
Content hidden from feeds |
Suspended |
Account suspended (temporary) |
Banned |
Account banned (permanent) |
Response:
Proxy Site Management
Manage reverse proxy sites for hosting custom domains.
List Proxy Sites
List all configured proxy sites.
Authentication: Required (admin role)
Response:
Create Proxy Site
Create a new proxy site configuration.
Authentication: Required (admin role)
Request Body:
| Field | Type | Required | Description |
|---|---|---|---|
domain |
string | Yes | Domain name for the proxy site |
backendUrl |
string | Yes | Backend URL to proxy requests to |
type |
string | No | Proxy type: basic (default) or advanced |
config |
object | No | Additional proxy configuration |
Response (201 Created): Returns the created ProxySite object.
Get Proxy Site
Get details of a specific proxy site.
Authentication: Required (admin role)
Path Parameters:
site_id- The proxy site ID
Update Proxy Site
Update a proxy site configuration.
Authentication: Required (admin role)
Path Parameters:
site_id- The proxy site ID
Request Body:
| Field | Type | Description |
|---|---|---|
backendUrl |
string | Updated backend URL |
status |
string | A (active) or D (disabled) |
type |
string | Proxy type |
config |
object | Updated configuration |
Delete Proxy Site
Delete a proxy site configuration.
Authentication: Required (admin role)
Path Parameters:
site_id- The proxy site ID
Response: 204 No Content
Renew Proxy Site Certificate
Trigger TLS certificate renewal for a proxy site.
Authentication: Required (admin role)
Path Parameters:
site_id- The proxy site ID
Community Invite
Invite Community
Send an invitation to a community to join the server.
Authentication: Required (admin role)
Request Body:
| Field | Type | Required | Description |
|---|---|---|---|
targetIdTag |
string | Yes | Identity tag of the community to invite |
expiresInDays |
number | No | Invitation expiry in days (default: 30) |
message |
string | No | Optional invitation message |
Response:
Client SDK Usage
Security Considerations
- Admin endpoints require admin role authentication
- All admin actions are logged for audit purposes
- Password reset emails are rate-limited
- Suspension requires a reason for accountability
See Also
- Authentication API - Authentication and tokens
- Profiles API - Profile management
- IDP Management API - Identity provider admin