This API terminates an existing customer session. This API accepts customer's session ID and terminates the session.
Once the session is terminated, given session ID is no longer valid and cannot be used in any subsequent requests.
15.0.2
Method | URL | Description |
---|---|---|
POST | /ws/v15/context/authentication/user/logout | Terminates an existing customer session. |
Name | Description | Allowed values | Default value |
---|---|---|---|
X-egain-session | Session ID obtained from Login API response header | N/A | N/A |
Accept | Content type accepted by the client. | application/xml or application/json | N/A |
Accept-Language | Language locale accepted by client (used for locale specific fields in resource representation and in error responses) | Supported 'Accept-Language' header codes | default system language |
Request body is not allowed.
None
None
Name | Description | Possible values |
---|---|---|
X-egain-session | Session ID that was terminated | N/A |
Content-Type | Media type of response body | application/xml or application/json |
200 - OK
400 - Bad Request
401 - Unauthorized
500 - Internal server error
Example 1 - Logout a customer when SP initiated SSO is disabled
Example 2 - Logout a customer when SP initiated SSO is enabled