# Logs user into the system

`GET /user/login`

Operation ID: `loginUser`

Tags: `user`

OpenAPI specification: https://raw.githubusercontent.com/PaloAltoNetworks/docusaurus-openapi-docs/main/demo/examples/petstore.yaml

## Servers

- `https://petstore.swagger.io/v2`: Default server
- `https://petstore.swagger.io/sandbox`: Sandbox server
- `http://127.0.0.1:4010`: Prism Mock API (local)

## Parameters

### Query parameters

- `username` (string, required)
  The user name for login
- `password` (string, required)
  The password for login in clear text

## Responses

### 200

successful operation

Response headers:

- `X-Rate-Limit` (integer<int32>)
  calls per hour allowed by the user
- `X-Expires-After` (string<date-time>)
  date in UTC when token expires

#### Content type: `application/json`

Schema: `string`

Example `` response (This is an example of using **Docusaurus** `markdown` in a summary. Note that admonitions are not fully supported.
) ``:

```json
OK
```

#### Content type: `application/xml`

Schema: `string`

Example `response`:

```xml
<Message> OK </Message>
```

#### Content type: `text/plain`

Example `response`:

```
OK
```

### 400

Invalid username/password supplied
