# ShieldAPI Package Supply Chain Pre-Flight Check

> ShieldAPI Package Supply Chain Pre-Flight Check is a paid API for AI agents from shield.vainplex.dev, paid per call via x402, $0.01/call, status unknown (last checked 2026-09-15).

Checks a software package (by name, version, and ecosystem) for supply chain risks and returns a safety score and allow/block status

## Facts

- Endpoint: GET https://shield.vainplex.dev/api/cdp/check/package
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/shield-vainplex-dev-cd1bfc5a
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_FD-bPTQqBLNt3Wf45Y0pu

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 shield-vainplex-dev-cd1bfc5a
```

Example prompt: Run a supply chain pre-flight check on the npm package lodash version 4.17.21 and tell me if it's safe to install — give me the safety score and whether it's allowed or blocked.

## When to prefer this

Use this endpoint when you need a fast, automated pre-flight safety check on a specific package before installing or deploying it in a software project, especially in CI/CD pipelines or agentic workflows where dependency vetting is required. Prefer this over generic vulnerability scanners when you need a binary ALLOW/BLOCK decision with a risk score for npm, pypi, or other ecosystems.

## Known failure modes

- Unknown or unrecognized ecosystem returns an error
- Package not found in the ecosystem registry
- Missing required query parameters (ecosystem, name, version) returns a 400 error
- Payment failure via x402 protocol results in 402 response
- Network timeout for unknown or newly published packages

## How this service works

ShieldAPI - x402 security preflight before agents install or run npm/PyPI dependencies

## Output

Returns a JSON object with a numeric safety score (0-100), a status string ('ALLOW' or 'BLOCK'), and an array of flags indicating any detected supply chain risks or malicious indicators for the specified package.

## Example request

```json
{
 "input": {
  "type": "http",
  "method": "GET",
  "queryParams": {
   "name": "express",
   "version": "4.18.2",
   "ecosystem": "npm"
  }
 }
}
```

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "GET"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "required": [
      "ecosystem",
      "name",
      "version"
     ],
     "properties": {
      "name": {
       "type": "string",
       "description": "Package name"
      },
      "version": {
       "type": "string",
       "description": "Package version"
      },
      "ecosystem": {
       "type": "string",
       "description": "Package ecosystem (e.g., npm, pypi)"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/shield-vainplex-dev-cd1bfc5a/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from shield.vainplex.dev](https://www.zero.xyz/host/shield.vainplex.dev/llms.txt)
