---
title: "Loginorsignup"
method: POST
path: "/api/v1/auth"
tags: ["users"]
---

# Loginorsignup

`POST /api/v1/auth`

## Request body

- AuthRequestDTO
  - `type` 'native' | 'sso', required
  - `loginMethod` 'login' | 'signup' | 'otp_login' | 'otp_signup'
  - `email` string, nullable
  - `password` string, nullable
  - `idToken` string, nullable
  - `name` string, nullable
  - `domain_id` string, nullable, required
  - `ref_id` string, nullable
  - `ref_link` string, nullable
  - `redirect_to` string, nullable
  - `from_appsumo` boolean, nullable
  - `site_ref` string, nullable
  - `phone` string, nullable
  - `otp` string, nullable

## Response `200`

Successful Response

- unknown

## Other responses

- `422` — Validation Error

---

[API](https://skmtc.dev/brandbooster/apis/fastapi.md) · [All operations](https://skmtc.dev/brandbooster/apis/fastapi/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/brandbooster/fastapi/revisions/624917d53409/schema)
