---
title: "Login"
method: POST
path: "/users/login"
tags: ["Users"]
---

# Login

`POST /users/login`

The Login endpoint authenticates a User and creates a session.

## Request body

- LoginRequest
  - `username` string — Username
  - `password` string — Password

## Response `200`

An new active Session.

- Session
  - `key` string — Session key.
  - `sAMAccountName` string — The Username of the User logged into this Session.
  - `ipAddress` string — The IP address that created this Session.
  - `expiration` unknown
  - `user` User
    - `sAMAccountName` string — Username of the User.
    - `name` string — Formal name of the User.
    - `email` string — Email address
    - `emailHash` string — An MD5 hash of the User's email address.
    - `distinguishedName` string — LDAP distinguished name.
    - `displayName` string — Display name of the User.
    - `givenName` string — The User's given name.
    - `title` string — The User's current title.
    - `department` string — The User's department.
    - `division` string — The User's division.
    - `firstLogin` unknown
    - `lastLogin` unknown
    - `timesLoggedIn` integer — The number of times this User has logged into Cyclotron.
    - `memberOf` string[] — List of LDAP distinguished names for groups this User is a member of.

## Other responses

- `500` — Server error OR Authentication error.

---

[API](https://skmtc.dev/expediagroup/apis/cyclotron-api.md) · [All operations](https://skmtc.dev/expediagroup/apis/cyclotron-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/expediagroup/cyclotron-api/revisions/18e751e6bc49/schema)
