Auth

Login with email and password

post/api/auth/login

Request

  • Base URL
    https://api.rewritelifestyle.ai (the document declares no server; this is the origin it was published from)
  • URL
    https://api.rewritelifestyle.ai/api/auth/login
  • Auth
    none declared

Request body

emailstring required
passwordstring required

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.