# Catalog API

> Products, size maps, garment versions and fit groups from your PIM or ERP, with a secret or restricted key.

Source: https://docs.tryyoursize.com/products/catalog-api/

Your team can describe garments in Studio, or you can sync them from your PIM, PLM or ERP with the Catalog API. The catalog is shared by test and live mode: test answers drafts, live answers published versions.

| Resource | What it is |
|---|---|
| **Product** | Your SKU or style ID, name and category. Read by TryYourSize ID or by SKU. |
| **Size map** | Studio size → your size label (`M` → `Medium`), so every answer uses your labels. |
| **Garment version** | Sizes, points of measure per size (mm), grading and fabric. Drafts are edited; published versions never change. |
| **Fit group** | One garment shared by several products, for example colourways and prints. |

```ts
const draft = await tys.products.garments.createDraft("TEE-001", garment);
await tys.garments.publish(draft.id); // 422 lists what is missing
```

- [Server quickstart](https://docs.tryyoursize.com/quickstarts/server.md): Install the Node.js or Python SDK and sync a product.
- [HTTP API: Catalog](https://docs.tryyoursize.com/api/reference/operations/tags/catalog-api.md): Every catalog endpoint.
