> To build or manage a Wix site with an AI agent, follow https://www.wix.com/headless/skill.md
> It builds a new Wix site or puts your own site online, from a prompt, and keeps changing it afterwards. The pages are code in any web technology, and Wix runs the backend.
> It works through the Wix plugin (the Wix MCP and the Wix skills), the Wix CLI or no Wix login, and puts the site live on Wix hosting or on another host.
> Business features include a store, bookings, events and tickets, a restaurant, a blog, forms, members and many more.
> Read the Wix skills online at https://www.wix.com/skills
> 
> Portal Navigation:
> 
> - Append `.md` to any URL under `https://dev.wix.com/docs/` to get its markdown version.
> - Pages are either content pages (article or reference text) or menu pages (a list of links to child pages).
> - To get a menu page, truncate any URL to a parent path and append `.md` (e.g. `https://dev.wix.com/docs/sdk.md`, `https://dev.wix.com/docs/sdk/core-modules.md`).
> - If a reference page seems to be missing its schema (parameters, return types, or type definitions), append `?schema=true` to its `.md` URL (e.g. `https://dev.wix.com/docs/contexts/contexts/stores/category-info/use-category-info-context.md?schema=true`).
> - Top-level index of all portals: https://dev.wix.com/docs/llms.txt
> - Full concatenated docs: https://dev.wix.com/docs/llms-full.txt

# GetFileDescriptors

# Package: mediaManager

# Namespace: FilesService

# Method link: https://dev.wix.com/docs/api-reference/assets/media/media-manager/files/get-file-descriptors.md

## Permission Scopes:
Read Media Manager: SCOPE.DC-MEDIA.READ-MEDIAMANAGER

## Introduction

Gets information about specific files in the Media Manager.

---

## REST API

### Schema

