8.1.1.2. Logout / Destroy a Session

Destroy session for not using protected REST APIs.

Request

Value

Method

POST

URL

/logout

Request HTTP header parameters:

name

type

required

value

apikey

string

true

Session id, can be acquired by Login / Create a Session

Successful response

HTTP status code: 200

{
"response": "Logout success"
}

Error response

Invalid user information

HTTP status code: 403

{
"err": "Access denied"
}

HTTP status code: 400

{
"err": "Logout error"
}

Unexpected event on server

HTTP status code: 500

{
"err": "<error message>"
}

Note: Check Metadefender Core server logs for more information.