# Sessions

APIs for elastic access within the context of a session.

## Request a new session

 - [POST /api/v1.1/sessions](https://fnoapi-dynamicmonetization.redocly.app/apis/openapi-spec/sessions/createsession.md): Creates a new session for elastic access.

## Fetch IDLE and ACTIVE sessions

 - [GET /api/v1.1/sessions](https://fnoapi-dynamicmonetization.redocly.app/apis/openapi-spec/sessions/getallsessionsforinstance.md): Returns up to 100 live sessions, sorted in descending order of creation time.

## Fetch session details

 - [GET /api/v1.1/sessions/{sessionId}](https://fnoapi-dynamicmonetization.redocly.app/apis/openapi-spec/sessions/getsession.md): Returns session details for the specified session ID.

## Close a session

 - [DELETE /api/v1.1/sessions/{sessionId}](https://fnoapi-dynamicmonetization.redocly.app/apis/openapi-spec/sessions/closesession.md): Closes a specified session for elastic access.

## Elastic access request in the context of a session

 - [PUT /api/v1.1/sessions/{sessionId}](https://fnoapi-dynamicmonetization.redocly.app/apis/openapi-spec/sessions/putsessionaccessrequest.md): Makes an elastic access request in the context of a session.

## Send heartbeat

 - [GET /api/v1.1/sessions/{sessionId}/heartbeat](https://fnoapi-dynamicmonetization.redocly.app/apis/openapi-spec/sessions/getheartbeat.md): Sends a heartbeat for a session to keep it active.