```
 Method: getFileDescriptors
 Description: Gets information about specific files in the Media Manager.
 URL: https://www.wixapis.com/site-media/v1/files/get-files
 Method: POST
 # Note: If the parameter `a.b` is listed under required parameters, `b` is only required if `a` is also present.
 Required parameters:  fileIds
 Method parameters: 
   param name: fileIds | type: array<fileIds> | description: File GUIDs.  You can also specify the files' Wix media URLs. For example, `["wix:image://v1/0abec0_b291a9349a0b4da59067f76287e386fb~mv2.jpg/leon.jpg#originWidth=3024&originHeight=4032"]`. Learn more [about the file GUID parameter](https://dev.wix.com/docs/api-reference/assets/media/media-manager/files/file-id.md). | required: true | validation: minItems 1, maxItems 100, maxLength 1000
 Return type: GetFileDescriptorsResponse
  - name: files | type: array<FileDescriptor> | description: Information about the requested files.  | validation: maxItems 100
     - name: id | type: string | description: File GUID. Generated when a file is uploaded to the Media Manager.  | read-only: true | validation: maxLength 1000
     - name: displayName | type: string | description: File name as it appears in the Media Manager.  | validation: maxLength 255
     - name: url | type: string | description: Static URL of the file.  | read-only: true | validation: format WEB_URL
     - name: parentFolderId | type: string | description: GUID of the file's parent folder.  | validation: maxLength 100
     - name: hash | type: string | description: File hash.  | read-only: true | validation: maxLength 100
     - name: sizeInBytes | type: string | description: Size of the uploaded file in bytes.  | read-only: true | validation: format DECIMAL_VALUE, decimalValue {"maxScale":0}
     - name: private | type: boolean | description: Whether the file is public or private. Learn more about [private files](https://dev.wix.com/docs/rest/assets/media/media-manager/files/private-files.md).  | read-only: true 
     - name: mediaType | type: MediaType | description: Media file type.  | read-only: true 
         - enum:
         -     UNKNOWN: Unknown media type.
         -     IMAGE: Image file, such as JPEG or PNG.
         -     VIDEO: Video file.
         -     AUDIO: Audio file.
         -     DOCUMENT: Document file, such as PDF.
         -     VECTOR: Vector image file, such as SVG.
         -     ARCHIVE: Archive file, such as ZIP.
         -     MODEL3D: 3D model file.
         -     OTHER: Any other file type.
     - name: media | type: FileMedia | description: Media-type-specific metadata, such as an image's dimensions or a video's available resolutions. The relevant property is populated according to the file's `mediaType`.  | read-only: true 
        - ONE-OF: 
           - name: image | type: ImageMedia | description: Information about the image.  
              - name: image | type: Image | description: Image data.  
                 - name: id | type: string | description: WixMedia image GUID.  
                 - name: url | type: string | description: Image URL.  
                 - name: height | type: integer | description: Original image height.  | read-only: true 
                 - name: width | type: integer | description: Original image width.  | read-only: true 
                 - name: altText | type: string | description: Image alt text.  
                 - name: filename | type: string | description: Image filename.  | read-only: true 
              - name: colors | type: Colors | description: Image colors.  
                 - name: prominent | type: Color | description: Main color of the image.  
                    - name: hex | type: string | description: HEX color.  | validation: format COLOR_HEX
                    - name: rgb | type: ColorRGB | description: RGB color.  
                       - name: r | type: integer | description: Red channel.  | validation: minimum 0, maximum 255, format int32
                       - name: g | type: integer | description: Green channel.  | validation: minimum 0, maximum 255, format int32
                       - name: b | type: integer | description: Blue channel.  | validation: minimum 0, maximum 255, format int32
                 - name: palette | type: array<Color> | description: Color palette of the image.  | validation: maxItems 100
              - name: faces | type: array<FaceRecognition> | description: Information about faces in the image. Use to crop images without cutting out faces.  | validation: maxItems 100
                 - name: confidence | type: number | description: The accuracy percentage of the face recognition. The likelihood that a face is detected.  
                 - name: x | type: integer | description: Top left x pixel coordinate of the face.  
                 - name: y | type: integer | description: Top left y pixel coordinate of the face.  
                 - name: height | type: integer | description: Face pixel height.  
                 - name: width | type: integer | description: Face pixel width.  
              - name: previewImage | type: Image | description: Information about the image preview. You can use this to display a preview for private images.  
              - name: caption | type: string | description: Optional, An AI generated description of the image  | read-only: true | validation: maxLength 300
           - name: video | type: VideoV2 | description: Information about the video.  
              - name: id | type: string | description: WixMedia GUID.  
              - name: resolutions | type: array<VideoResolution> | description: Available resolutions for the video, starting with the optimal resolution.  | read-only: true | validation: maxItems 100
                 - name: url | type: string | description: Video URL.  
                 - name: height | type: integer | description: Video height.  
                 - name: width | type: integer | description: Video width.  
                 - name: format | type: string | description: Video format Possible values: ['144p.mp4' '144p.webm' '240p.mp4' '240p.webm' '360p.mp4' '360p.webm' '480p.mp4' '480p.webm' '720p.mp4' '720p.webm' '1080p.mp4' '1080p.webm', 'hls' ]  
              - name: filename | type: string | description: Video filename.  | read-only: true 
           - name: audio | type: AudioV2 | description: Information about the audio.  
              - name: id | type: string | description: WixMedia GUID.  | validation: maxLength 200
              - name: assets | type: array<Audio> | description: Audio formats available for this file.  | validation: maxItems 100
                 - name: id | type: string | description: WixMedia GUID.  
                 - name: url | type: string | description: Audio URL.  
                 - name: filename | type: string | description: Audio filename.  | read-only: true 
              - name: bitrate | type: integer | description: Audio bitrate.  | read-only: true | validation: minimum 0, format int32
              - name: format | type: string | description: Audio format.  | read-only: true | validation: maxLength 100
              - name: duration | type: integer | description: Audio duration in seconds.  | read-only: true | validation: minimum 0, format int32
              - name: sizeInBytes | type: string | description: Audio size in bytes.  | read-only: true | validation: format DECIMAL_VALUE, decimalValue {"maxScale":0}
           - name: document | type: Document | description: Information about the document.  
              - name: id | type: string | description: WixMedia GUID.  
              - name: url | type: string | description: Document URL.  
              - name: filename | type: string | description: Document filename.  
           - name: vector | type: ImageMedia | description: Information about the vector.  
           - name: archive | type: Archive | description: Information about the archive.  
              - name: id | type: string | description: WixMedia GUID.  
              - name: url | type: string | description: Archive URL.  
              - name: urlExpirationDate | type: string | description: Archive URL expiration date (when relevant).  | read-only: true | validation: format date-time
              - name: sizeInBytes | type: string | description: Archive size in bytes.  | validation: format DECIMAL_VALUE
              - name: filename | type: string | description: Archive filename.  
           - name: model3d | type: Model3D | description: Information about the 3D Model.  
              - name: id | type: string | description: WixMedia 3D GUID.  
              - name: url | type: string | description: 3D URL.  
              - name: thumbnail | type: Image | description: 3D thumbnail Image  
              - name: altText | type: string | description: 3D alt text.  
              - name: urlExpirationDate | type: string | description: 3D URL expiration date (when relevant).  | read-only: true | validation: format date-time
              - name: filename | type: string | description: 3D filename.  | read-only: true 
              - name: sizeInBytes | type: string | description: 3D size in bytes.  | read-only: true | validation: format DECIMAL_VALUE
     - name: operationStatus | type: OperationStatus | description: Status of the file that was uploaded.  | read-only: true 
         - enum:
         -     FAILED: The file failed to upload, for example, during media post processing.
         -     READY: The file uploaded, finished all processing, and is ready for use.
         -     PENDING: The file is processing and the URLs are not yet available. This response is returned when importing a file.
     - name: sourceUrl | type: string | description: URL where the file was uploaded from.  | read-only: true | validation: format WEB_URL
     - name: thumbnailUrl | type: string | description: URL of the file's thumbnail.  | read-only: true | validation: format WEB_URL
     - name: labels | type: array<string> | description: Labels assigned to media files that describe and categorize them. Provided by the Wix user, or generated by [Google Vision API](https://cloud.google.com/vision/docs/drag-and-drop) for images.  | validation: maxItems 100, maxLength 200
     - name: createdDate | type: string | description: Date and time the file was created.  | read-only: true | validation: format date-time
     - name: updatedDate | type: string | description: Date and time the file was updated.  | read-only: true | validation: format date-time
     - name: siteId | type: string | description: The Wix site GUID where the media file is stored.  | read-only: true | validation: maxLength 100
     - name: state | type: State | description: State of the file.  | read-only: true 
         - enum:
         -     OK: File is ready for consumption
         -     DELETED: Deleted file

 Possible Errors:
   HTTP Code: 400 | Status Code: INVALID_ARGUMENT | Application Code: RESOURCE_NOT_FOUND | Description: Couldn't find the file.


```

