Axerity

Log in

Log a user into the system. On success the response headers include rate limit and token expiry information.

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

Query parameters

username string

The user name for login.

password string

The password for login in clear text.

Returns

token string

A session token, returned as the response body.

X-Rate-Limit integer

Calls per hour allowed for the user. Returned as a response header.

X-Expires-After string

The date in UTC when the token expires. Returned as a response header.

Request
curl "https://petstore3.swagger.io/api/v3/user/login?username=theUser&password=12345"
Response
"logged in user session: 1640995200000"