Auth

Open registration without access code

Pass ?paywallFlow=v2 from app builds that ship the new store-paywall trial flow. Older app builds that omit it keep getting the automatic no-card open trial unchanged.

post/api/auth/register-open

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/register-open
  • Auth
    none declared

Query parameters

paywallFlowstring required

Request body

emailstring required
passwordstring required
firstNamestring
lastNamestring
phonestring required
countrystring

ISO 3166-1 alpha-2 country code. Falls back to a code derived from the request timezone if omitted (back-compat for older app versions).

termsAcceptedboolean required

User must accept Terms & Conditions to register

privacyAcceptedboolean required

User must accept Privacy Policy to register

aiDisclosureAcceptedboolean required

User must acknowledge AI-powered features disclosure

ageConfirmedboolean required

User confirms they are 18 years of age or older

healthDataConsentAcceptedboolean required

User must consent to collection and use of health and wellness data

referralTokenstring

HMAC-signed referral token from agent QR code

Example request

{
  "email": "user@example.com",
  "password": "Password1",
  "firstName": "Jane",
  "lastName": "Doe",
  "phone": "+15551234567",
  "country": "US",
  "termsAccepted": true,
  "privacyAccepted": true,
  "aiDisclosureAccepted": true,
  "ageConfirmed": true,
  "healthDataConsentAccepted": true
}

Response

unknown required

Example response

{
  "token": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9...",
  "user": {
    "id": 8,
    "email": "open@example.com",
    "role": "lead"
  }
}

Changes

No recorded changes to this operation across all 34 revisions of this API.