### Examples

### Get information about specific files
```curl
curl -X POST \
  'https://www.wixapis.com/site-media/v1/files/get-files' \
  -H 'Authorization: <AUTH>' \
  -H 'Content-Type: application/json' \
  --data-binary '{
    "fileIds": ["4acbb8_7596aeebcf5c41eca01c0d99667ac967.mp3", "3vcbb7_7446aeebcf5c41eca01c0d99665bc866.mp3"]
  }'
```

---

## JavaScript SDK

### Schema

```
 Method: wixClientAdmin.media.files.getFileDescriptors(fileIds)
 Description: Gets information about specific files in the Media Manager.
 # Note: If the parameter `a.b` is listed under required parameters, `b` is only required if `a` is also present.
 Required parameters:  fileIds
 Method parameters: 
   param name: fileIds | type: array<string> | description: File GUIDs.  You can also pass the files' Wix media URLs. For example, `["wix:image://v1/0abec0_b291a9349a0b4da59067f76287e386fb~mv2.jpg/leon.jpg#originWidth=3024&originHeight=4032"]`. Learn more in the File and Folder GUIDs article.  | required: true | validation: minItems 1, maxItems 100, maxLength 1000
 Return type: PROMISE<GetFileDescriptorsResponse>
  - name: files | type: array<FileDescriptor> | description: Information about the requested files.  | validation: maxItems 100
     - name: _id | type: string | description: File GUID. Generated when a file is uploaded to the Media Manager.  | read-only: true | validation: maxLength 1000
     - name: displayName | type: string | description: File name as it appears in the Media Manager.  | validation: maxLength 255
     - name: url | type: string | description: Static URL of the file.  | read-only: true | validation: format WEB_URL
     - name: parentFolderId | type: string | description: GUID of the file's parent folder.  | validation: maxLength 100
     - name: hash | type: string | description: File hash.  | read-only: true | validation: maxLength 100
     - name: sizeInBytes | type: string | description: Size of the uploaded file in bytes.  | read-only: true | validation: format DECIMAL_VALUE, decimalValue {"maxScale":0}
     - name: private | type: boolean | description: Whether the file is public or private. Learn more about [private files](https://dev.wix.com/docs/rest/assets/media/media-manager/files/private-files.md).  | read-only: true 
     - name: mediaType | type: MediaType | description: Media file type.  | read-only: true 
         - enum:
         -     UNKNOWN: Unknown media type.
         -     IMAGE: Image file, such as JPEG or PNG.
         -     VIDEO: Video file.
         -     AUDIO: Audio file.
         -     DOCUMENT: Document file, such as PDF.
         -     VECTOR: Vector image file, such as SVG.
         -     ARCHIVE: Archive file, such as ZIP.
         -     MODEL3D: 3D model file.
         -     OTHER: Any other file type.
     - name: media | type: FileMedia | description: Media-type-specific metadata, such as an image's dimensions or a video's available resolutions. The relevant property is populated according to the file's `mediaType`.  | read-only: true 
        - ONE-OF: 
           - name: image | type: ImageMedia | description: Information about the image.  
              - name: image | type: string | description: Image data.  
              - name: colors | type: Colors | description: Image colors.  
                 - name: prominent | type: Color | description: Main color of the image.  
                    - name: hex | type: string | description: HEX color.  | validation: format COLOR_HEX
                    - name: rgb | type: ColorRGB | description: RGB color.  
                       - name: r | type: integer | description: Red channel.  | validation: minimum 0, maximum 255, format int32
                       - name: g | type: integer | description: Green channel.  | validation: minimum 0, maximum 255, format int32
                       - name: b | type: integer | description: Blue channel.  | validation: minimum 0, maximum 255, format int32
                 - name: palette | type: array<Color> | description: Color palette of the image.  | validation: maxItems 100
              - name: faces | type: array<FaceRecognition> | description: Information about faces in the image. Use to crop images without cutting out faces.  | validation: maxItems 100
                 - name: confidence | type: number | description: The accuracy percentage of the face recognition. The likelihood that a face is detected.  
                 - name: x | type: integer | description: Top left x pixel coordinate of the face.  
                 - name: y | type: integer | description: Top left y pixel coordinate of the face.  
                 - name: height | type: integer | description: Face pixel height.  
                 - name: width | type: integer | description: Face pixel width.  
              - name: previewImage | type: string | description: Information about the image preview. You can use this to display a preview for private images.  
              - name: caption | type: string | description: Optional, An AI generated description of the image  | read-only: true | validation: maxLength 300
           - name: video | type: string | description: Information about the video.  
           - name: audio | type: AudioV2 | description: Information about the audio.  
              - name: _id | type: string | description: WixMedia GUID.  | validation: maxLength 200
              - name: assets | type: array<string> | description: Audio formats available for this file.  | validation: maxItems 100
              - name: bitrate | type: integer | description: Audio bitrate.  | read-only: true | validation: minimum 0, format int32
              - name: format | type: string | description: Audio format.  | read-only: true | validation: maxLength 100
              - name: duration | type: integer | description: Audio duration in seconds.  | read-only: true | validation: minimum 0, format int32
              - name: sizeInBytes | type: string | description: Audio size in bytes.  | read-only: true | validation: format DECIMAL_VALUE, decimalValue {"maxScale":0}
           - name: document | type: string | description: Information about the document.  
           - name: vector | type: ImageMedia | description: Information about the vector.  
           - name: archive | type: Archive | description: Information about the archive.  
              - name: _id | type: string | description: WixMedia GUID.  
              - name: url | type: string | description: Archive URL.  
              - name: urlExpirationDate | type: Date | description: Archive URL expiration date (when relevant).  | read-only: true 
              - name: sizeInBytes | type: string | description: Archive size in bytes.  | validation: format DECIMAL_VALUE
              - name: filename | type: string | description: Archive filename.  
           - name: model3d | type: Model3D | description: Information about the 3D Model.  
              - name: _id | type: string | description: WixMedia 3D GUID.  
              - name: url | type: string | description: 3D URL.  
              - name: thumbnail | type: string | description: 3D thumbnail Image  
              - name: altText | type: string | description: 3D alt text.  
              - name: urlExpirationDate | type: Date | description: 3D URL expiration date (when relevant).  | read-only: true 
              - name: filename | type: string | description: 3D filename.  | read-only: true 
              - name: sizeInBytes | type: string | description: 3D size in bytes.  | read-only: true | validation: format DECIMAL_VALUE
     - name: operationStatus | type: OperationStatus | description: Status of the file that was uploaded.  | read-only: true 
         - enum:
         -     FAILED: The file failed to upload, for example, during media post processing.
         -     READY: The file uploaded, finished all processing, and is ready for use.
         -     PENDING: The file is processing and the URLs are not yet available. This response is returned when importing a file.
     - name: sourceUrl | type: string | description: URL where the file was uploaded from.  | read-only: true | validation: format WEB_URL
     - name: thumbnailUrl | type: string | description: URL of the file's thumbnail.  | read-only: true | validation: format WEB_URL
     - name: labels | type: array<string> | description: Labels assigned to media files that describe and categorize them. Provided by the Wix user, or generated by [Google Vision API](https://cloud.google.com/vision/docs/drag-and-drop) for images.  | validation: maxItems 100, maxLength 200
     - name: _createdDate | type: Date | description: Date and time the file was created.  | read-only: true 
     - name: _updatedDate | type: Date | description: Date and time the file was updated.  | read-only: true 
     - name: siteId | type: string | description: The Wix site GUID where the media file is stored.  | read-only: true | validation: maxLength 100
     - name: state | type: State | description: State of the file.  | read-only: true 
         - enum:
         -     OK: File is ready for consumption
         -     DELETED: Deleted file

 Possible Errors:
   HTTP Code: 400 | Status Code: INVALID_ARGUMENT | Application Code: RESOURCE_NOT_FOUND | Description: Couldn't find the file.


```

