Skip to main content
POST
/
sessions
/
{sessionID}
/
revoke
Revoke a session
curl --request POST \
  --url https://backendapi.corbado.io/v2/sessions/{sessionID}/revoke \
  --header 'Authorization: Basic <encoded-value>'
{
  "httpStatusCode": 123,
  "message": "OK",
  "requestData": {
    "requestID": "req-557...663",
    "link": "https://my.corbado.com/requests/req-xxxxxxxxxxxxxxxxxxx"
  },
  "runtime": 0.06167686
}

Documentation Index

Fetch the complete documentation index at: https://docs.corbado.com/llms.txt

Use this file to discover all available pages before exploring further.

Authorizations

Authorization
string
header
required

Basic authentication is used to authenticate requests to the Backend API. The username is the project ID and the password is the API secret.

The project ID and API secret can be found in the Developer Panel.

Path Parameters

sessionID
string
required

ID of session

Required string length: 30

Response

Operation succeeded.

httpStatusCode
integer<int32>
required

HTTP status code of operation

message
string
required
Example:

"OK"

requestData
object
required

Data about the request itself, can be used for debugging

runtime
number<float>
required

Runtime in seconds for this request

Example:

0.06167686