GET/api/admin/send-daily-reportAdmin

Send the daily admin report

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 get_api_admin_send_daily_reportAdministration

Authentication & permissionsAdmin

Platform administrators only

Accepted credentials
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
PropertyTypeDescription
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 GET 'https://auth.schemavaults.com/api/admin/send-daily-report' \
  -b 'refresh_token_<auth_server_app_id>=<value>'

Other methods on this path