Skip to main content
UniFit
OpenAPI 3.0 • Multi-Language SDKs • Webhooks

Clothing Size Recommendation & Body Measurement API

Build bespoke sizing experiences across headless React/Next.js storefronts, native iOS/Android checkout apps, and ERP pipelines with scoped OAuth 2.0 + PKCE customer permissions and deterministic REST endpoints.

POST /v1/recommendations

api.beunifit.in
curl -X POST "https://api.beunifit.in/v1/recommendations" \
  -H "Authorization: Bearer uf_sbx_YOUR_SERVER_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "productId": "prod_123",
    "variantId": "var_456",
    "grantToken": "uf_grant_short_lived_pkce"
  }'

Returns recommended garment size label, alternative size, numeric confidence interval, zone fit telemetry (CHEST, WAIST, HIPS), and fit feedback link without exposing raw biometric records.

PKCE Customer Consent

Authenticate shoppers cleanly via OAuth 2.0 + PKCE (S256) and exchange one-time codes for short-lived scoped tokens.

Signed HMAC Webhooks

Receive real-time recommendation.created and fit_feedback.submitted events verified with HMAC-SHA256 headers.

10 Supported Languages

Copy-ready integrations for JavaScript/TypeScript, Python, PHP, Go, Java, C#, Ruby, Swift, Kotlin, and Flutter.