---
title: "Logs user into the system"
method: GET
path: "/user/login"
tags: ["user"]
---

# Logs user into the system

`GET /user/login`

## Query parameters

- `username` string
- `password` string

## Response `200`

successful operation

- string

## Other responses

- `400` — Invalid username/password supplied

## Changes

- **2025-03-12** `253de9e0f0ae` — 2 breaking, 2 warning, 2 info
  - the response's body type changed from `string` to `object` for status `default`
  - removed the media type `application/xml` for the response with the status `default`
  - the optional response header `X-Expires-After` removed for the status `default`
  - the optional response header `X-Rate-Limit` removed for the status `default`
  - …2 more

[Change history](https://skmtc.dev/swagger/apis/swagger-petstore-openapi-3-0/changes/user/login/get.md)

---

[API](https://skmtc.dev/swagger/apis/swagger-petstore-openapi-3-0.md) · [All operations](https://skmtc.dev/swagger/apis/swagger-petstore-openapi-3-0/llms.txt) · [OpenAPI document](https://skmtc.dev/swagger/apis/swagger-petstore-openapi-3-0/revisions/d5fd36e3763a?raw)
