> ## Documentation Index
> Fetch the complete documentation index at: https://docs.shardcloud.app/llms.txt
> Use this file to discover all available pages before exploring further.

# Get CDN usage stats

> Returns CDN storage statistics for the authenticated user (limit, usage, file count).



## OpenAPI

````yaml /cdn/openapi.json get /cdn/stats
openapi: 3.0.3
info:
  title: Shard Cloud CDN API
  version: 1.0.0
servers:
  - url: https://shardcloud.app/api
security:
  - BearerAuth: []
paths:
  /cdn/stats:
    get:
      tags:
        - CDN
      summary: Get CDN usage stats
      description: >-
        Returns CDN storage statistics for the authenticated user (limit, usage,
        file count).
      operationId: getCdnStats
      responses:
        '200':
          description: CDN usage statistics
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CdnStatsResponse'
        '401':
          description: Unauthorized
components:
  schemas:
    CdnStatsResponse:
      type: object
      properties:
        limit_kb:
          type: integer
          format: int64
        used_kb:
          type: integer
          format: int64
        total_files:
          type: integer
          format: int64
  securitySchemes:
    BearerAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.