Skip to content

session.verify_session_token

Note

This document has been machine translated.

Checks whether the session token is currently valid.

Parameters

  • token (string): Session token.

Return Value

  • active (boolean): Validity status of the session token.
    • true: Valid.
    • false: Invalid.

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"
}