---
title: "Register"
method: POST
path: "/api/auth/register"
---

# Register

`POST /api/auth/register`

## Request

- Base URL: `https://api.kdpcoloringbook.com` (the document declares no server; this is the origin it was published from)
- URL: `https://api.kdpcoloringbook.com/api/auth/register`
- Auth: none declared

## Request body

- UserRegister
  - `email` string, email, required
  - `password` string, required
  - `name` string, required
  - `terms_accepted` true, required
  - `attribution` FirstTouchAttribution: Consented first-touch campaign data captured at account creation.
    - `utm_source` string, nullable
    - `utm_medium` string, nullable
    - `utm_campaign` string, nullable
    - `utm_term` string, nullable
    - `utm_content` string, nullable
    - `origin_channel` string, nullable
    - `origin_source` string, nullable
    - `origin_landing_path` string, nullable
  - `marketing_opt_in` boolean

## Response `200`

Successful Response

- LoginResponse
  - `access_token` string, required
  - `refresh_token` string, required
  - `token_type` string
  - `user` UserResponse, required
    - `user_id` string, required
    - `email` string, required
    - `name` string, required
    - `created_at` string, required
    - `default_style_ids` string[], required
    - `auth_provider` string
    - `subscription_plan_id` string, nullable
    - `is_free` boolean
    - `analytics_excluded` boolean
    - `analytics_consent` string, nullable
  - `is_new_user` boolean

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/kdpcoloringbook/apis/book-generator-api.md) · [All operations](https://skmtc.dev/kdpcoloringbook/apis/book-generator-api/llms.txt) · [OpenAPI document](https://skmtc.dev/kdpcoloringbook/apis/book-generator-api/revisions/f330c566ffc2?raw)
