Skip to main content
GET
/
api
/
v1
/
api-keys
curl "https://api.fileguard.io/api/v1/api-keys?status=active" \
  -H "Authorization: Bearer fg_your_api_key"
{
  "status": "SUCCESS",
  "data": {
    "data": [
      {
        "api_key_id": "key_m1n2o3p4q5r6",
        "name": "Production Upload Key",
        "key_prefix": "fg_aBc",
        "scopes": ["upload", "download", "metadata"],
        "status": "active",
        "created_at": "2026-01-04T10:00:00Z",
        "last_used_at": "2026-01-04T12:30:00Z"
      }
    ],
    "pagination": {
      "page": 1,
      "page_size": 20,
      "total_items": 3,
      "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 API keys with pagination and optional status filtering.

Query Parameters

page
integer
default:"1"
Page number
page_size
integer
default:"20"
Items per page (1-100)
status
string
Filter by status: active, disabled, revoked, expired
curl "https://api.fileguard.io/api/v1/api-keys?status=active" \
  -H "Authorization: Bearer fg_your_api_key"
{
  "status": "SUCCESS",
  "data": {
    "data": [
      {
        "api_key_id": "key_m1n2o3p4q5r6",
        "name": "Production Upload Key",
        "key_prefix": "fg_aBc",
        "scopes": ["upload", "download", "metadata"],
        "status": "active",
        "created_at": "2026-01-04T10:00:00Z",
        "last_used_at": "2026-01-04T12:30:00Z"
      }
    ],
    "pagination": {
      "page": 1,
      "page_size": 20,
      "total_items": 3,
      "total_pages": 1,
      "has_next": false,
      "has_previous": false
    }
  },
  "timestamp": "2026-01-04T10:00:00Z"
}
The actual API key values are never returned after creation.