Terminate an existing session​
Terminate your own session or if granted any other session.
Path Parameters
"id of the session to terminate"
Request Body required
"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."
Request Body required
"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."
Request Body required
"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."
- 200
- 403
- 404
- default
OK
Schema
details object
{
"details": {
"sequence": "2",
"changeDate": "2024-05-10T13:32:02.709Z",
"resourceOwner": "69629023906488334"
}
}
Schema
details object
{
"details": {
"sequence": "2",
"changeDate": "2024-05-10T13:32:02.709Z",
"resourceOwner": "69629023906488334"
}
}
Schema
details object
{
"details": {
"sequence": "2",
"changeDate": "2024-05-10T13:32:02.709Z",
"resourceOwner": "69629023906488334"
}
}
Returned when the user does not have permission to access the resource.
Schema
details object[]
{
"code": 0,
"message": "string",
"details": [
{
"@type": "string"
}
]
}
Schema
details object[]
{
"code": 0,
"message": "string",
"details": [
{
"@type": "string"
}
]
}
Schema
details object[]
{
"code": 0,
"message": "string",
"details": [
{
"@type": "string"
}
]
}
Returned when the resource does not exist.
Schema
details object[]
{
"code": 0,
"message": "string",
"details": [
{
"@type": "string"
}
]
}
Schema
details object[]
{
"code": 0,
"message": "string",
"details": [
{
"@type": "string"
}
]
}
Schema
details object[]
{
"code": 0,
"message": "string",
"details": [
{
"@type": "string"
}
]
}
An unexpected error response.
Schema
details object[]
{
"code": 0,
"message": "string",
"details": [
{
"@type": "string"
}
]
}
Schema
details object[]
{
"code": 0,
"message": "string",
"details": [
{
"@type": "string"
}
]
}
Schema
details object[]
{
"code": 0,
"message": "string",
"details": [
{
"@type": "string"
}
]
}
DELETE /v2beta/sessions/:sessionId
Authorization
name: OAuth2type: oauth2scopes:openid,urn:zitadel:iam:org:project:id:zitadel:aud
flows: { "authorizationCode": { "authorizationUrl": "$CUSTOM-DOMAIN/oauth/v2/authorize", "tokenUrl": "$CUSTOM-DOMAIN/oauth/v2/token", "scopes": { "openid": "openid", "urn:zitadel:iam:org:project:id:zitadel:aud": "urn:zitadel:iam:org:project:id:zitadel:aud" } } }
Request
Request
curl -L -X DELETE 'https://$CUSTOM-DOMAIN/v2beta/sessions/:sessionId' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authorization: Bearer <TOKEN>' \
--data-raw '{
"sessionToken": "string"
}'
curl -L -X DELETE 'https://$CUSTOM-DOMAIN/v2beta/sessions/:sessionId' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authorization: Bearer <TOKEN>' \
--data-raw '{
"sessionToken": "string"
}'
curl -L -X DELETE 'https://$CUSTOM-DOMAIN/v2beta/sessions/:sessionId' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authorization: Bearer <TOKEN>' \
--data-raw '{
"sessionToken": "string"
}'
curl -L -X DELETE 'https://$CUSTOM-DOMAIN/v2beta/sessions/:sessionId' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authorization: Bearer <TOKEN>' \
--data-raw '{
"sessionToken": "string"
}'
curl -L -X DELETE 'https://$CUSTOM-DOMAIN/v2beta/sessions/:sessionId' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authorization: Bearer <TOKEN>' \
--data-raw '{
"sessionToken": "string"
}'
curl -L -X DELETE 'https://$CUSTOM-DOMAIN/v2beta/sessions/:sessionId' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authorization: Bearer <TOKEN>' \
--data-raw '{
"sessionToken": "string"
}'
curl -L -X DELETE 'https://$CUSTOM-DOMAIN/v2beta/sessions/:sessionId' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authorization: Bearer <TOKEN>' \
--data-raw '{
"sessionToken": "string"
}'
curl -L -X DELETE 'https://$CUSTOM-DOMAIN/v2beta/sessions/:sessionId' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authorization: Bearer <TOKEN>' \
--data-raw '{
"sessionToken": "string"
}'
curl -L -X DELETE 'https://$CUSTOM-DOMAIN/v2beta/sessions/:sessionId' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authorization: Bearer <TOKEN>' \
--data-raw '{
"sessionToken": "string"
}'