VirtuousAI
ReferenceSessions

Revoke All Sessions

Revoke all sessions for the current user. By default, excludes the current session (the one making this request). Set exclude_current=false to revoke ALL sessions including the current one.

DELETE
/api/v1/sessions

Query Parameters

exclude_current?boolean
Defaulttrue

Header Parameters

authorization?|
X-API-Key?|
vai_token?|

Response Body

application/json

application/json

curl -X DELETE "https://loading/api/v1/sessions"
{
  "revokedCount": 0
}
{
  "detail": [
    {
      "loc": [
        "string"
      ],
      "msg": "string",
      "type": "string"
    }
  ]
}