---
title: "Register a new user"
method: POST
path: "/v1/auth/register"
tags: ["Authentication"]
---

# Register a new user

`POST /v1/auth/register`

## Request body

- RegisterDto
  - `name` string, required — Full name of the user
  - `email` string, email, required — Email address of the account
  - `password` string, required — Password for the account (minimum 10 characters)
  - `phone` string — Phone number (optional)
  - `acquisition` unknown

## Response `201`

User registered successfully

- RegistrationResponseDto
  - `success` boolean, required — Indicates if the request was successful
  - `message` string, required — Human readable message
  - `data` object, required — Response data
    - `accessToken` string, required
    - `user` object, required
      - `id` string, uuid, required — User unique ID
      - `email` string, email, required — User email
      - `name` string, required — Name of user
      - `image` string, uri, nullable — Image of user
      - `isEmailVerified` boolean, required — Whether the user has verified their email address
      - `role` 'user' | 'admin' | 'contractor', required — Authorization role for the user
    - `emailSent` boolean, required — Whether the verification email was accepted by the email provider
  - `timestamp` string, date-time, required — Timestamp of the response

---

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