This page was last edited on August 28, 2015, at 21:42.
Comments or questions about this documentation? Contact us for support!
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.
The operations carried out by the Session Management API can be accessed by all roles.
Description | Creates a new 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 |
| ||||||||||||
Request Body | Optional
| ||||||||||||
Response | SessionInfo | ||||||||||||
Notes | Returns information about created session or error. |
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 |
| ||||||||||||
HTTP Header |
| ||||||||||||
URL parameters | None | ||||||||||||
Response | SessionInfo | ||||||||||||
Notes | Returns information about the existing session of the specified ID, or response of “Session not found” error if session with specified Id does not exist. |
Description | Associates a Customer ID, visitId, globalVisitId with a previously started session if referred by sessionId session already created. In case when session with given sessionId does not exist, such session will be automatically created and associated to Customer ID, visitId, globalVisitId | ||||||||||||
URL | /sessions/{sessionId} | ||||||||||||
Method | POST | ||||||||||||
Request Content-Type | application/json | ||||||||||||
Response Content-Type | application/json | ||||||||||||
Role | Any | ||||||||||||
URL IDs |
| ||||||||||||
HTTP Header |
| ||||||||||||
Request Body | Optional
| ||||||||||||
Response | SessionInfo | ||||||||||||
Notes | Returns information about session, identified by given sessionId or error. |