---
title: "Register Or Login"
method: POST
path: "/api/v1/auth/register-or-login"
tags: ["认证"]
---

# Register Or Login

`POST /api/v1/auth/register-or-login`

## Request

- Base URL: `https://api.hipowork.com` (the document declares no server; this is the origin it was published from)
- URL: `https://api.hipowork.com/api/v1/auth/register-or-login`
- Auth: none declared

用邮箱验证码确认身份；OAuth token 由 MCP exchange 端点签发。

## Request body

- RegisterOrLoginRequest
  - `email` string, email, required
  - `code` string, required
  - `role` string
  - `company_name` string, nullable
  - `referral_code` string, nullable
  - `channel` string, nullable
  - `source_entity` string, nullable

## Response `200`

Successful Response

- RegisterOrLoginResponse
  - `user_id` string, required
  - `email` string, required
  - `role` string, required
  - `email_verified` boolean, required
  - `is_new_user` boolean, required
  - `message` string, required
  - `role_change_ticket` string, nullable

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/hipowork/apis/hipo-work-ai-recruitment-platform.md) · [All operations](https://skmtc.dev/hipowork/apis/hipo-work-ai-recruitment-platform/llms.txt) · [OpenAPI document](https://skmtc.dev/hipowork/apis/hipo-work-ai-recruitment-platform/revisions/de21a6c57062?raw)
