Jump to: navigation, search

Session Management

The Session Management API allows you to bundle requests and set your customer ID for your entire session. This is the technical part of the interface, and its concepts and actions are only of interest to developers.

Authorization

The operations carried out by the Session Management API can be accessed by all roles.

Create Session

Description Creates new named or anonymous (agentId, customerId, visitId not provided) session
URL /sessions/new
Method PUT
Request Content-Type application/json
Response Content-Type application/json
Role Any
URL IDs None
URL Parameters
HTTP Header
Field Type Req Description
gkc_agentId String No Agent ID
gkc_customerId String No Customer ID
Request Body Optional
Field Type Req Description
visitId String No Visit ID
globalVisitId String No Global Visit ID
Response SessionInfo
Notes In case of success returns payload in response field of "response" of declared structure.

In case of error returns code and description of error.

Retrieving Session Information

Description Retrieves information about an existing session by sessionId
URL /sessions/{sessionId}
Method GET
Request Content-Type
Response Content-Type application/json
Role Any
URL IDs
Parameter Type Description
{sessionId} String Session ID
HTTP Header
Field Type Req Description
gkc_agentId String No Agent ID
gkc_customerId String No Customer ID
URL parameters None
Response SessionInfo
Notes Returns information about existing session of specified id, or about automatically created new session.

Update Session Information

Description Assosiate recognized user with previously started anonymous session
URL /sessions/{sessionId}
Method POST
Request Content-Type application/json
Response Content-Type application/json
Role Any
URL IDs
Parameter Type Description
{sessionId} String Session ID
HTTP Header
Field Type Req Description
gkc_agentId String No Agent ID
gkc_customerId String No Customer ID
Request Body Optional
Field Type Req Description
visitId String No Visit ID
globalVisitId String No Global Visit ID
Response SessionInfo
Notes In case of success returns payload in response field of "response" of declared structure.

In case of error returns code and description of error.

This page was last edited on March 11, 2016, at 23:04.
Comments or questions about this documentation? Contact us for support!