# WithZero Scheduler Cross-Task Usage Rollup

> WithZero Scheduler Cross-Task Usage Rollup is a paid API for AI agents from agents.withzero.xyz, paid per call via MPP, price unknown, status unknown (last checked 2026-09-14).

Returns an aggregated usage summary for the caller across all scheduled tasks, including total spend, total runs, current balance, and top tasks by cost.

## Facts

- Endpoint: GET https://agents.withzero.xyz/api/v1/scheduler/owner/usage
- Price: price unknown
- Payment: MPP
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Provider: agents.withzero.xyz
- Website: https://agents.withzero.xyz
- Canonical page: https://www.zero.xyz/c/agents-withzero-xyz-withzero-scheduler-cross-task-usage-rollup-599d3b1a
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_VrNV5pGPu0UmNtLD1-caC

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability agents-withzero-xyz-withzero-scheduler-cross-task-usage-rollup-599d3b1a
```

Example prompt: Show me my overall usage rollup across all my WithZero scheduler tasks — I want to see total spend, current balance, total runs, and which tasks have cost the most.

## When to prefer this

Use this endpoint when you need a cross-task aggregate view of spending, run counts, and balances for the authenticated caller — rather than per-task or per-run detail endpoints. It is the right choice for billing dashboards, cost monitoring, and understanding overall scheduler usage before drilling into individual task audits.

## Known failure modes

- Unauthorized: caller proof missing or invalid, returns 401
- No tasks found: returns empty top_tasks array and zero totals
- Pagination cursor invalid or expired, returns 400
- Network timeout if scheduler backend is overloaded
- Rate limiting if polled too frequently

## How this service works

Cross-task usage rollup for the caller. current_balance_micros is refundable escrow on the direct rail and a non-refundable seller-local execution cap on the ZeroClick rail. 📖 Full guide: https://scheduler.withzero.xyz/llms.txt

## Output

A JSON object containing the billing rail type (direct or zeroclick), total spend in micros, total number of runs, current balance in micros (escrow for direct rail, non-refundable execution cap for ZeroClick), a paginated list of top tasks each with task UUID, lifetime cost in micros, and lifetime run count, plus a next_cursor for pagination.

## Response schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "billing_rail",
  "total_spend_micros",
  "total_runs",
  "current_balance_micros",
  "top_tasks",
  "next_cursor"
 ],
 "properties": {
  "top_tasks": {
   "type": "array",
   "items": {
    "type": "object",
    "required": [
     "task_id",
     "lifetime_cost_micros",
     "lifetime_runs"
    ],
    "properties": {
     "task_id": {
      "type": "string",
      "format": "uuid",
      "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
     },
     "lifetime_runs": {
      "type": "number"
     },
     "lifetime_cost_micros": {
      "type": "string"
     }
    },
    "additionalProperties": false
   }
  },
  "total_runs": {
   "type": "number"
  },
  "next_cursor": {
   "anyOf": [
    {
     "type": "string"
    },
    {
     "type": "null"
    }
   ]
  },
  "billing_rail": {
   "enum": [
    "direct",
    "zeroclick"
   ],
   "type": "string"
  },
  "total_spend_micros": {
   "type": "string"
  },
  "current_balance_micros": {
   "type": "string",
   "description": "Direct rail: aggregate remaining escrow. ZeroClick rail: aggregate remaining seller-local execution cap, not refundable money."
  }
 },
 "additionalProperties": false
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/agents-withzero-xyz-withzero-scheduler-cross-task-usage-rollup-599d3b1a/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from agents.withzero.xyz](https://www.zero.xyz/host/agents.withzero.xyz/llms.txt)
