Skip to main content

Log user into the system

Log a user into the system.

GET https://petstore3.swagger.io/api/v3/user/login

Examples

cURL
GET "https://petstore3.swagger.io/api/v3/user/login?username=string&password=string" \
-H "accept: application/json" \
-H "api_key: <YOUR_API_KEY>"

Responses

CodeDescription
200Successful operation
400Invalid username/password supplied
defaultUnexpected error
Response example

200: Successful operation

Response
{
"message": "logged in user session:abcdef12345"
}
Headers
NameDescriptionType
X-Rate-LimitCalls per hour allowed by the user.integer
X-Expires-AfterDate in UTC when token expires.string

Parameters

Query parameters
NameTypeDescription
usernamestringThe username for login.
passwordstringThe password for login in clear text.