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

# Register

`POST /api/auth/register`

## Request

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

Create a new user account.

## Request body

- RegisterRequest
  - `email` string, email, required
  - `password` string, required
  - `full_name` string, nullable
  - `monthly_income` number, nullable
  - `referral_code` string, nullable
  - `ref` string, nullable

## Response `201`

Successful Response

- TokenResponse
  - `access_token` string, required
  - `refresh_token` string, required
  - `token_type` string
  - `is_new_user` boolean

## Other responses

- `422`: Validation Error

## Changes

- **2026-10-19** `4a2c41907105`: 1 info
  - added the new optional request property `ref`

[Operation history](https://skmtc.dev/earmarkiq/apis/earmark-api/changes/api/auth/register/post.md)

---

[API](https://skmtc.dev/earmarkiq/apis/earmark-api.md) · [All operations](https://skmtc.dev/earmarkiq/apis/earmark-api/llms.txt) · [OpenAPI document](https://skmtc.dev/earmarkiq/apis/earmark-api/revisions/4a2c41907105?raw)
