Auth
Register with access code
post/api/auth/register
Request
- Base URLhttps://api.rewritelifestyle.ai (the document declares no server; this is the origin it was published from)
- URLhttps://api.rewritelifestyle.ai/api/auth/register
- Authnone declared
Request body
Example request
{
"email": "user@example.com",
"password": "Password1",
"accessCode": "ABC123",
"firstName": "Jane",
"lastName": "Doe",
"phone": "+15551234567",
"country": "US",
"termsAccepted": true,
"privacyAccepted": true,
"aiDisclosureAccepted": true,
"ageConfirmed": true,
"healthDataConsentAccepted": true,
"coachDataConsentAccepted": true
}Response
unknown required
Example response
{
"success": true,
"token": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9...",
"user": {
"id": 6,
"email": "new@example.com",
"role": "user",
"name": "John Doe"
}
}Changes
No recorded changes to this operation across all 34 revisions of this API.