Productive icon

Productive

Interact with the Productive API

Actions508

Sessions → Get all sessions

AI-generated

Summary

Retrieve a list of sessions from the Productive API, with options to return all results or paginate through them by specifying page number and size.

Inputs

  • Return All — Boolean flag indicating whether to return all matching sessions or limit the results.
  • Limit — Maximum number of session results to return when not returning all (default 50).
  • Page Number — The page number of sessions to retrieve when limiting results (default 1).
  • Page Size — Number of sessions per page when limiting results (default 30, maximum 200).

Output shape

a list of session records

Returns either all sessions or a paginated subset based on 'Return All'. If 'Return All' is false, results are limited by 'Limit', 'Page Number', and 'Page Size' parameters. Each item corresponds to a session object from the Productive API.

Examples

Example 1: Get all sessions without limits

Set 'Return All' to true to retrieve every session without pagination.

Example 2: Get sessions for a specific page

Set 'Return All' to false, specify 'Limit', 'Page Number', and 'Page Size' to paginate session results.

Discussion