### Examples

### Get file descriptors (with elevated permissions)
```javascript
import { files } from '@wix/media';
import { auth } from '@wix/essentials';

const elevatedGetFileDescriptors = auth.elevate(files.getFileDescriptors);

/* Sample fileIds value:
 * [ 
 *   'w8ide0_87051wjiadg6qj2ywxb07vn5snqxxp2q', 
 *   'w8ide0_mnk3lozhxu0w4f1g5wuusmwqedox2w1p~mv2.jpg', 
 *   'w8ide0_578uul37zvr7b6d7ji3cbm91rlf5dvjy.zip'
 * ]
 */

async function myGetFileDescriptorsFunction(fileIds) {
  try {
    const descriptors = await elevatedGetFileDescriptors(fileIds);

    console.log('Retrieved descriptors:', descriptors);
    return descriptors;
  } catch (error) {
    console.error(error);
    // Handle the error
  }
}

/* Promise resolves to:
 *  {
 *   "files": [
 *     {
 *       "_createdDate": "2023-07-23T09:05:12.000Z",
 *       "_id": "w8ide0_mnk3lozhxu0w4f1g5wuusmwqedox2w1p~mv2.jpg",
 *       "_updatedDate": "2023-07-23T09:05:12.000Z",
 *       "displayName": "image1.jpg",
 *       "hash": "d7ltmbrrmdspiyrw3db29bpi1g8lsacz",
 *       "internalTags": [],
 *       "labels": [],
 *       "media": {
 *         "image": {
 *           "faces": [],
 *           "image": "wix:image://v1/w8ide0_mnk3lozhxu0w4f1g5wuusmwqedox2w1p~mv2.jpg/image1.jpg#originWidth=1000&originHeight=714"
 *         }
 *       },
 *       "mediaType": "IMAGE",
 *       "operationStatus": "READY",
 *       "parentFolderId": "media-root",
 *       "private": false,
 *       "siteId": "3ecba886-4267-11ee-be56-0242ac120002",
 *       "sizeInBytes": "112689",
 *       "sourceUrl": "https://website.org/image1.jpg",
 *       "state": "OK",
 *       "thumbnailUrl": "https://static.wixstatic.com/media/w8ide0_mnk3lozhxu0w4f1g5wuusmwqedox2w1p~mv2.jpg",
 *       "url": "https://static.wixstatic.com/media/w8ide0_mnk3lozhxu0w4f1g5wuusmwqedox2w1p~mv2.jpg"
 *     },
 *     {
 *       "_createdDate": "2023-07-16T08:56:10.000Z",
 *       "_id": "w8ide0_578uul37zvr7b6d7ji3cbm91rlf5dvjy.zip",
 *       "_updatedDate": "2023-07-20T07:16:55.000Z",
 *       "displayName": "pics",
 *       "hash": "tmk0uafvzzgkddrgwgl6od1h9jsp1j9e",
 *       "internalTags": [
 *         "_fileOrigin_uploaded"
 *       ],
 *       "labels": [],
 *       "media": {
 *         "archive": {
 *           "_id": "w8ide0_578uul37zvr7b6d7ji3cbm91rlf5dvjy.zip",
 *           "filename": "riverpics",
 *           "sizeInBytes": "49546083",
 *           "url": "https://3ecba886-4267-11ee-be56-0242ac120002.usrfiles.com/archives/w8ide0_578uul37zvr7b6d7ji3cbm91rlf5dvjy.zip"
 *         }
 *       },
 *       "mediaType": "ARCHIVE",
 *       "operationStatus": "READY",
 *       "parentFolderId": "media-root",
 *       "private": false,
 *       "siteId": "3ecba886-4267-11ee-be56-0242ac120002",
 *       "sizeInBytes": "49546083",
 *       "state": "OK",
 *       "thumbnailUrl": "https://static.wixstatic.com/media/48c4fbc47d7298cd4406936294b4c532.png",
 *       "url": "https://3ecba886-4267-11ee-be56-0242ac120002.usrfiles.com/archives/w8ide0_578uul37zvr7b6d7ji3cbm91rlf5dvjy.zip"
 *     },
 *     {
 *       "_createdDate": "2023-07-23T12:15:55.000Z",
 *       "_id": "w8ide0_87051wjiadg6qj2ywxb07vn5snqxxp2q",
 *       "_updatedDate": "2023-07-23T12:16:14.000Z",
 *       "displayName": "video1.mp4",
 *       "hash": "pdrepnjy3cdjq8bt2lzmpdvuc47mm921",
 *       "internalTags": [],
 *       "labels": [],
 *       "media": {
 *         "video": "wix:video://v1/w8ide0_87051wjiadg6qj2ywxb07vn5snqxxp2q/video1.mp4#posterUri=w8ide0_87051wjiadg6qj2ywxb07vn5snqxxp2qf001.jpg&posterWidth=1280&posterHeight=720"
 *       },
 *       "mediaType": "VIDEO",
 *       "operationStatus": "READY",
 *       "parentFolderId": "media-root",
 *       "private": false,
 *       "siteId": "3ecba886-4267-11ee-be56-0242ac120002",
 *       "sizeInBytes": "4384468",
 *       "sourceUrl": "https://cdn.pixabay.com/example.mp4",
 *       "state": "OK",
 *       "thumbnailUrl": "https://static.wixstatic.com/media/w8ide0_87051wjiadg6qj2ywxb07vn5snqxxp2qf002.jpg",
 *       "url": "https://video.wixstatic.com/video/w8ide0_87051wjiadg6qj2ywxb07vn5snqxxp2q/file"
 *     }
 *   ]
 * }
 */
```

