POST
/api/admin/send-daily-reportAdminSend the daily admin report (POST)
Builds the last 24 hours' activity report (new users, organizations, captured errors, most active users, most popular apps and APIs) and e-mails it to the administrator mailing list. Both GET and POST trigger it so it can be wired to simple cron schedulers.
operationId
post_api_admin_send_daily_reportAdministrationAuthentication & permissionsAdmin
Platform administrators only
- Accepted credentials
- Auth server session (refresh token cookie)
cookie "refresh_token_<auth_server_app_id>" - Access token (cookie)
cookie "access_token_<auth_server_app_id>" - Access token (Bearer)
Authorization: Bearer <JWT>
- Auth server session (refresh token cookie)
- Who may call
- Platform administrators only
- Notes
- Scheduled jobs may call this without a session by sending the deployment's cron secret as
Authorization: Bearer <CRON_SECRET>; that check runs before the session guard (see the route's cron bypass middleware). Every other caller needs an administrator session.
Responses
application/json
DailyAdminReportResult
| Property | Type | Description |
|---|---|---|
| ok* | true | |
| users_count* | integer | |
| organizations_count* | integer | |
| errors_count* | integer | |
| top_most_active_users_count* | integer | |
| top_most_popular_apps_count* | integer | |
| top_most_popular_apis_count* | integer | |
| window_start* | string (date-time) | Start of the 24h reporting window |
| window_end* | string (date-time) | End of the 24h reporting window (now) |
JSONExample
"ok"true
"users_count"1
"organizations_count"1
"errors_count"1
"top_most_active_users_count"1
"top_most_popular_apps_count"1
"top_most_popular_apis_count"1
"window_start""2026-01-01T00:00:00.000Z"
"window_end""2026-01-01T00:00:00.000Z"
Example request
bashcurl
curl -X POST 'https://auth.schemavaults.com/api/admin/send-daily-report' \
-b 'refresh_token_<auth_server_app_id>=<value>'