---
title: "Register with access code"
method: POST
path: "/api/auth/register"
tags: ["Auth"]
---

# Register with access code

`POST /api/auth/register`

## 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`
- Auth: none declared

## Request body

- RegisterDto
  - `email` string, required
  - `password` string, required
  - `accessCode` string, required
  - `firstName` string
  - `lastName` string
  - `phone` string, required
  - `country` string: 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).
  - `isEnrolled` boolean
  - `termsAccepted` boolean, required: User must accept Terms & Conditions to register
  - `privacyAccepted` boolean, required: User must accept Privacy Policy to register
  - `aiDisclosureAccepted` boolean, required: User must acknowledge AI-powered features disclosure
  - `ageConfirmed` boolean, required: User confirms they are 18 years of age or older
  - `healthDataConsentAccepted` boolean, required: User must consent to collection and use of health and wellness data
  - `coachDataConsentAccepted` boolean: User consents to sharing their data with their assigned coach

## Response `201`

- unknown

## Other responses

- `400`: Invalid access code
- `409`: Email already registered

---

[API](https://skmtc.dev/rewritelifestyle/apis/rewrite-lifestyle-api.md) - [All operations](https://skmtc.dev/rewritelifestyle/apis/rewrite-lifestyle-api/llms.txt) - [OpenAPI document](https://skmtc.dev/rewritelifestyle/apis/rewrite-lifestyle-api/revisions/28695827f27a?raw)
