Skip to main content
cURL
curl --request GET \
  --url https://test.deribit.com/api/v2/private/logout \
  --header 'Content-Type: application/json' \
  --data '
{
  "jsonrpc": "2.0",
  "id": 42,
  "method": "private/logout",
  "params": {
    "access_token": "1529453804065.h2QrBgvn.oS36pCOmuK9EX7954lzCSkUioEtTMg7F5ShToM0ZfYlqU05OquXkQIe2_DDEkPhzmoPp1fBp0ycXShR_0jf-SMSXEdVqxLRWuOw-_StG5BMjToiAl27CbHY4P92MPhlMblTOtTImE81-5dFdyDVydpBwmlfKM3OSQ39kulP9bbfw-2jhyegOL0AgqJTY_tj554oHCQFTbq0A0ZWukukmxL2yu6iy34XdzaJB26Igy-3UxGBMwFu53EhjKBweh7xyP2nDm57-wybndJMtSyTGDXH3vjBVclo1iup5yRP",
    "invalidate_token": true
  }
}
'

Query Parameters

invalidate_token
boolean

Token Invalidation: By default, all tokens created during the current session are invalidated when you call this method. You can control this behavior using this parameter:

  • invalidate_token=true (default): All session tokens are invalidated, requiring re-authentication for new connections
  • invalidate_token=false: Tokens remain valid, allowing you to reconnect using the same authentication

Response

200

Connection closed