Skip to main content
GET
/
api
/
v1
/
stats
curl "https://api.fileguard.io/api/v1/stats" \
  -H "Authorization: Bearer fg_your_api_key"
{
  "status": "SUCCESS",
  "data": {
    "overview": {
      "total_files": 847000,
      "total_contexts": 5,
      "total_api_keys": 12,
      "total_downloads": 125000
    },
    "api_calls": {
      "today": 12847,
      "yesterday": 10887,
      "change_percent": 18.0,
      "by_operation": {
        "upload": 5200,
        "download": 6847,
        "metadata": 700,
        "delete": 100
      },
      "by_status": {
        "success": 12500,
        "failure": 347
      }
    },
    "storage": {
      "total_bytes": 2638827520000,
      "total_formatted": "2.4 TB",
      "by_context": [
        {
          "context_key": "patient_reports",
          "context_name": "Patient Reports",
          "count": 450000,
          "total_bytes": 1500000000000
        },
        {
          "context_key": "lab_results",
          "context_name": "Lab Results",
          "count": 250000,
          "total_bytes": 800000000000
        },
        {
          "context_key": "imaging_scans",
          "context_name": "Imaging Scans",
          "count": 147000,
          "total_bytes": 338827520000
        }
      ]
    },
    "storage_quota": {
      "quota_mb": 5120000,
      "used_bytes": 2638827520000,
      "used_formatted": "2.4 TB",
      "used_percent": 50.37,
      "remaining_bytes": 2731172480000,
      "remaining_formatted": "2.5 TB"
    },
    "files_uploaded": {
      "total": 847000,
      "today": 5200,
      "yesterday": 4800,
      "change_percent": 8.33
    },
    "security": {
      "files_blocked_total": 1250,
      "blocked_today": 15,
      "blocked_yesterday": 12,
      "change_percent": 25.0,
      "by_reason": {
        "blank_file": 450,
        "corrupt_file": 320,
        "virus_detected": 25,
        "invalid_extension": 400,
        "size_exceeded": 55
      }
    }
  },
  "timestamp": "2026-01-17T10:00:00Z"
}

Documentation Index

Fetch the complete documentation index at: https://fileguard.dev/docs/llms.txt

Use this file to discover all available pages before exploring further.

Get comprehensive statistics and insights for your tenant including files, API calls, storage, and security metrics.
curl "https://api.fileguard.io/api/v1/stats" \
  -H "Authorization: Bearer fg_your_api_key"
{
  "status": "SUCCESS",
  "data": {
    "overview": {
      "total_files": 847000,
      "total_contexts": 5,
      "total_api_keys": 12,
      "total_downloads": 125000
    },
    "api_calls": {
      "today": 12847,
      "yesterday": 10887,
      "change_percent": 18.0,
      "by_operation": {
        "upload": 5200,
        "download": 6847,
        "metadata": 700,
        "delete": 100
      },
      "by_status": {
        "success": 12500,
        "failure": 347
      }
    },
    "storage": {
      "total_bytes": 2638827520000,
      "total_formatted": "2.4 TB",
      "by_context": [
        {
          "context_key": "patient_reports",
          "context_name": "Patient Reports",
          "count": 450000,
          "total_bytes": 1500000000000
        },
        {
          "context_key": "lab_results",
          "context_name": "Lab Results",
          "count": 250000,
          "total_bytes": 800000000000
        },
        {
          "context_key": "imaging_scans",
          "context_name": "Imaging Scans",
          "count": 147000,
          "total_bytes": 338827520000
        }
      ]
    },
    "storage_quota": {
      "quota_mb": 5120000,
      "used_bytes": 2638827520000,
      "used_formatted": "2.4 TB",
      "used_percent": 50.37,
      "remaining_bytes": 2731172480000,
      "remaining_formatted": "2.5 TB"
    },
    "files_uploaded": {
      "total": 847000,
      "today": 5200,
      "yesterday": 4800,
      "change_percent": 8.33
    },
    "security": {
      "files_blocked_total": 1250,
      "blocked_today": 15,
      "blocked_yesterday": 12,
      "change_percent": 25.0,
      "by_reason": {
        "blank_file": 450,
        "corrupt_file": 320,
        "virus_detected": 25,
        "invalid_extension": 400,
        "size_exceeded": 55
      }
    }
  },
  "timestamp": "2026-01-17T10:00:00Z"
}

Response Sections

Overview

High-level metrics across your tenant.
FieldDescription
total_filesTotal files stored
total_contextsNumber of file contexts
total_api_keysNumber of API keys
total_downloadsTotal download count

API Calls

API usage with daily comparison.
FieldDescription
todayCalls today (UTC)
yesterdayCalls yesterday
change_percentDay-over-day change
by_operationBreakdown by operation type
by_statusSuccess vs failure counts

Storage

Storage usage breakdown.
FieldDescription
total_bytesTotal storage in bytes
total_formattedHuman-readable size
by_contextTop 3 contexts by storage

Security

Files blocked by validation.
FieldDescription
files_blocked_totalTotal files blocked
by_reasonBreakdown by rejection reason
Requires metadata scope on your API key.