# ShieldAPI Supply Chain Pre-Flight Check

> ShieldAPI 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 against supply chain security signals and returns a risk score and allow/block recommendation

## 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-515ef930
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_InUvEuF_uv3Bq9Malj8zT

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-515ef930
```

Example prompt: Can you run a supply chain pre-flight check on the npm package lodash version 4.17.21 to make sure it's safe to install?

## When to prefer this

Use this endpoint when you need a quick, automated go/no-go decision on a specific package version before installation or CI/CD pipeline execution. Ideal for agent-driven dependency audits, automated PR checks, or pre-deployment gates. Prefer this over full-scan endpoints when you only need package supply chain signals rather than a combined multi-vector security assessment.

## Known failure modes

- Unknown package name or version returns low score or error
- Unsupported ecosystem value returns validation error
- Missing required query params (ecosystem, name, version) returns 400 Bad Request
- Payment not included or rejected returns 402 Payment Required
- Network timeout on upstream security data sources returns 503

## How this service works

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

## Output

Returns a JSON object with a numeric risk score (0-100, higher is safer), a status field ('ALLOW' or 'BLOCK'), and an array of flags describing any detected security issues. A score of 100 with empty flags and status ALLOW means the package passed all checks.

## 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-515ef930/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)
