Skip to content

session.verify_session_token

Note

This document has been machine translated.

Checks if a session token is currently active.

Parameters

  • token: string -- session token.

Return Values

  • active: boolean -- The active state of the session token.
    • true -- enabled.
    • false -- disable.

Execution example

Request Data

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "session.verify_session_token",
  "params": {
    "token": "00890640-ec03-4663-82ce-456ea993807d"
  }
}

Request Execution

curl -H "Content-type: application/json" \
     -H "APIKey: 9c6f4574-89d1-4e3c-8af7-2549dc217fcf" \
     -H "Secret: aef8caingiej1ieNieJ3Phool4maeGohcies" \
     -X POST -d "@request.json" \
     https://localhost/api/v2/session/jsonrpc

Response

{
  "result": {
    "active": true
  },
  "id": 1,
  "jsonrpc": "2.0"
}