---
title: "Login"
method: POST
path: "/v2/authentication/login"
tags: ["login"]
---

# Login

`POST /v2/authentication/login`

Sends a request to log in the user / dynamically assign the WAWI user. Only use this request if your API uses SSL.

## Headers

- `x-tenant-id` string, uuid, required
- `x-challengecode` string, required

## Request body

- JTLWawiRestContractsModelsV1AuthenticationCreateLogin — Model Class: CreateLogin
  - `userName` string — Username of the WAWI user
  - `password` string — Password of the WAWI user

## Response `200`

login success

- JTLWawiRestContractsModelsV1AuthenticationLogin — Model Class: Login
  - `sessionId` string — Unique identifier of the current session

## Other responses

- `400` — The sent data is invalid.
- `402` — No licence available or the app has not been authorised by JTL.

---

[API](https://skmtc.net/jtl-software/apis/scx-authentication-api.md) · [All operations](https://skmtc.net/jtl-software/apis/scx-authentication-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/jtl-software/scx-authentication-api/revisions/f979b1ea6951/schema)
