---
title: "User Login"
method: POST
path: "/user/login"
---

# User Login

`POST /user/login`

## Request

- Base URL: `https://dc-region.zuperpro.com/api`
- URL: `https://dc-region.zuperpro.com/api/user/login`
- Auth: API key in header `x-api-key`

## Request body

- object
  - `company_login_name` string, required: company name
  - `email` string, required: Email
  - `password` string, required: Password
  - `is_encrypted` boolean: Flag indicates whether the password is encrypted or not
  - `otp` string: OTP
  - `recovery_code` string: Recovery code for account
  - `mode` 'SMS' | 'EMAIL' | 'TOTP': Mode of OTP
  - `sso_login` boolean: SSO login flag

## Response `200`

200

- object
  - `auth_token` string
  - `expires_at` string
  - `type` string
  - `user` object
    - `user_uid` string
    - `email` string
    - `role` string
    - `first_name` string
    - `last_name` string
    - `profile_picture` string
    - `custom_fields` object[]
      - `label` string
      - `value` string
      - `type` string
      - `hide_to_fe` string
      - `hide_field` string
      - `read_only` string
      - `_id` string

## Other responses

- `401`: 401
- `500`: 500

## Changes

- **2026-11-03** `3c21bc232e16`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/zuper/apis/zuper-pro-api/changes/user/login/post.md)

---

[API](https://skmtc.dev/zuper/apis/zuper-pro-api.md) - [All operations](https://skmtc.dev/zuper/apis/zuper-pro-api/llms.txt) - [OpenAPI document](https://skmtc.dev/zuper/apis/zuper-pro-api/revisions/3c21bc232e16?raw)
