---
title: "Logging in with user"
method: POST
path: "/v2/user/login"
tags: ["user"]
---

# Logging in with user

`POST /v2/user/login`

Log in with the following fields: email, password, type, output http code 200 and json response

## Request body

- BluenteInternalUserModelUserLoginRequest
  - `email` string, required
  - `fullName` string
  - `google_auth` BluenteInternalUserModelGoogleAuthResponse
    - `access_token` string
    - `apiKey` string
    - `appName` string
    - `createAt` string — miliseconds
    - `displayName` string
    - `email` string
    - `emailVerified` boolean
    - `id_token` string
    - `lastLoginAt` string — miliseconds
    - `providerData` object[]
      - `displayName` string
      - `email` string
      - `photoUrl` string
      - `providerId` string
      - `uid` string
    - `stsTokenManager` object
  - `invite_code` string
  - `microsoft_auth` BluenteInternalUserModelMicrosoftAuthResponse
    - `orgInfo` object
  - `page` string
  - `password` string, required
  - `platform` string
  - `type` string

## Response `200`

success, the list in Data is model.UserLoginResponseV2

- object
  - `code` integer — 0=success，only parse data when code=0
  - `data` object — real data
    - `country_code` string
    - `isPremium` boolean
    - `is_new_user` boolean
    - `jwtToken` string
    - `learn_language` string
    - `organization` BluenteInternalCourseV2ModelOrganization
      - `contact_email` string
      - `contact_person` string
      - `contact_phone` string
      - `created_at` BluenteInternalCourseV2ModelCustomTime
        - `time.Time` string
      - `extra_config` BluenteInternalCourseV2ModelExtraConfig
      - `id` integer
      - `invoice_enable` integer — allow invoice generation
      - `name` string — name of organization
      - `profile_headers` BluenteInternalCourseV2ModelProfileHeader[] — profile headers are key value pairs that links the company various company information that is translated to other languages
        - `description` object — language as key, description for each header in different language
        - `header` string — The header of of the profile
      - `type` string — type of organization
      - `updated_at` BluenteInternalCourseV2ModelCustomTime
        - `time.Time` string
      - `user_role` string
      - `uuid` string — uuid of the organization
    - `rights` string
    - `speak_language` string
    - `user` BluenteInternalUserModelLoginUser
      - `activated` integer
      - `audit` BluenteInternalCourseV2OldmodelAudit
        - `createdAt` string
        - `createdBy` string
        - `updatedAt` string
        - `updatedBy` string
      - `email` string
      - `fullName` string
      - `lastCourse` string
      - `lastCourses` string[]
      - `lastLogin` string
      - `lastModule` string
      - `lastModules` string[]
      - `role` string
      - `status` string
      - `translationExpireAt` string
      - `translationPages` integer
      - `type` string
      - `uuid` string
  - `message` string — tip message

---

[API](https://skmtc.net/bluente/apis/bluente-api.md) · [All operations](https://skmtc.net/bluente/apis/bluente-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/bluente/bluente-api/revisions/5c90e58bf672/schema)
