# ProfitCollect Code Quality Digest

> ProfitCollect Code Quality Digest is a paid API for AI agents from api.the402.ai, paid per call via x402, $0.525/call, status unknown (last checked 2026-09-15).

Purchases and initiates a code quality digest report via the ProfitCollect service, returning a job ID and status for async retrieval.

## Facts

- Endpoint: POST https://api.the402.ai/v1/services/svc_06debac3ab464bd0/purchase
- Price: $0.525/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/profitcollect-code-quality-digest-32d9233f
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_sETYRaHkgHEzFQtz31CPR

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 profitcollect-code-quality-digest-32d9233f -d '<json body>'
```

Example prompt: Can you run a ProfitCollect Code Quality Digest on my project and give me a full breakdown of code quality issues and health metrics?

## When to prefer this

Choose this endpoint when you need an automated, AI-generated digest summarizing the quality of a codebase, particularly when you want a structured async report via the the402.ai marketplace. Prefer this over generic linting tools when you want a high-level digest narrative rather than raw lint output, and when operating within an x402 micropayment-enabled agent workflow.

## Known failure modes

- Payment failure or insufficient USDC balance — purchase rejected with payment error
- Invalid or missing target code input — job not created, error status returned
- Service unavailable or capacity issue — no job_id returned
- Async job failure — job_id returned but status indicates error on polling
- Malformed request body — 4xx error with no job created

## How this service works

Purchase: ProfitCollect Code Quality Digest

## Output

Returns a JSON object with a job_id (string identifying the async job), a status (string indicating current processing state), and a thread_id (string for tracking the analysis thread). The digest itself is retrieved asynchronously using the job_id.

## Response schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "job_id": {
   "type": "string"
  },
  "status": {
   "type": "string"
  },
  "thread_id": {
   "type": "string"
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/profitcollect-code-quality-digest-32d9233f/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.the402.ai](https://www.zero.xyz/host/api.the402.ai/llms.txt)
