Log out current user session
Log out the current user session.
GET https://petstore3.swagger.io/api/v3/user/logout
Examples
- API Key
- OAuth 2.0
cURL
GET "https://petstore3.swagger.io/api/v3/user/logout" \
-H "accept: application/json" \
-H "api_key: <YOUR_API_KEY>"
cURL
GET "https://petstore3.swagger.io/api/v3/user/logout" \
-H "accept: application/json" \
-H "Authorization: Bearer <YOUR_OAUTH_TOKEN>"
Responses
| Code | Description |
|---|---|
| 200 | Successful operation |
| default | Successful operation |
Response example
200: Successful operation
Response
{
"message": "Successfully logged out"
}
Parameters
None