Skip to main content

Terminate an existing session

DELETE 

https://$CUSTOM-DOMAIN/v2/sessions/:sessionId

Terminate your own session or if granted any other session.

Request​

Path Parameters

    sessionId stringrequired

    "id of the session to terminate"

Body

required

    sessionToken string

    "The current token of the session, previously returned on the create / update request. The token is required unless the authenticated user terminates the own session or is granted the session.delete permission."

Responses​

OK

Schema

    details

    object

    sequence uint64

    on read: the sequence of the last event reduced by the projection

    on manipulation: the timestamp of the event(s) added by the manipulation

    changeDate date-time

    on read: the timestamp of the last event reduced by the projection

    on manipulation: the timestamp of the event(s) added by the manipulation

    resourceOwner resource_owner is the organization or instance_id an object belongs to (string)
    creationDate date-time
curl -L -X DELETE 'https://$CUSTOM-DOMAIN/v2/sessions/:sessionId' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authorization: Bearer <TOKEN>' \
-d '{
"sessionToken": "string"
}'
Request Collapse all
Base URL
https://$CUSTOM-DOMAIN
Auth
Parameters
— pathrequired
Body required
{
  "sessionToken": "string"
}
ResponseClear

Click the Send API Request button above and see the response here!