API v1

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.

GEThttps://xqqpbuhqvbbgyevwmktp.supabase.co/functions/v1/stylehub-api-keys
curl -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
EndpointRequires key
/stylehub-ordersYes
/stylehub-usersYes
/stylehub-productsYes
/stylehub-order-itemsYes
/stylehub-shipmentsYes

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