---
title: "Log in and create a session in Itential Platform"
method: POST
path: "/login"
tags: ["Authentication"]
---

# Log in and create a session in Itential Platform

`POST /login`

## Request

- Base URL: `https://example.itential.io`
- URL: `https://example.itential.io/login`
- Auth: none declared

Logs in to Itential Platform.

## Request body

- object
  - `user` LoginPostRequestBodyContentApplicationJsonSchemaUser
    - `username` string
    - `password` string

## Response `200`

The session token for a logged in user

- string

## Other responses

- `500`: Error response from API

---

[API](https://skmtc.dev/itential/apis/itential-2.md) - [All operations](https://skmtc.dev/itential/apis/itential-2/llms.txt) - [OpenAPI document](https://skmtc.dev/itential/apis/itential-2/revisions/2095cc90e583?raw)
