Terminate an existing session
DELETEhttps://$CUSTOM-DOMAIN/v2/sessions/:sessionId
Terminate your own session or if granted any other session.
Request​
Path Parameters
"id of the session to terminate"
- application/json
- application/grpc
- application/grpc-web+proto
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."
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."
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."
Responses​
- 200
- 403
- 404
- default
OK
- application/json
- application/grpc
- application/grpc-web+proto
- Schema
- Example (from schema)
Schema
details
object
{
"details": {
"sequence": "2",
"changeDate": "2025-03-04T15:26:53.203Z",
"resourceOwner": "69629023906488334",
"creationDate": "2025-03-04T15:26:53.203Z"
}
}
- Schema
- Example (from schema)
Schema
details
object
{
"details": {
"sequence": "2",
"changeDate": "2025-03-04T15:26:53.204Z",
"resourceOwner": "69629023906488334",
"creationDate": "2025-03-04T15:26:53.204Z"
}
}
- Schema
- Example (from schema)
Schema
details
object
{
"details": {
"sequence": "2",
"changeDate": "2025-03-04T15:26:53.204Z",
"resourceOwner": "69629023906488334",
"creationDate": "2025-03-04T15:26:53.204Z"
}
}
Returned when the user does not have permission to access the resource.
- application/json
- application/grpc
- application/grpc-web+proto
- Schema
- Example (from schema)
Schema
details
object[]
{
"code": 0,
"message": "string",
"details": [
{
"@type": "string"
}
]
}
- Schema
- Example (from schema)
Schema
details
object[]
{
"code": 0,
"message": "string",
"details": [
{
"@type": "string"
}
]
}
- Schema
- Example (from schema)
Schema
details
object[]
{
"code": 0,
"message": "string",
"details": [
{
"@type": "string"
}
]
}
Returned when the resource does not exist.
- application/json
- application/grpc
- application/grpc-web+proto
- Schema
- Example (from schema)
Schema
details
object[]
{
"code": 0,
"message": "string",
"details": [
{
"@type": "string"
}
]
}
- Schema
- Example (from schema)
Schema
details
object[]
{
"code": 0,
"message": "string",
"details": [
{
"@type": "string"
}
]
}
- Schema
- Example (from schema)
Schema
details
object[]
{
"code": 0,
"message": "string",
"details": [
{
"@type": "string"
}
]
}
An unexpected error response.
- application/json
- application/grpc
- application/grpc-web+proto
- Schema
- Example (from schema)
Schema
details
object[]
{
"code": 0,
"message": "string",
"details": [
{
"@type": "string"
}
]
}
- Schema
- Example (from schema)
Schema
details
object[]
{
"code": 0,
"message": "string",
"details": [
{
"@type": "string"
}
]
}
- Schema
- Example (from schema)
Schema
details
object[]
{
"code": 0,
"message": "string",
"details": [
{
"@type": "string"
}
]
}
- curl
- python
- go
- nodejs
- ruby
- csharp
- php
- java
- powershell
- CURL
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"
}'