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

# Register account

`POST /auth/register`

Create a new user account with email and password. Requires CAPTCHA verification. User account is created but must verify email before logging in.

## Request body

- RegisterRequest
  - `email` string, email
  - `username` string
  - `global_name` string — Display name shown to other users
  - `password` string
  - `date_of_birth` string — Date of birth in YYYY-MM-DD format
  - `consent` boolean — Whether user consents to terms of service
  - `invite_code` string, nullable — Guild invite code to join after registration
  - `registration_url_code` string, nullable — Admin-issued registration URL code to use for this registration
  - `theme` 'dark' | 'dark_legacy' | 'coal' | 'light' | 'system' — Initial UI theme preference for the new account

## Response `200`

Success

- union
  - AuthTokenWithUserIdResponse
    - `token` string, required — Authentication token for API requests
    - `user_id` string, required — ID of the authenticated user
    - `user` object, required — Partial user data for the authenticated account
      - `id` string, required — The unique identifier (snowflake) for this user
      - `username` string, required — The username of the user, not unique across the platform
      - `discriminator` string, required — The four-digit discriminator tag of the user
      - `global_name` string, nullable, required — The display name of the user, if set
      - `avatar` string, nullable, required — The hash of the user avatar image
      - `avatar_color` integer, required
      - `bot` boolean — Whether the user is a bot account
      - `system` boolean — Whether the user is an official system user
      - `flags` integer, required — The public flags on the user account
      - `mention_flags` 0 | 1 | 2 — Reply mention preference
  - object
    - `mfa` true, required — Indicates MFA is required to complete authentication
    - `ticket` string, required — MFA ticket to use when completing MFA verification
    - `allowed_methods` string[], required — List of allowed MFA methods
    - `totp` boolean, required — Whether TOTP authenticator MFA is available
    - `webauthn` boolean, required — Whether WebAuthn security key MFA is available
  - AuthRegistrationPendingApprovalResponse
    - `registration_pending_approval` true, required — Registration succeeded and is waiting for admin approval
    - `user_id` string, required — ID of the registered account waiting for approval

## Other responses

- `400` — Bad Request - The request was malformed or contained invalid data
- `429` — Too Many Requests - You are being rate limited
- `500` — Internal Server Error - An unexpected error occurred

---

[API](https://skmtc.dev/fluxer/apis/fluxer-api.md) · [All operations](https://skmtc.dev/fluxer/apis/fluxer-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/fluxer/fluxer-api/revisions/d9c706133cc5/schema)
