---
title: "Signup"
method: POST
path: "/v1/auth/signup"
tags: ["auth"]
---

# Signup

`POST /v1/auth/signup`

## Request

- Base URL: `https://vdb.ai.kr` (the document declares no server; this is the origin it was published from)
- URL: `https://vdb.ai.kr/v1/auth/signup`
- Auth: none declared

Create an account.

Two modes depending on VDB_REQUIRE_EMAIL_VERIFICATION:

  OFF (default): create user verified, mint api_key, return it once.
                 Same behaviour as the original endpoint.

  ON:            create user UNVERIFIED, generate a single-use token,
                 mail the link, return without api_key. The caller
                 must click /v1/auth/verify?token=… to activate the
                 account and get an api_key.

## Request body

- SignupRequest
  - `email` string, required
  - `password` string, required
  - `email_consent` boolean

## Response `200`

Successful Response

- AuthResponse
  - `user_id` string, required
  - `email` string, required
  - `api_key` string, nullable
  - `api_key_prefix` string, nullable
  - `email_verified` boolean
  - `verification_required` boolean
  - `message` string

## Other responses

- `422`: Validation Error

---

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