SDK Reference

Java: Pagination

Overview

Iterate large collections with async iterators or manual cursor parameters.

The SDK exposes hasMore and nextCursor fields matching the REST API contract.

Who should read this

  • QA engineers, SREs, platform teams, and developers operating Zof Console and APIs.

Prerequisites

  • Java runtime installed
  • Organization API key

When to use this workflow

  • Onboarding new team members to Zof terminology and workflows
  • Authoring internal runbooks aligned with Console labels
  • Designing CI/CD or webhook integrations against documented behavior

Step-by-step procedure

Confirm access

Verify organization membership and role permissions in Admin Center.

Confirm API key or SSO session is scoped to the correct tenant.

Apply this guidance

Follow Console navigation paths and API examples in this document.

Use staging project and environment IDs for first-time integration tests.

Verify outcomes

Check Operate → Runs, Quality areas, or API responses for expected results.

Update team runbooks when your stack requires environment-specific variations.

Key concepts

Organization scope
All Zof Console and API operations are isolated to your authenticated tenant.
Governed execution
Agent output and remediation follow policy packs with human approval when configured.

Best practices

  • Use async iterators for large exports
  • Stop iteration when hasMore is false

Example

for await (const run of client.runs.listAuto({ projectId: 'proj_abc' })) {
  console.log(run.id, run.status);
}

Was this page helpful?

Java: Pagination | Zof AI Documentation