API Reference
Authentication
Fetch an API key from the key endpoint, then send it as a Bearer token on every other request.
Get an API key#
Call the key endpoint to receive your API key. It takes no parameters and needs no authentication.
GET
https://xqqpbuhqvbbgyevwmktp.supabase.co/functions/v1/stylehub-api-keyscurl -s "https://xqqpbuhqvbbgyevwmktp.supabase.co/functions/v1/stylehub-api-keys"Response:
JSON
{
"api_key": "stylehub_fsUPPpnCdz44Ld5fPQSfP0sTA3JaAjYn"
}Using the key#
Every other endpoint requires the key, sent as a standard Bearer token in the Authorization header:
HTTP header
Authorization: Bearer stylehub_fsUPPpnCdz44Ld5fPQSfP0sTA3JaAjYn| Endpoint | Requires key |
|---|---|
/stylehub-orders | Yes |
/stylehub-users | Yes |
/stylehub-products | Yes |
/stylehub-order-items | Yes |
/stylehub-shipments | Yes |
Base URL for all endpoints: https://xqqpbuhqvbbgyevwmktp.supabase.co/functions/v1
Authenticated request#
curl -s "https://xqqpbuhqvbbgyevwmktp.supabase.co/functions/v1/stylehub-orders?created_from=2026-10-01" \
-H "Authorization: Bearer stylehub_fsUPPpnCdz44Ld5fPQSfP0sTA3JaAjYn"Missing or invalid key
Requests without a valid key return
401 unauthorized. See Errors.© 2026 StyleHub · Developer Platform