API Overview
The default API prefix is /api/admin. Authenticated endpoints use Thinkrix token middleware.
Authentication
POST /api/admin/loginPOST /api/admin/logoutGET /api/admin/user
After login, Trix stores the token and sends Authorization: Bearer {token} for regular API calls, schema requests, and uploads.
System
GET /api/admin/system/configGET /api/admin/translationsPOST /api/admin/localeGET /api/admin/settingsPOST /api/admin/settings
Upload
POST /api/admin/upload/image
Image upload requires authentication and returns an image URL. Trix NUpload and OneImgUp automatically attach auth headers.
Notifications
GET /api/admin/notificationsGET /api/admin/notifications/pollPOST /api/admin/notifications/{id}/mark-readPOST /api/admin/notifications/mark-all-read
poll powers realtime updates and badge counts.