Runrunit

Interact with the Runrunit API

Comments → Get Many

AI-generated

Summary

Retrieve multiple comments associated with a specific task, supporting pagination, sorting, and limiting the number of results.

Inputs

  • Task ID (required) — The unique identifier of the task whose comments are to be fetched.
  • Limit — The maximum number of comments to return, between 1 and 100; defaults to 50.
  • Page — The page number for paginating the results, starting at 1; defaults to 1.
  • Sort — The field name by which to sort the list of comments.
  • Sort Direction — The direction to order the sorted results: ascending or descending; defaults to ascending.
  • Mode — Choose whether to execute the API request or only preview the curl command; defaults to executing the request.

Output shape

a list of comment objects related to the specified task

Supports pagination through 'Limit' and 'Page' parameters, and sorting by any specified field and direction. The maximum number of results per request is 100. If 'Mode' is set to 'preview', no API call is made and only the curl command is shown.

Examples

Example 1: Get first page of up to 50 comments for task '12345', sorted by creation date ascending

Set Task ID to '12345', Limit to 50, Page to 1, Sort to 'created_at', Sort Direction to 'asc', Mode to 'execute'.

Links

Discussion