Swagger Petstore - OpenAPI 3.0· docs by DocoAPI
v1.0.27
GET/user/login
operationId: loginUser

Logs user into the system.

Log into the system.

🔒petstore_auth
🔒api_keyapi_key: <your-key>

Parameters

Query Parameters
usernamestringoptional

The user name for login

passwordstringoptional

The password for login in clear text

Responses

200 OK — successful operation
400 Bad Request — Invalid username/password supplied
default — Unexpected error

⚡ Try it out