Sessions - Fluid Topics - Latest

Fluid Topics API Reference Guide

Category
Reference Guides
Audience
public
Version
Latest

This web service responds with the number of analytics sessions logged during a selected period.

Method Endpoint
POST
/analytics/api/v3/traffic/sessions

It is necessary to provide an Ft-Calling-App value when using Fluid Topics web services. See Fluid Topics calling app.

Request example

The following example shows a JSON request body for this web service:

{
  "startDate": "2026-08-01",
  "endDate": "2026-10-01",
  "groupByPeriod": "month",
  "groupBy": "userRole",
  "filters": {
    "userRole": [
      "ANALYTICS_USER",
      "BETA_USER"
    ]
  }
}

It is possible to filter sessions using user roles or user groups. To filter on user roles or groups, the grouping and the filtering have to be similar. You can only apply one grouping at a time.

Field Type Required? Description
startDate String Yes The inclusive start date of the period.
endDate String Yes The exclusive end date of the period.
groupByPeriod String Yes The period by which to group the sessions. Valid values are month, day, or week.
groupBy String No A grouping of sessions count. Possible values are authenticationStatus, userGroup, userRealm, or userRole. If no grouping is requested, sessions are counted without distinction.
filters Array No Session filtering. Possible values are userGroup, and userRole.

To list all the user groups existing in a Fluid Topics portal, use the Retrieve user groups web service.

Response body

The following example shows a JSON response body for this web service:

{
    "startDate": "2026-08-01",
    "endDate": "2026-10-01",
    "groupBy": "userRole",
    "groupByPeriod": "month",
    "results": [
        {
            "groupValue": "ANALYTICS_USER",
            "periods": [
                {
                    "periodStartDate": "2026-08-01",
                    "periodEndDate": "2026-09-01",
                    "sessionCount": 482
                },
                {
                    "periodStartDate": "2026-09-01",
                    "periodEndDate": "2026-10-01",
                    "sessionCount": 733
                }
            ]
        },
        {
            "groupValue": "BETA_USER",
            "periods": [
                {
                    "periodStartDate": "2026-08-01",
                    "periodEndDate": "2026-09-01",
                    "sessionCount": 297
                },
                {
                    "periodStartDate": "2026-09-01",
                    "periodEndDate": "2026-10-01",
                    "sessionCount": 413
                }
            ]
        }
    ]
}
Field Type Description
startDate String The inclusive start date of the total period as defined in the request body.
endDate String The exclusive end date of the total period as defined in the request body.
groupBy String The grouping of sessions count.
groupByPeriod String The period by which the sessions are grouped.
groupValue String The values of the groups defined in the groupBy field.
periods Array The periods by which the sessions are grouped.
periodStartDate String The inclusive start date of the period by which results are grouped.
periodEndDate String The exclusive end date of the period by which results are grouped.
sessionCount Number The number of sessions during the period by which results are grouped.
Return code Description
200 OK Returns results.