API v1

API Reference

Pagination

List endpoints are page-based. Pages are zero-indexed and hold up to 1000 rows.

Parameters#

ParameterTypeRequiredDescription
pageintegeroptionalZero-indexed page number. Default: 0.
page_sizeintegeroptionalRows per page. Maximum 1000. Default: 1000.

Pagination metadata#

Every response includes a meta object describing where you are in the result set:

FieldTypeDescription
meta.pageintegerThe page returned (zero-indexed).
meta.page_sizeintegerRows per page used for this request.
meta.countintegerTotal number of rows matching your filters, across all pages.
meta.has_morebooleantrue 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