Skip to content

session.open_session

Note

This document has been machine translated.

Starts a new session.

Parameters

  • expires_in (integer): Session validity period (in seconds). This field is optional. If omitted, the validity period will be 30 days (2,592,000 seconds).

Return Values

  • access_token (string): Session token. While the session is valid, you can use various APIs by specifying the session token.
  • expires_in (integer): Session validity period (in seconds).

Example

Request Data

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "session.open_session",
  "params": {
  }
}

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": {
    "access_token": "00890640-ec03-4663-82ce-456ea993807d",
    "expires_in": 2592000
  },
  "id": 1,
  "jsonrpc": "2.0"
}