Skip to main content

User Profile

Authenticated users can manage their profile information via the Profile API.

Get Profile

GET /api/storefront/profile
Authorization: Bearer <token>

Response:

{
"id": "guid",
"email": "user@example.com",
"firstName": "John",
"lastName": "Doe",
"phoneNumber": "+1234567890",
"phoneNumberConfirmed": true,
"emailConfirmed": true
}

Update Profile

PUT /api/storefront/profile
Authorization: Bearer <token>
Content-Type: application/json

{
"firstName": "John",
"lastName": "Doe",
"phoneNumber": "+1234567890"
}

Phone Verification

If phone verification is enabled for the store, users can verify their phone number:

POST /api/storefront/verification/send
Authorization: Bearer <token>
Content-Type: application/json

{
"channel": "sms",
"recipient": "+1234567890"
}
POST /api/storefront/verification/verify
Authorization: Bearer <token>
Content-Type: application/json

{
"recipient": "+1234567890",
"code": "123456"
}

The verification system uses Twilio Verify API when configured, or falls back to local code generation with SMS delivery.