---
title: "Register User"
method: POST
path: "/api/v1/auth/register"
tags: ["authentication"]
---

# Register User

`POST /api/v1/auth/register`

## Request

- Base URL: `https://calorieapiadmin.com`
- URL: `https://calorieapiadmin.com/api/v1/auth/register`
- Auth: none declared

Register a new user.

## Request body

- UserRegister: Schema for user registration.
  - `email` string, email, required
  - `password` string, required
  - `first_name` string, nullable
  - `last_name` string, nullable
  - `company_name` string, nullable
  - `plan_id` integer

## Response `200`

Successful Response

- UserResponse: Schema for user response.
  - `id` integer, required
  - `email` string, required
  - `first_name` string, nullable, required
  - `last_name` string, nullable, required
  - `company_name` string, nullable, required
  - `plan_id` integer
  - `is_admin` boolean
  - `email_verified` boolean
  - `created_at` string, date-time, required

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/calorieapi/apis/calorie-api.md) · [All operations](https://skmtc.dev/calorieapi/apis/calorie-api/llms.txt) · [OpenAPI document](https://skmtc.dev/calorieapi/apis/calorie-api/revisions/f851bb41617a?raw)
