API v1

Endpoints

Products

Returns products in the StyleHub catalog with cost, retail price, category, brand and department.

GEThttps://xqqpbuhqvbbgyevwmktp.supabase.co/functions/v1/stylehub-products

Query parameters#

ParameterTypeRequiredDescription
created_fromstring (YYYY-MM-DD)one of four*Return rows whose created_at is on or after this date.
created_tostring (YYYY-MM-DD)one of four*Return rows whose created_at is on or before this date.
updated_fromstring (YYYY-MM-DD)one of four*Return rows whose updated_at is on or after this date.
updated_tostring (YYYY-MM-DD)one of four*Return rows whose updated_at is on or before this date.
pageintegeroptionalZero-indexed page number. Default: 0.
page_sizeintegeroptionalRows per page. Maximum 1000. Default: 1000.

* At least one date parameter is required — see Date filtering. Parameters combine with AND.

Example request#

Requires an API key sent as a Bearer token — see Authentication.

curl -s "https://xqqpbuhqvbbgyevwmktp.supabase.co/functions/v1/stylehub-products?updated_from=2026-10-01" \
  -H "Authorization: Bearer stylehub_fsUPPpnCdz44Ld5fPQSfP0sTA3JaAjYn"

Example response#

JSON
{
  "data": [
    {
      "id": 10231,
      "cost": 21.4,
      "category": "Jeans",
      "name": "Slim Fit Stretch Denim",
      "brand": "Northwind Denim",
      "retail_price": 49.99,
      "department": "Men",
      "sku": "NWD-JN-10231",
      "created_at": "2025-09-03T08:00:00Z",
      "updated_at": "2026-03-02T12:30:18Z"
    },
    {
      "id": 10232,
      "cost": 14.1,
      "category": "Tops & Tees",
      "name": "Relaxed Cotton Crew Tee",
      "brand": "Harbor & Pine",
      "retail_price": 29,
      "department": "Women",
      "sku": "HNP-TT-10232",
      "created_at": "2025-09-03T08:00:00Z",
      "updated_at": "2025-09-03T08:00:00Z"
    }
  ],
  "meta": {
    "page": 0,
    "page_size": 1000,
    "count": 1234,
    "has_more": true
  }
}
Abbreviated: data holds up to page_size rows. See Response format and Errors.

© 2026 StyleHub · Developer Platform