Auth
Login with email and password
post/api/auth/login
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/login
- Authnone declared
Request body
Example request
{
"email": "user@example.com",
"password": "password123"
}Response
unknown required
Example response
{
"success": true,
"token": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9...",
"id": 5,
"email": "user@example.com",
"role": "client",
"subscriptionTier": "standard",
"coachConsentRequired": false,
"needsHealthDataConsent": false,
"emailVerified": true,
"phoneVerified": false,
"programStatus": null,
"profile": {
"firstName": "Jane",
"lastName": "Doe",
"profileImageUrl": null,
"questionnaireCompleted": true,
"phone": "+15551234567",
"city": null,
"state": null
},
"subscription": {
"type": "standard",
"status": "active",
"trialEndsAt": null,
"endsAt": null,
"isFounder": false
}
}Changes
No recorded changes to this operation across all 34 revisions of this API.