Agentset icon

Agentset

Interact with the Agentset API

Actions18

Ingest Job → Get Many

AI-generated

Summary

Retrieve multiple ingest jobs from a specified namespace with optional filtering, ordering, and pagination.

Inputs

  • Namespace ID (required) — The ID of the namespace to query, prefixed with 'ns_'.
  • Return All — Whether to return all matching results or limit the number of results.
  • Limit — Maximum number of ingest jobs to return when not returning all; constrained between 1 and 100.
  • Page Size (when Return All Is Enabled) — Number of results to fetch per page when returning all results; constrained between 1 and 100.
  • Order — The sort direction for results, ascending or descending.
  • Order By — The field to order results by; only 'createdAt' is supported.
  • Statuses — Filter ingest jobs by their status; multiple statuses can be selected.
  • Tenant ID — Optional tenant ID to set as a request header for multi-tenant environments.

Output shape

a list of ingest job objects, potentially paginated.

Supports cursor-based pagination when "Return All" is enabled, fetching results in pages up to the specified page size. When "Return All" is false, returns up to the specified limit of results. If the API response includes pagination data, the node fetches subsequent pages automatically until all data is retrieved or the limit is reached.

Examples

Example 1: Fetch up to 50 ingest jobs in namespace 'ns_123', filtering to only 'COMPLETED' status, ordered descending by creation date.

Namespace ID: ns_123; Return All: false; Limit: 50; Order: Descending; Order By: Created At; Statuses: COMPLETED

Example 2: Retrieve all ingest jobs in a namespace with cursor pagination, fetching 100 jobs per API request.

Namespace ID: ns_123; Return All: true; Page Size (when Return All Is Enabled): 100

Links

Discussion