> 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

## Resource: File ID

## Article: File ID

## Article Link: https://dev.wix.com/docs/api-reference/assets/media/media-manager/files/file-id.md

## Article Content:

# File ID
A file's ID is its unique identifier. It is a read-only property.

It's good practice to save all of a file's properties in your code when you retrieve them.

There are several endpoints that include `fileId` in their response:
* [Import File](https://dev.wix.com/docs/rest/assets/media/media-manager/files/import-file.md)
* [Bulk Import File](https://dev.wix.com/docs/rest/assets/media/media-manager/files/bulk-import-file.md)
* [List Files](https://dev.wix.com/docs/rest/assets/media/media-manager/files/list-files.md)
* [Search Files](https://dev.wix.com/docs/rest/assets/media/media-manager/files/search-files.md)
* [List Deleted Files](https://dev.wix.com/docs/rest/assets/media/media-manager/files/list-deleted-files.md)

## File ID as a parameter
There are several functions that accept a file ID, or an array of file IDs, as a parameter. The parameter is called `fileId`, `fileIds`, or `file.id`. 

In addition to the file ID, these parameters accept the file's Wix media URL. For example, `wix:image://v1/0abec0_b291a9349a0b4da59067f76287e386fb~mv2.jpg/leon.jpg#originWidth=3024&originHeight=4032`. 

This is useful when using other Wix APIs, such as [Wix Data](https://dev.wix.com/docs/rest/business-solutions/cms/introduction.md), that return a media file's Wix media URL, not its ID. For example, if you are retrieving a CMS collection that contains an image field, the image files' IDs aren't returned but their Wix media URLs are returned.