TestingAPIs is still being built. If something breaks, email support@testingapis.com.

Ends the session and expires the session cookie

POSThttps://api.testingapis.com/api/cookies/logoutSign in to see this endpoint's URL

The session is invalidated on the server, so replaying the old cookie fails.

Responses

200
Logged out (also when there was no session).

Example

Request
curl -X POST "https://api.testingapis.com/api/cookies/logout" \
  -H "X-TestingApis-Key: YOUR_API_KEY"
Response200 OK
Set-Cookie: apibee_session=; expires=Thu, 01 Jan 1970 00:00:00 GMT; path=/

{"message": "Logged out"}

Sign in to see the details

The parameters, request and response examples and the live Try it panel for this endpoint are for signed-in members. Accounts are free and take a few seconds to create.