---
title: "Authorizes user and send in header JWT token"
method: POST
path: "/login"
tags: ["# Authorization"]
---

# Authorizes user and send in header JWT token

`POST /login`

## Request body

- UserCredentialDTO
  - `email` string
  - `username` string
  - `password` string

## Response `200`

Success

- UserResource
  - `userId` integer
  - `email` string
  - `username` string
  - `totpEnabled` boolean
  - `userGroup` UserRoleResource
    - `groupId` integer
    - `name` string
    - `description` string
    - `icon` string
    - `components` ComponentResource[]
      - `componentId` integer
      - `name` string
      - `permissions` string[]
  - `userDetail` UserDetailResource
    - `name` string
    - `surname` string
    - `userTitle` string
    - `phoneNumber` string
    - `department` string
    - `organization` string
    - `profilePicture` string
    - `appTour` boolean
    - `theme` string
    - `themeSync` boolean
    - `lang` string
    - `bitbucketUser` string
    - `bitbucketPassword` string
    - `requestTime` string, date-time
  - `widgetSettings` WidgetSettingResource[]
    - `widgetSettingId` integer
    - `widgetId` integer
    - `i` string
    - `x` integer
    - `y` integer
    - `w` integer
    - `h` integer
    - `minW` integer
    - `minH` integer

## Other responses

- `400` — Bad Request
- `401` — Unauthorized
- `403` — Forbidden
- `500` — Internal Error
- `502` — Bad Gateway

---

[API](https://skmtc.net/opencelium/apis/opencelium-api.md) · [All operations](https://skmtc.net/opencelium/apis/opencelium-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/opencelium/opencelium-api/versions/82ed767ffb65/schema)
