> 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: Find Collection and Field IDs

## Article: Find Collection and Field IDs

## Article Link: https://dev.wix.com/docs/studio-two/code-your-site/work-with-data/introduction/find-collection-and-field-ids.md

## Article Content:

# Find Collection and Field IDs

You need [collection](https://dev.wix.com/docs/studio-two/code-your-site/work-with-data/introduction/about-collections.md#collection-ids) and [field](https://dev.wix.com/docs/studio-two/code-your-site/work-with-data/introduction/about-collection-fields.md#field-ids) IDs whenever your code works with a site's data. A collection ID tells the Data API which collection to use. A field ID names a field to filter, sort, or set.

You can copy both IDs from the **Wix Data** view in the [Code tab](https://dev.wix.com/docs/studio-two/get-started/about-the-code-tab.md#work-with-collections).

## Find a collection ID

To find a collection ID:

1. In the Studio Two editor, open the **Code** tab.
2. In the row of icons at the top of the sidebar, click the database icon to open the **Wix Data** view.

   ![The top of the Code tab's sidebar, with the Wix Data icon highlighted and the Wix Data view open](https://wixmp-833713b177cebf373f611808.wixmp.com/images/983b41f68c3cda4c4e10eb8deb25d301.png)

3. If the collection isn't listed, click **Refresh Collections**.
4. Right-click the collection and select **Copy Collection ID**.

   ![The Wix Data view with a collection's context menu open, showing Copy Collection ID](https://wixmp-833713b177cebf373f611808.wixmp.com/images/11c8a09081d22ed30eece49fb2d96336.png)

> **Note:** App collections are grouped by the business solution that owns them, and collections from an external database are grouped under their connection's prefix. Their IDs include a prefix, such as `Blog/Posts`. Copy the ID rather than building it from the group name. For a list of app collection IDs, see [Wix App Collections](https://dev.wix.com/docs/api-reference/business-solutions/cms/collection-management/wix-app-collections/introduction?apiView=SDK.md).

## Find a field ID

To find a field ID:

1. In the **Wix Data** view, expand the collection that contains the field.
2. Right-click the field and select **Copy Field ID**.

Each field is listed as `<fieldId>: <TYPE> ('<Display name>')`, so you can also read the ID straight from the list.

> **Note:** To get collection and field IDs in code, call [List Data Collections](https://dev.wix.com/docs/api-reference/business-solutions/cms/collection-management/data-collections/list-data-collections?apiView=SDK.md). Each collection in the response includes its ID and its fields.

## See also

- [About Collections](https://dev.wix.com/docs/studio-two/code-your-site/work-with-data/introduction/about-collections.md)
- [About Collection Fields](https://dev.wix.com/docs/studio-two/code-your-site/work-with-data/introduction/about-collection-fields.md)
- [About the Code Tab](https://dev.wix.com/docs/studio-two/get-started/about-the-code-tab.md)
- [Query Items](https://dev.wix.com/docs/studio-two/code-your-site/work-with-data/data-api/query-items.md)
- [Manage Items](https://dev.wix.com/docs/studio-two/code-your-site/work-with-data/data-api/manage-items.md)