List Package Uses
POST /api/v1/packages/uses. Request parameters and response schemas.
POST
corfedoOAuth corfedo:repositories:dependencies:readheader
AuthorizationBearer <token>Corfedo-issued bearer credential for the workspace's API resource, such as https://workspace.corfedo.example/api; the workspace host is the issuer. Public clients identify themselves with a Client ID Metadata Document URL and use PKCE S256; service clients use private_key_jwt. Browser cookies and MCP-resource credentials are not accepted.
Scope: corfedo:repositories:dependencies:read
application/json- body
ecosystem*DependencyEcosystemValue in
"npm""cargo""pypi""maven""nuget""go""rubygems""packagist""pub""hex""hackage""swift""vcpkg""conan""docker""gradle""terraform""githubActions""pulumi"name*stringorigin?null|version?null|stringrevision?null|stringcursor?null|stringlimit?integerFormat
int32Range
-2147483648 <= value <= 2147483647OK
- response
uses*array<>total*integerFormat
int32Range
-2147483648 <= value <= 2147483647revision*stringnextCursor?null|stringcurl -X POST 'https://example.com/api/v1/packages/uses' \ -H 'Content-Type: application/json' \ -d '{ "ecosystem": "npm", "name": "string"}'Example Response
{ "uses": [ { "repository": "string", "commit": null, "version": "string", "origin": "installed", "directness": "direct", "kind": null, "files": [ { "path": "string", "kind": "manifest", "declaredReason": null, "uses": [ { "location": null, "contexts": [ "string" ], "specification": null } ], "findings": [ { "findingId": "string", "state": "open", "advisoryId": "string" } ], "partialOverlaps": -2147483648 } ] } ], "total": -2147483648, "revision": "string", "nextCursor": null}