Login/Logout REST API

Endpoint: /logout

Logs out of current session.

  • POST

Method & URL

POST https://[server URL]:[port]/admin/v2/logout

POST Body Sample

Copy
POST https://{{host}}/admin/v2/logout HTTP/1.1
Authorization: EFTAdminAuthToken {{AuthToken}}
###

POST Response Body Sample

Copy
HTTP/1.1 200 OK Date: Wed, 10 Aug 2022 20:10:28 GMT Content-Length: 0 Set-Cookie: websessionid=xxxxxx; 
expires=Tuesday, 10-Aug-21 20:10:28 GMT; path=/; secure; HttpOnly; SameSite=Strict 
Cache-Control: no-cache, no-store, must-revalidate Expires: -1 
X-Content-Type-Options: nosniff X-XSS-Protection: 1; mode=block 
Content-Security-Policy: default-src 'self' 'unsafe-inline' 'unsafe-eval' 
data:; Referrer-Policy: no-referrer

POST PowerShell Sample

Copy
# POST - logout
$auth = Invoke-RestMethod -Uri "$baseURL/v2/logout" 
-Method 'POST' -Body $authBody -Headers $authHeader
#