Authentication

InitSession

The InitSession method authenticates your account, establishes a secure connection, and provides the session ID required to make other API calls. Call InitSession before doing anything else with the API.

The InitSession method requires your access token and returns a SessionId string. Use this SessionId string to authenticate all other API operations. A SessionId expires after one hour of inactivity.

Input

Parameter

Type

Required / Optional

Available

Comments

accessToken

String

Required

/v1+

accessToken is one of the keys given to a user along with client side certificate to initiate session.

Listing 3-1  InitSession Sample Input

{
   "method":"InitSession",
   "id":"1000",
   "params":{
      "accessToken":"1234567890"
   },
   "jsonrpc":"2.0"
}

Output

Parameter

Type

Available

Comments

SessionId

String

/v1+

SessionId that needs to be used for all other API operations.

Listing 3-2  InitSession Sample Output

{ "id": "RequestNo-001",
  "result": {
    "SessionId": "44e5b59211ae0da9c9739b0866936ca94301d444"
  },
  "jsonrpc": "2.0"
}