List content sessions
Retrieves a paginated list of content sessions with optional filtering and expansion options.
Query Parameters
Filter sessions by a specific content ID. Only sessions associated with this content will be returned.
Filter sessions by a specific user ID. Only sessions created by this user will be returned.
Specifies the maximum number of items to return in a single response. The value must be between 1 and 100. If not specified, defaults to 20 items per page.
Specifies the starting point for the next page of results. The response will include items that come after (but not including) the object with this ID. To get the next page, use the ID of the last item from your previous request. The easiest way is to use the list object’s cursor field. If not provided, the API will return items from the beginning of the list.
Sort the results by specified fields. Available options:
createdAt
: Sort by session creation time (default)- Use
-
prefix for descending order:orderBy[]=-createdAt
- You can combine multiple fields:
orderBy[]=-createdAt&orderBy[]=id
Include additional related objects in the response. Available options:
content
: Include the associated content objectversion
: Include the content version detailsanswers
: Include survey answers if anycompany
: Include the associated company informationuser
: Include the user who created the session- You can request multiple expansions:
expand[]=content&expand[]=user
Response
Returns a list object containing:
results
: Array of content session objectsnext
: URL for the next page (null if no more pages)previous
: URL for the previous page (null if on first page)