Skip to main content
GET
/
api
/
v1
/
contexts
curl "https://api.fileguard.io/api/v1/contexts?status=active" \
  -H "Authorization: Bearer fg_your_api_key"
{
  "status": "SUCCESS",
  "data": {
    "data": [
      {
        "context_id": "ctx_q1w2e3r4t5y6",
        "context_key": "patient_reports",
        "display_name": "Patient Reports",
        "description": "Medical patient reports",
        "status": "active",
        "allowed_extensions": ["pdf"],
        "max_file_size_mb": 10,
        "reject_blank_files": true,
        "reject_corrupt_files": true,
        "scan_for_viruses": true,
        "storage_quota_mb": 10240,
        "storage_used_bytes": 52428800
      }
    ],
    "pagination": {
      "page": 1,
      "page_size": 20,
      "total_items": 5,
      "total_pages": 1,
      "has_next": false,
      "has_previous": false
    }
  },
  "timestamp": "2026-01-04T10: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.

List all file contexts with pagination and optional status filtering.

Query Parameters

page
integer
default:"1"
Page number (1-indexed)
page_size
integer
default:"20"
Items per page (1-100)
status
string
Filter by status: active or inactive
curl "https://api.fileguard.io/api/v1/contexts?status=active" \
  -H "Authorization: Bearer fg_your_api_key"
{
  "status": "SUCCESS",
  "data": {
    "data": [
      {
        "context_id": "ctx_q1w2e3r4t5y6",
        "context_key": "patient_reports",
        "display_name": "Patient Reports",
        "description": "Medical patient reports",
        "status": "active",
        "allowed_extensions": ["pdf"],
        "max_file_size_mb": 10,
        "reject_blank_files": true,
        "reject_corrupt_files": true,
        "scan_for_viruses": true,
        "storage_quota_mb": 10240,
        "storage_used_bytes": 52428800
      }
    ],
    "pagination": {
      "page": 1,
      "page_size": 20,
      "total_items": 5,
      "total_pages": 1,
      "has_next": false,
      "has_previous": false
    }
  },
  "timestamp": "2026-01-04T10:00:00Z"
}