---
updatedAt: 2026-04-24T14:52:01.000Z
agentTools:
  projectIndex: https://oysterskin.readme.io/llms.txt
---

# Browse master product catalog

Browse the platform-wide master product catalog. Only published master products are returned. Vendors can use this to discover products to add to their own inventory.

# OpenAPI definition

````json
{
  "openapi": "3.1.0",
  "info": {
    "title": "Oyster Skin API",
    "description": "The Oyster Skin API is a RESTful API that provides a way to interact with the Oyster Skin platform.\n\nAll endpoints return JSON responses and use standard HTTP status codes.\n\n## Authentication\nThe API uses Bearer token authentication. Include your API key in the Authorization header:\n```\nAuthorization: Bearer <your-token>\n```\n\nKeys are issued from **API Manager** in the vendor portal, by the account owner or a team\nmember with the `create api` permission.\n\n### Keys belong to the organisation\nAn API key is owned by the vendor account, not by the person who created it. Removing that\nperson from the team, changing their role, or revoking their permissions does not affect the\nkey. Only an explicit revoke or the key's expiry ends it.\n\n### Scopes\nEvery key is stamped with one or more ability groups and can only reach the endpoints they\ncover. Anything else returns `403`. Choose scopes when you mint the key.\n\n| Scope | Grants |\n|---|---|\n| `skin:read` | Read scan history, analyses, care routines and procedure recommendations |\n| `skin:write` | Submit images for analysis, create scan sessions, generate routines |\n| `catalogue:read` | List and search products, the master catalogue and lookup data |\n| `catalogue:write` | Create, update and delete products and master-catalogue imports |\n| `orders:read` | Read order history, statistics and order details |\n| `orders:write` | Act on orders |\n| `ai:chat` | Ask the vendor AI assistant questions against your knowledge base |\n| `storefront:shopify` | Connect a Shopify store and keep its catalogue and orders in sync |\n| `storefront:woocommerce` | Connect a WooCommerce store and keep its catalogue and orders in sync |\n| `vendor:read` | Read your business profile, widget configuration and dashboard metrics |\n| `vendor:write` | Update your business profile and widget configuration |\n| `billing:read` | Read usage, balance and invoices |\n| `billing:pay` | Start a checkout for your outstanding invoices |\n| `billing:settings` | Change the scan spend cap and body-scan setting |\n| `scans:coupons` | Create, edit and delete scan coupons. Every coupon scan is billed to you |\n| `appointments:manage` | Cancel appointments. Cancelling moves no money, and no key can refund |\n| `files:read` | List and download your uploaded files |\n| `files:write` | Upload and delete files |\n\n`GET /user` is reachable by any key regardless of scopes — it is how an integration\ndiscovers which vendor it is authenticated as.\n\nKeys minted before scopes existed reach the whole public API and are flagged as **legacy**\nin the portal; rotate one to a scoped key to narrow it.\n\nNo scope grants access to credential management (API keys, MCP tokens), team and role\nadministration, wallets or withdrawals. Those remain portal-only.\n\n### Connected storefronts\nThe Shopify app and WooCommerce plugin authenticate with an organisation key like any other\nclient, and each has a named preset holding the minimum scope set it needs — pick it by\nname when minting the key (`\"preset\": \"shopify\"`) or fetch the list from\n`GET /developers/api-keys/presets`.\n\n| Preset | Scopes |\n|---|---|\n| `woocommerce` | `storefront:woocommerce`, `vendor:read`, `scans:collect`, `scans:pricing`, `skin:read`, `scan:delivery` |\n| `shopify` | `storefront:shopify`, `vendor:read`, `vendor:write`, `billing:read`, `catalogue:read`, `orders:read`, `files:write` |\n\nEach preset is derived from the endpoints that app actually calls, and asserted against\nthat list in the test suite. `billing:settings` is in neither, and `billing:pay` is in\nneither: the Shopify app reports usage but no longer settles invoices.\n\nA connected store's key reads its scopes from this table on every request rather than from\nthe list stamped on it when the store connected, so a scope added to a preset reaches\nstores that connected before it existed, with no reconnect.\n\n### The two billing write scopes\n`billing:pay` **cannot charge anything**. `POST /vendors/billing/pay-all` and\n`POST /vendors/billing/invoices/{id}/pay` open a gateway checkout session and return an\n`authorization_url`; funds move only when a human completes that checkout and the provider\nwebhook reconciles. The worst a leaked key does is generate a payment link for invoices the\nvendor already owes.\n\n`billing:settings` is the consequential one: `PATCH /vendors/billing/scan-spend-cap` accepts\n`null`, which removes your spending cap entirely, and `PATCH /vendors/billing/body-scan`\nenables a billable feature. Nothing outside the vendor portal needs it.\n\n`scans:pricing` reads and writes `/vendors/billing/scan-retail-price` — what you charge\nyour own customers when you collect scan payments on your own gateway. It is kept apart\nfrom `billing:settings` because it cannot change what Oyster charges you: your invoice is\nmeasured against your billing rate whatever price you set. A storefront integration can\nhold this without also gaining the ability to lift your spend cap.\n\n## Partner API\nA **partner** onboards and manages vendors. Its API keys are minted by partner staff with\nthe `manage partner developers` permission (`/partner/api-keys`, portal only) and belong to\nthe partner, not to the person who created them.\n\n### Partner scopes\nA partner key's scopes cover two things. Partner scopes decide what it may do on the\npartner's own routes (`/partner/*`):\n\n| Scope | Grants |\n|---|---|\n| `partner:vendors:read` | List your vendors and read each one's profile |\n| `partner:vendors:write` | Onboard vendors, update them, and suspend or reactivate their dashboard access |\n| `partner:staff:manage` | Invite, re-invite and remove your vendors' staff, and list their roles, branches and storefronts |\n| `partner:webhooks:manage` | Register where your vendors' events are delivered, rotate signing secrets and read delivery history |\n| `partner:settlements:read` | Read what you collected on each vendor's behalf in a month and what you owe them, booking by booking (`GET /partner/settlements`). Marking a vendor's month settled stays with partner staff |\n\n`GET /partner` is reachable by any partner key. No scope reaches key management or your\nown team (`/partner/staff`, `/partner/roles`), which stay in the partner portal.\n\n### Acting on a vendor\nSend the vendor's slug in the `X-Vendor-Code` header to call any vendor endpoint in this\nAPI as that vendor:\n```\nAuthorization: Bearer <partner-key>\nX-Vendor-Code: lekki-skin-clinic\n```\nThe request is then judged exactly like a request with that vendor's own key: the\nvendor scopes on the partner key (`skin:read`, `vendor:read`, ...) decide which endpoints\nit reaches. Credential management, roles, wallets, withdrawals and KYC stay unreachable,\nand so do the routes a partner owns for its vendors (developers, MCP, widget,\nintegrations, billing). The header is ignored on `/partner/*`. The slug is the `slug`\nof `GET /partner/vendors` and of the `vendor` object on partner webhook deliveries.\n\nA partner key holding `appointments:manage` can cancel a vendor's appointment\n(`PUT /consultation/appointments/{appointment_number}` with `status: cancelled`). It cannot\nrefund one: refunds are made by partner or vendor staff in the portal.\n\n### Partner error codes\n| Code | Status | Meaning |\n|---|---|---|\n| `OYS-PARTNER-1000` | 403 | The route belongs to the partner, not to the vendor it manages |\n| `OYS-PARTNER-1001` | 404 | `X-Vendor-Code` names no vendor of yours (another partner's vendor answers the same) |\n| `OYS-PARTNER-1002` | 403 | A partner key called a vendor route without `X-Vendor-Code` |\n\n### Partner webhooks\nEndpoints registered under `/partner/webhook-endpoints` receive the subscribed events of\nevery vendor you manage, alongside any endpoints of the vendor's own. Each delivery\ncarries `vendor: {id, slug}` at the top level and is signed per attempt like any other.\n\n## Rate Limiting\nAPI endpoints are rate limited to prevent abuse. Check response headers for rate limit information.\n\n## Error Handling\nAll errors return a consistent JSON structure:\n```json\n{\n  \"message\": \"Error description\",\n  \"errors\": {\n    \"field\": [\"Specific error message\"]\n  }\n}\n```\n",
    "version": "1.0.0",
    "contact": {
      "name": "The Oyster Skin Team",
      "email": "team@oysterskin.com"
    }
  },
  "servers": [
    {
      "url": "https://api.sandbox.oysterskin.com/api/v1",
      "description": "Sandbox server"
    }
  ],
  "tags": [
    {
      "name": "Products",
      "description": "Product management endpoints for vendors and customers"
    }
  ],
  "components": {
    "securitySchemes": {
      "bearerAuth": {
        "type": "http",
        "scheme": "bearer",
        "bearerFormat": "JWT",
        "description": "Organisation API key, issued from API Manager in the vendor portal, or a partner API\nkey issued from the partner portal (see Partner API above).\n\nThe key belongs to the vendor account rather than to an individual, so it is unaffected\nby team or permission changes. Expiry is chosen at creation (up to 365 days) or omitted\nfor a key that does not expire. Access is limited to the key's scopes — see the\nAuthentication section above.\n"
      }
    },
    "schemas": {
      "MasterCatalogListResponse": {
        "type": "object",
        "properties": {
          "success": {
            "type": "boolean",
            "example": true
          },
          "message": {
            "type": "string",
            "example": "Master catalog fetched successfully"
          },
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/MasterProduct"
            }
          },
          "meta": {
            "type": "object",
            "properties": {
              "current_page": {
                "type": "integer",
                "example": 1
              },
              "last_page": {
                "type": "integer",
                "example": 5
              },
              "per_page": {
                "type": "integer",
                "example": 15
              },
              "total": {
                "type": "integer",
                "example": 73
              }
            }
          }
        }
      },
      "MasterProduct": {
        "type": "object",
        "properties": {
          "id": {
            "type": "integer",
            "description": "Unique identifier for the master product",
            "example": 1
          },
          "name": {
            "type": "string",
            "description": "Product name from the master catalog",
            "example": "CeraVe Hydrating Facial Cleanser"
          },
          "description": {
            "type": "string",
            "description": "Product description",
            "example": "A gentle, non-foaming cleanser that removes dirt and makeup without disrupting the skin's protective barrier."
          },
          "usage_instructions": {
            "type": "string",
            "nullable": true,
            "description": "Instructions for using the product",
            "example": "Apply to damp skin, massage gently, and rinse thoroughly with lukewarm water."
          },
          "weight": {
            "type": "string",
            "nullable": true,
            "description": "Product weight",
            "example": "236"
          },
          "weight_unit": {
            "type": "string",
            "nullable": true,
            "description": "Weight measurement unit",
            "example": "ml"
          },
          "size_volume": {
            "type": "string",
            "nullable": true,
            "description": "Product volume/size",
            "example": "236"
          },
          "size_volume_unit": {
            "type": "string",
            "nullable": true,
            "description": "Volume measurement unit",
            "example": "ml"
          },
          "tags": {
            "type": "string",
            "nullable": true,
            "description": "Comma-separated tags",
            "example": "cleanser, hydrating, sensitive skin"
          },
          "tags_array": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "Tags as an array",
            "example": [
              "cleanser",
              "hydrating",
              "sensitive skin"
            ]
          },
          "status": {
            "type": "string",
            "enum": [
              "draft",
              "published",
              "archived"
            ],
            "description": "Publication status",
            "example": "published"
          },
          "category": {
            "type": "object",
            "nullable": true,
            "properties": {
              "id": {
                "type": "integer",
                "example": 1
              },
              "name": {
                "type": "string",
                "example": "Cleansers"
              }
            }
          },
          "brand": {
            "type": "object",
            "nullable": true,
            "properties": {
              "id": {
                "type": "integer",
                "example": 1
              },
              "name": {
                "type": "string",
                "example": "CeraVe"
              }
            }
          },
          "images": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "id": {
                  "type": "integer"
                },
                "image_url": {
                  "type": "string",
                  "format": "uri"
                },
                "is_primary": {
                  "type": "boolean"
                },
                "order": {
                  "type": "integer"
                }
              }
            }
          },
          "skin_types": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "id": {
                  "type": "integer"
                },
                "name": {
                  "type": "string"
                }
              }
            }
          },
          "ingredients": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "id": {
                  "type": "integer"
                },
                "name": {
                  "type": "string"
                }
              }
            }
          },
          "allergens": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "id": {
                  "type": "integer"
                },
                "name": {
                  "type": "string"
                }
              }
            }
          },
          "already_in_inventory": {
            "type": "boolean",
            "description": "Whether the authenticated vendor already has this product in their inventory. Only present on single product detail endpoint."
          },
          "created_at": {
            "type": "string",
            "format": "date-time",
            "example": "2024-01-15 10:30:00"
          },
          "updated_at": {
            "type": "string",
            "format": "date-time",
            "example": "2024-01-15 10:30:00"
          }
        }
      }
    }
  },
  "paths": {
    "/products/master-catalog": {
      "get": {
        "tags": [
          "Products"
        ],
        "summary": "Browse master product catalog",
        "description": "Browse the platform-wide master product catalog. Only published master products are returned. Vendors can use this to discover products to add to their own inventory.",
        "operationId": "getMasterCatalog",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "parameters": [
          {
            "name": "page",
            "in": "query",
            "description": "Page number for pagination",
            "required": false,
            "schema": {
              "type": "integer",
              "default": 1
            }
          },
          {
            "name": "per_page",
            "in": "query",
            "description": "Number of items per page (max 100)",
            "required": false,
            "schema": {
              "type": "integer",
              "default": 15
            }
          },
          {
            "name": "search",
            "in": "query",
            "description": "Search by product name or tags",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "category_id",
            "in": "query",
            "description": "Filter by category ID",
            "required": false,
            "schema": {
              "type": "integer"
            }
          },
          {
            "name": "brand_id",
            "in": "query",
            "description": "Filter by brand ID",
            "required": false,
            "schema": {
              "type": "integer"
            }
          },
          {
            "name": "skin_types",
            "in": "query",
            "description": "Filter by skin type IDs (array)",
            "required": false,
            "schema": {
              "type": "array",
              "items": {
                "type": "integer"
              }
            }
          },
          {
            "name": "sort_by",
            "in": "query",
            "description": "Sort field",
            "required": false,
            "schema": {
              "type": "string",
              "enum": [
                "name",
                "created_at",
                "updated_at"
              ],
              "default": "created_at"
            }
          },
          {
            "name": "sort_order",
            "in": "query",
            "description": "Sort direction",
            "required": false,
            "schema": {
              "type": "string",
              "enum": [
                "asc",
                "desc"
              ],
              "default": "desc"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Master catalog fetched successfully",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MasterCatalogListResponse"
                }
              }
            }
          },
          "401": {
            "description": "Unauthenticated"
          },
          "403": {
            "description": "Forbidden — user is not a vendor or lacks VIEW_PRODUCT permission"
          }
        }
      }
    }
  }
}
````