{"uid":"cap_b17akYq3wJ-P76UB8B2kC","slug":"safe-upgrade-decision-api-license-check-9e9e96ec","name":"Safe Upgrade Decision API – License Check","description":"Evidence-backed npm package upgrade decisions for coding agents.","url":"https://x402-safe-upgrade-api.onrender.com/v1/license-check","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"packages":{"type":"array","items":{"type":"string"},"description":"Alternatively, a list of package names."},"dependencies":{"type":"object","description":"Package-name to version map.","additionalProperties":{"type":"string"}}}},"responseSchema":{"type":"json","example":{"summary":{"passed":false,"checked":2,"flagged":1}}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.03","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.03/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.03","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.03","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_2Hf7df8fp5F1P8Po7ydP_","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.03","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Checks npm packages against license compliance rules and returns evidence-backed pass/fail decisions for each package.","exampleAgentPrompt":"Check the licenses for lodash, axios, and express in my project — flag any that might cause compliance issues before I upgrade them.","exampleUseCases":[{"title":"Pre-upgrade license compliance check","prompt":"Before I upgrade my dependencies, can you check whether lodash@4.17.21, axios@1.6.0, and react@18.2.0 have any license issues I should know about?"},{"title":"Open source project dependency audit","prompt":"I'm releasing my project as MIT open source — can you scan these packages for me and flag anything with GPL or non-commercial licenses: express, moment, and uuid?"},{"title":"CI gate for new dependency PR","prompt":"A PR just added 'left-pad' and 'chalk' as dependencies — can you check their licenses and tell me if they're safe to include in our commercial product?"}],"resultDescription":"A JSON object containing a summary with a boolean 'passed' field, the total number of packages checked, and the count of flagged packages. Flagged packages are those with licenses that may pose compliance risks.","failureModes":["Empty or missing 'packages' array and 'dependencies' object returns a validation error","Unknown or unpublished package names may not resolve license data","Payment failure via x402 protocol results in 402 response before processing","Malformed version strings in the dependencies map may cause lookup failures","Service may return incomplete data for very new or scoped private packages"],"whenToPreferThis":"Use this endpoint when a coding agent needs to validate npm package license compliance before recommending or executing a dependency upgrade, especially in commercial or open-source projects where license compatibility matters. It's purpose-built for npm ecosystems and returns structured pass/fail evidence suitable for automated CI/CD gates or agent-driven upgrade workflows.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-13T18:44:32.649Z","isFirstParty":false}