SPDX license compatibility checking and copyleft conflict detection via x402 micropayment on Base.
What it does
The `/api/dev/license-check` endpoint is part of DeFi Shield, a suite of 69 paid API endpoints providing security intelligence to autonomous AI agents. This specific endpoint falls under the Developer Security category and performs SPDX license compatibility analysis and copyleft conflict detection. It costs $0.05 per call, paid in USDC via the x402 protocol on Base.
DeFi Shield endpoints follow a consistent pattern: agents send a POST request with an x402 payment header containing a USDC payment token. The x402 facilitator verifies payment on Base, the endpoint processes the request and returns JSON, and payment settles only on a successful response. Each endpoint also supports a free GET request for discovery, returning endpoint metadata and an `llm_usage_prompt` describing how to use it.
The license-check endpoint is designed for AI agents and automated pipelines that need to verify software license compatibility before incorporating dependencies. It checks SPDX identifiers and detects copyleft conflicts. No OpenAPI schema or detailed request/response documentation was found, so the exact input parameters and response structure must be inferred from the endpoint's description and the platform's general patterns. The platform provides discovery via `/.well-known/agent-card.json` and a health endpoint at `/api/health` listing all endpoints with pricing.
Capabilities
Use cases
- —Automated dependency license auditing before merging pull requests
- —AI agents verifying license compatibility of npm packages before recommending them
- —CI/CD pipelines checking for copyleft license conflicts in project dependencies
- —Autonomous code review agents flagging license incompatibilities
- —Supply chain security tools validating license compliance
Fit
Best for
- —AI agents that need programmatic license compatibility checks
- —Automated pipelines requiring per-call pay-as-you-go license auditing
- —Developers building autonomous code review or dependency management tools
Not for
- —Bulk license scanning of entire repositories (per-call pricing at $0.05 adds up)
- —Human-interactive license management dashboards
- —Projects needing free or self-hosted license checking tools
Quick start
# Free discovery (GET returns endpoint metadata)
curl https://defi-shield-hazel.vercel.app/api/dev/license-check
# Paid request (requires x402 payment header)
curl -X POST https://defi-shield-hazel.vercel.app/api/dev/license-check \
-H "Content-Type: application/json" \
-H "X-PAYMENT: <x402-payment-token>" \
-d '{"license": "MIT", "target": "GPL-3.0"}'Example
Request
{
"target": "GPL-3.0",
"license": "MIT"
}Endpoint
Quality
The endpoint is live (returns 402 on POST) and the landing page provides clear pricing ($0.05/call in USDC on Base) and a brief description. However, no OpenAPI schema, detailed docs, or example responses were found. The request body format is inferred from the endpoint description and platform patterns, not documented. The x402 challenge object was empty, providing no payment details.
Warnings
- —No OpenAPI or JSON schema available for request/response validation
- —x402 challenge returned empty object — no payment parameters (amount, token, network) were captured in the probe
- —No dedicated documentation page exists (docs page returns 404)
- —Request and response formats are inferred, not documented — actual parameters may differ
Citations
- —DeFi Shield offers 69 paid API endpoints for security intelligence to AI agents, paid via USDC on Base using x402 protocolhttps://defi-shield-hazel.vercel.app
- —The /api/dev/license-check endpoint performs SPDX license compatibility and copyleft conflict detection at $0.05 per callhttps://defi-shield-hazel.vercel.app
- —Each endpoint supports free GET discovery with llm_usage_prompt and paid POST requests with x402 payment headerhttps://defi-shield-hazel.vercel.app
- —The endpoint returned HTTP 402 on POST, confirming it is livehttps://defi-shield-hazel.vercel.app/api/dev/license-check