### Get file descriptors
```javascript
import { files } from '@wix/media';

/* Sample fileIds value:
 * [ 
 *   'w8ide0_87051wjiadg6qj2ywxb07vn5snqxxp2q', 
 *   'w8ide0_mnk3lozhxu0w4f1g5wuusmwqedox2w1p~mv2.jpg', 
 *   'w8ide0_578uul37zvr7b6d7ji3cbm91rlf5dvjy.zip'
 * ]
 */

async function myGetFileDescriptorsFunction(fileIds) {
  try {
    const descriptors = await files.getFileDescriptors(fileIds);

    console.log('Retrieved descriptors:', descriptors);
    return descriptors;
  } catch (error) {
    console.error(error);
    // Handle the error
  }
}

/* Promise resolves to:
 *  {
 *   "files": [
 *     {
 *       "_createdDate": "2023-07-23T09:05:12.000Z",
 *       "_id": "w8ide0_mnk3lozhxu0w4f1g5wuusmwqedox2w1p~mv2.jpg",
 *       "_updatedDate": "2023-07-23T09:05:12.000Z",
 *       "displayName": "image1.jpg",
 *       "hash": "d7ltmbrrmdspiyrw3db29bpi1g8lsacz",
 *       "internalTags": [],
 *       "labels": [],
 *       "media": {
 *         "image": {
 *           "faces": [],
 *           "image": "wix:image://v1/w8ide0_mnk3lozhxu0w4f1g5wuusmwqedox2w1p~mv2.jpg/image1.jpg#originWidth=1000&originHeight=714"
 *         }
 *       },
 *       "mediaType": "IMAGE",
 *       "operationStatus": "READY",
 *       "parentFolderId": "media-root",
 *       "private": false,
 *       "siteId": "3ecba886-4267-11ee-be56-0242ac120002",
 *       "sizeInBytes": "112689",
 *       "sourceUrl": "https://website.org/image1.jpg",
 *       "state": "OK",
 *       "thumbnailUrl": "https://static.wixstatic.com/media/w8ide0_mnk3lozhxu0w4f1g5wuusmwqedox2w1p~mv2.jpg",
 *       "url": "https://static.wixstatic.com/media/w8ide0_mnk3lozhxu0w4f1g5wuusmwqedox2w1p~mv2.jpg"
 *     },
 *     {
 *       "_createdDate": "2023-07-16T08:56:10.000Z",
 *       "_id": "w8ide0_578uul37zvr7b6d7ji3cbm91rlf5dvjy.zip",
 *       "_updatedDate": "2023-07-20T07:16:55.000Z",
 *       "displayName": "pics",
 *       "hash": "tmk0uafvzzgkddrgwgl6od1h9jsp1j9e",
 *       "internalTags": [
 *         "_fileOrigin_uploaded"
 *       ],
 *       "labels": [],
 *       "media": {
 *         "archive": {
 *           "_id": "w8ide0_578uul37zvr7b6d7ji3cbm91rlf5dvjy.zip",
 *           "filename": "riverpics",
 *           "sizeInBytes": "49546083",
 *           "url": "https://3ecba886-4267-11ee-be56-0242ac120002.usrfiles.com/archives/w8ide0_578uul37zvr7b6d7ji3cbm91rlf5dvjy.zip"
 *         }
 *       },
 *       "mediaType": "ARCHIVE",
 *       "operationStatus": "READY",
 *       "parentFolderId": "media-root",
 *       "private": false,
 *       "siteId": "3ecba886-4267-11ee-be56-0242ac120002",
 *       "sizeInBytes": "49546083",
 *       "state": "OK",
 *       "thumbnailUrl": "https://static.wixstatic.com/media/48c4fbc47d7298cd4406936294b4c532.png",
 *       "url": "https://3ecba886-4267-11ee-be56-0242ac120002.usrfiles.com/archives/w8ide0_578uul37zvr7b6d7ji3cbm91rlf5dvjy.zip"
 *     },
 *     {
 *       "_createdDate": "2023-07-23T12:15:55.000Z",
 *       "_id": "w8ide0_87051wjiadg6qj2ywxb07vn5snqxxp2q",
 *       "_updatedDate": "2023-07-23T12:16:14.000Z",
 *       "displayName": "video1.mp4",
 *       "hash": "pdrepnjy3cdjq8bt2lzmpdvuc47mm921",
 *       "internalTags": [],
 *       "labels": [],
 *       "media": {
 *         "video": "wix:video://v1/w8ide0_87051wjiadg6qj2ywxb07vn5snqxxp2q/video1.mp4#posterUri=w8ide0_87051wjiadg6qj2ywxb07vn5snqxxp2qf001.jpg&posterWidth=1280&posterHeight=720"
 *       },
 *       "mediaType": "VIDEO",
 *       "operationStatus": "READY",
 *       "parentFolderId": "media-root",
 *       "private": false,
 *       "siteId": "3ecba886-4267-11ee-be56-0242ac120002",
 *       "sizeInBytes": "4384468",
 *       "sourceUrl": "https://cdn.pixabay.com/example.mp4",
 *       "state": "OK",
 *       "thumbnailUrl": "https://static.wixstatic.com/media/w8ide0_87051wjiadg6qj2ywxb07vn5snqxxp2qf002.jpg",
 *       "url": "https://video.wixstatic.com/video/w8ide0_87051wjiadg6qj2ywxb07vn5snqxxp2q/file"
 *     }
 *   ]
 * }
 */
```

### getFileDescriptors (self-managed)
Self-managed SDK calls require you to [create a client](https://dev.wix.com/docs/sdk/articles/work-with-the-sdk/about-the-wix-client.md).

```javascript
import { createClient } from '@wix/sdk';
import { files } from '@wix/media';
// Import the auth strategy for the relevant access type
// Import the relevant host module if needed

const myWixClient = createClient ({
  modules: { files },
  // Include the auth strategy and host as relevant
});


async function getFileDescriptors(fileIds) {
  const response = await myWixClient.files.getFileDescriptors(fileIds);
};
```

---