# Safe Upgrade Decision API – Content Repurposing Package

> Safe Upgrade Decision API – Content Repurposing Package is a paid API for AI agents from x402-safe-upgrade-api.onrender.com, paid per call via x402, $0.02/call, status unknown (last checked 2026-10-12).

Analyzes submitted content and returns evidence-backed repurposing or repackaging recommendations for npm package upgrade decisions in coding agent workflows.

## Facts

- Endpoint: POST https://x402-safe-upgrade-api.onrender.com/v1/content-repurposing-package?utm_source=zero.xyz
- Price: $0.02/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-12
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/safe-upgrade-decision-api-content-repurposing-package-66689e1a
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_Isama_Ls8paIxWg8iDa34

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 safe-upgrade-decision-api-content-repurposing-package-66689e1a -d '<json body>'
```

Example prompt: I'm working on a Node.js project and need to decide whether to upgrade the lodash package — can you analyze this package changelog and dependency notes and give me an evidence-backed recommendation on whether it's safe to upgrade?

## When to prefer this

Choose this endpoint when a coding agent needs a structured, evidence-backed recommendation on npm package upgrades or content repurposing decisions, especially when the input is a block of text (changelogs, release notes, advisories) that needs to be distilled into a clear upgrade headline. Prefer over general LLM queries when you need a consistent JSON response format at a fixed $0.02 cost per call.

## Known failure modes

- Content too short (below 40 characters) returns validation error
- Content exceeding 200,000 character limit rejected
- Missing required content field returns 400 error
- Payment not fulfilled returns 402 Payment Required
- Service unavailable on render.com cold start may cause timeout
- Ambiguous or off-topic content may return generic headline with low specificity

## How this service works

Evidence-backed npm package upgrade decisions for coding agents.

## Output

Returns a JSON object containing a package field with a headline string summarizing the evidence-backed upgrade or repurposing decision for the submitted content.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "content": {
   "type": "string",
   "maxLength": 200000,
   "minLength": 40,
   "description": "Content supplied by the caller only; it is processed in memory and not retained."
  },
  "sourceLabel": {
   "type": "string",
   "maxLength": 80
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "package": {
   "headline": "Example headline"
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/safe-upgrade-decision-api-content-repurposing-package-66689e1a/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from x402-safe-upgrade-api.onrender.com](https://www.zero.xyz/host/x402-safe-upgrade-api.onrender.com/llms.txt)
