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

# سرد الملفات المرفوعة

> GET /media/

يسرد الملفات التي رفعها الحساب نفسه، على مضيف **واجهة برمجة التطبيقات للإدارة** (`api.scanova.io`)، مع المصادقة باستخدام مفتاح واجهة برمجة التطبيقات للإدارة الخام الخاص بك.

```
GET https://api.scanova.io/media/
Authorization: 401f7ac837da42b97f613d789819ff93537bee6a
```

<ParamField query="file_type" type="string">
  التصفية حسب نوع الملف المكتشَف، مثل `png`.
</ParamField>

<ParamField query="in_use" type="string">
  التصفية حسب مؤشر الاستخدام، مثل `qr_logo`.
</ParamField>

<ParamField query="extension" type="string">
  التصفية حسب امتداد الملف.
</ParamField>

<ParamField query="mime_type" type="string">
  التصفية حسب نوع MIME.
</ParamField>

<ParamField query="is_bulk" type="boolean">
  تصفية الملفات التي تنتمي (أو لا تنتمي) إلى دفعة وسائط مجمّعة.
</ParamField>

<ParamField query="search" type="string">
  البحث ضمن `original_name`.
</ParamField>

<ParamField query="ordering" type="string">
  الترتيب حسب `created` أو `original_name` أو `file_size` — أضف البادئة `-` للترتيب التنازلي. القيمة الافتراضية هي `-created`.
</ParamField>

<ParamField query="fields" type="string">
  قائمة مفصولة بفواصل بالحقول المسموح بها، لتقليص شكل الاستجابة.
</ParamField>

<ParamField query="page" type="integer">
  رقم الصفحة.
</ParamField>

<ParamField query="page_size" type="integer">
  عدد النتائج لكل صفحة، بحد أقصى 100.
</ParamField>

<RequestExample>
  ```bash cURL theme={null}
  curl "https://api.scanova.io/media/?in_use=qr_logo" \
    -H "Authorization: 401f7ac837da42b97f613d789819ff93537bee6a"
  ```
</RequestExample>

<ResponseExample>
  ```json 200 theme={null}
  {
    "count": 1,
    "next": null,
    "previous": null,
    "results": [
      {
        "id": 4821,
        "file": "media/uploads/104/2026/09/20260908_512873_logo.png",
        "upload": null,
        "file_name": "20260908_512873_logo.png",
        "size": 48213,
        "human_readable_size": "47.08 KB",
        "original_name": "logo.png",
        "bulk_media": null,
        "mime_type": "image/png",
        "file_type": "png",
        "in_use": "qr_logo",
        "category": "custom-design",
        "created": "2026-09-08T10:15:32.120Z",
        "modified": "2026-09-08T10:15:32.120Z"
      }
    ]
  }
  ```
</ResponseExample>

<Warning>
  لا يرفض هذا الطرف الطلبات غير المُصادَق عليها بشكل صريح — فمفتاح API المفقود أو غير الصالح يقيّد الاستعلام فقط بحيث لا يعود لأي مستخدم، لذا ستحصل على مجموعة نتائج فارغة بدلاً من `401`. أرسل مفتاحك دائمًا.
</Warning>

## ذو صلة

* [رفع ملف](/ar/api-reference/management-api/user-media/upload) — إضافة ملف جديد.
* [سرد أنواع الملفات المسموح بها](/ar/api-reference/management-api/user-media/allowed-files) — القيود التي يجب أن تستوفيها الملفات المرفوعة.
* [جلب ملف](/ar/api-reference/management-api/user-media/retrieve) — جلب ملف حسب المعرّف.
* [نظرة عامة على واجهة برمجة التطبيقات للإدارة](/ar/api-reference/management-api/overview) — مخطط المصادقة وقواعد الحصة المطبّقة على هذا الطرف.


## OpenAPI

````yaml api-reference/openapi/management-api.json GET /media/
openapi: 3.1.0
info:
  title: Scanova Management API (v2)
  description: >-
    The complete Scanova Management API — every endpoint available at
    api.scanova.io (QR codes, folders, tags, leads, forms, analytics, plans,
    shared users & roles), plus the token-creation and usage-stats endpoints
    used to authenticate against it. Every path and request/response shape below
    was verified live against a real API key and the actual running backend
    (Phase 7, 2026-08-16) — not guessed from reading urls.py alone.
  version: 2.0.0
servers:
  - url: https://api.scanova.io
    description: Management API — QR/folder/tag/lead/form/analytics/plans endpoints
security:
  - apiKeyAuth: []
paths:
  /media/:
    get:
      summary: List uploaded files
      description: >-
        The account's own uploaded files. Supports filtering by file_type,
        in_use, extension, mime_type, and is_bulk; searching by original_name;
        and ordering by created, original_name, or file_size.
      operationId: listMedia
      parameters:
        - name: file_type
          in: query
          required: false
          schema:
            type: string
        - name: in_use
          in: query
          required: false
          schema:
            type: string
        - name: extension
          in: query
          required: false
          schema:
            type: string
        - name: mime_type
          in: query
          required: false
          schema:
            type: string
        - name: is_bulk
          in: query
          required: false
          schema:
            type: boolean
        - name: search
          in: query
          required: false
          schema:
            type: string
        - name: ordering
          in: query
          required: false
          schema:
            type: string
          description: e.g. -created, original_name, file_size.
        - name: fields
          in: query
          required: false
          schema:
            type: string
          description: Comma-separated field allow-list for the response.
        - name: page
          in: query
          required: false
          schema:
            type: integer
        - name: page_size
          in: query
          required: false
          schema:
            type: integer
          description: Max 100.
      responses:
        '200':
          description: Paginated list of files.
          content:
            application/json:
              example:
                count: 1
                next: null
                previous: null
                results:
                  - id: 4821
                    file: media/uploads/104/2026/09/20260908_512873_logo.png
                    upload: null
                    file_name: 20260908_512873_logo.png
                    size: 48213
                    human_readable_size: 47.08 KB
                    original_name: logo.png
                    bulk_media: null
                    mime_type: image/png
                    file_type: png
                    in_use: qr_logo
                    category: custom-design
                    created: '2026-09-08T10:15:32.120Z'
                    modified: '2026-09-08T10:15:32.120Z'
components:
  securitySchemes:
    apiKeyAuth:
      type: apiKey
      in: header
      name: Authorization
      description: >-
        Send your Management API key as the raw value of the Authorization
        header — no "Bearer " or "Token " prefix, and no other characters.
        Example: `Authorization: 401f7ac837da42b97f613d789819ff93537bee6a`. A
        header containing more than one space-separated part is rejected
        outright. Requests also require the request's Host header to be the
        management API host (e.g. api.scanova.io) — the same key sent to the
        regular API host will not authenticate.

````