# Logs user into the system.

Log into the system.

[Logs user into the system.](https://clay-doc.github.io/clay-example-repo/de/api/petstore/user/login-user.md)

```sh
curl 'https://petstore3.swagger.io/api/v3/user/login'
```
## Authentifizierung

Keine Authentifizierung nötig.

## Parameter

::: fields
- `username` string *query*

  The user name for login
- `password` string *query*

  The password for login in clear text
:::

## Antworten

::: tabs status
== 200

successful operation

**Header**

::: fields
- `X-Rate-Limit` integer (int32)

  calls per hour allowed by the user
- `X-Expires-After` string (date-time)

  date in UTC when token expires
:::

:badge[application/xml]{note} · Typ: string

:badge[application/json]{note} · Typ: string

::: code-group
```xml [application/xml]
string
```
```json [application/json]
"string"
```
:::

== 400

Invalid username/password supplied

== default

Unexpected error
:::

---

All pages of these docs, as Markdown for language models: https://clay-doc.github.io/clay-example-repo/de/llms.txt
