API - Sessions

Start Session
These APIs are used to start or end the Interact Runtime session.
Methods
POST/interact/v2/sessions/{sessionID}?ic={icName}&audienceLevel={audienceLevel}&audien ceIDField={audienceIDField}
This API call starts the Interact session.
Parameters
Parameters Description
ic Interactive Channel Name
sessionID Interact Runtime Session ID
audienceLevel Audience Level
audienceIDField Audience ID
Body Parameter
This is used to provide the start session command details.
Content-Type: application/json

{
  "auIdParams": [
    {
      "n": "string",
      "t": "string",
      "v": ""
    }
  ],
  "debug": true,
  "parameters": [
    {
      "n": "string",
      "t": "string",
      "v": ""
    }
  ],
  "relyOnExistingSession": true
}
Example Result
Content-Type: application/json
{
    "messages": [],
    "sessionId": "101",
    "version": "1.0.0",
    "statusCode": 0
}
End Session
This API call ends and removes the Interact session.
DELETE/interact/v2/sessions/{sessionID}
Parameters
Parameter Description
sessionID Interact Runtime Session ID
Example Result
Content-Type: application/json
{
    "messages": null,
    "sessionId": "101",
    "version": "1.0.0",
    "statusCode": 0
}