Register customer account
Create a new customer account with email and password. Returns user details and authentication tokens upon successful registration.
Multi-Store Support:
- If the email is already registered at another store, a new customer record is created for this store (linked to the existing auth.users record)
- Response includes
is_multi_store_customer: truewhen linking to existing account - Customers can have accounts at multiple stores with the same email/password
⚠️ SECRET KEY REQUIRED
This endpoint requires a secret key (tybrite_sk_*). Publishable keys will return 403 Forbidden.
Why Secret Key? Authentication endpoints create and manage user sessions, which should only be performed from secure server-side environments.
Authorizations
API Key Authentication
Use your API key in the Authorization header:
Key Types:
Secret Keys (Server-Side Only):
- Format:
tybrite_sk_live_*(production) ortybrite_sk_test_*(sandbox) - Full read/write access to all endpoints
- ⚠️ NEVER expose in client-side code or public repositories
- Required for: write operations, authentication, payment verification, AI recommendations
Publishable Keys (Client-Safe):
- Format:
tybrite_pk_live_*(production) ortybrite_pk_test_*(sandbox) - Read-only access (GET requests only, plus POST semantic search)
- ✅ Safe for client-side JavaScript, mobile apps, and public code
- Allowed for: browsing products, search, CMS content, pricing queries
Endpoint-Specific Requirements:
- Authentication endpoints (
/v1/auth/*): Secret key required - Payment verification (
POST /v1/payments/verify): Secret key required - AI Recommendations (
POST /v1/recommendations): Secret key required - Semantic Search (
POST /v1/search): Both key types allowed (read-only operation) - All write operations: Secret key required
- All read operations: Both key types allowed
Using a publishable key for restricted operations returns 403 Forbidden.
Body
Customer email address
Password (minimum 8 characters)
8"SecurePassword123!"
Customer full name
"John Doe"
Phone number with country code
"+12125550142"
Whether the customer opted in to marketing communications at sign-up. Defaults to false (opt-in). Pass the state of your sign-up form's marketing opt-in checkbox.
true
Response
Registration successful
Success message
"Registration successful"
Indicates if this customer already had an account at another store. When true, the customer's auth.users record already existed, and a new customers record was created for this store. When false or omitted, this is the customer's first store registration.
false

