API Reference
Pagination
List endpoints are page-based. Pages are zero-indexed and hold up to 1000 rows.
Parameters#
| Parameter | Type | Required | Description |
|---|---|---|---|
page | integer | optional | Zero-indexed page number. Default: 0. |
page_size | integer | optional | Rows per page. Maximum 1000. Default: 1000. |
Pagination metadata#
Every response includes a meta object describing where you are in the result set:
| Field | Type | Description |
|---|---|---|
meta.page | integer | The page returned (zero-indexed). |
meta.page_size | integer | Rows per page used for this request. |
meta.count | integer | Total number of rows matching your filters, across all pages. |
meta.has_more | boolean | true if another page is available after this one. |
Iterating through all pages#
Keep requesting the next page until has_more is false:
Python
import requests
BASE_URL = "https://xqqpbuhqvbbgyevwmktp.supabase.co/functions/v1"
HEADERS = {"Authorization": "Bearer stylehub_fsUPPpnCdz44Ld5fPQSfP0sTA3JaAjYn"}
def fetch_all(endpoint, **filters):
page = 0
while True:
resp = requests.get(
f"{BASE_URL}/{endpoint}",
headers=HEADERS,
params={**filters, "page": page, "page_size": 1000},
timeout=30,
)
resp.raise_for_status()
body = resp.json()
yield from body["data"]
if not body["meta"]["has_more"]:
break
page += 1
rows = list(fetch_all("stylehub-orders", updated_from="2026-03-01"))Passing
page_size above 1000, or a negative page, returns a 400 invalid_param error.© 2026 StyleHub · Developer Platform