CorfedoCorfedoDocs
ReferenceAPI referenceDependencies

List Package Uses

POST /api/v1/packages/uses. Request parameters and response schemas.

POST
/api/v1/packages/uses

Authorization

corfedoOAuth corfedo:repositories:dependencies:read
headerAuthorizationBearer <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

Request Body

application/json
  1. body
ecosystem*DependencyEcosystem
Value in"npm""cargo""pypi""maven""nuget""go""rubygems""packagist""pub""hex""hackage""swift""vcpkg""conan""docker""gradle""terraform""githubActions""pulumi"
name*string
origin?null|
version?null|string
revision?null|string
cursor?null|string
limit?integer
Formatint32
Range-2147483648 <= value <= 2147483647

Response Body

OK

  1. response
uses*array<>
total*integer
Formatint32
Range-2147483648 <= value <= 2147483647
revision*string
nextCursor?null|string
Example Request
curl -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}