---
title: "POST /login"
method: POST
path: "/login"
tags: ["Authentication"]
---

# POST /login

`POST /login`

## Request

- Base URL: `https://sort.veritas.com/infoscale/api/2.0`
- URL: `https://sort.veritas.com/infoscale/api/2.0/login`
- Auth: none declared
- TypeScript: <https://skmtc.dev/veritas/apis/veritas-infoscale-api/docs/login/post.ts> (a function with typed inputs; its response is checked against the schema)

Authenticates the users with the supplied user name and the password.
A JSON Web Token (JWT) is returned that is used for all subsequent API requests

## Request body

- UserPassLoginRequest
  - `userName` string, required: The user account name.
  - `password` string, password, required: The password of the user.
  - `domaintype` string, required: The domain of the user, if it is LDAP/AD/pam/nt.
  - `domainname` string: The domain name.

## Response `201`

Successfully logged in.

- LoginResponse
  - `token` string: The token to use for subsequent API requests.

## Other responses

- `400`: Bad Request
- `401`: The user name or the password is incorrect. Authentication failure.
- `404`: Not Found

---

[API](https://skmtc.dev/veritas/apis/veritas-infoscale-api.md) - [All operations](https://skmtc.dev/veritas/apis/veritas-infoscale-api/llms.txt) - [OpenAPI document](https://skmtc.dev/veritas/apis/veritas-infoscale-api/revisions/1e3d3f7145bb?raw)
