CorfedoCorfedoDocs
ReferenceAPI referenceDependencies

List Dependencies

POST /api/v1/dependencies. Request parameters and response schemas.

POST
/api/v1/dependencies

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
repository*string
query?null|string
ecosystem?null|
package?null|string
version?null|string
directness?null|
vulnerable?boolean
cursor?null|string
limit?integer
Formatint32
Range-2147483648 <= value <= 2147483647

Response Body

OK

  1. response
repository*string
revision?null|string
state*DependencyCoverageState
Value in"notIndexed""disabled""pending""failed""partial""scanned"
error?null|string
gaps*array<>
securityState?null|
dependencies*array<>
nextCursor?null|string
Example Request
curl -X POST 'https://example.com/api/v1/dependencies' \  -H 'Content-Type: application/json' \  -d '{  "repository": "string"}'
Example Response
{  "repository": "string",  "revision": null,  "state": "notIndexed",  "error": null,  "gaps": [    {      "ecosystem": "npm",      "kind": "filesNotParsed",      "files": -2147483648,      "repositories": -2147483648    }  ],  "securityState": null,  "dependencies": [    {      "ecosystem": "npm",      "name": "string",      "canonicalName": "string",      "origin": "installed",      "version": "string",      "referenceKind": null,      "directness": "direct",      "kind": null,      "files": [        {          "path": "string",          "kind": "manifest",          "declaredReason": null,          "uses": [            {              "location": null,              "contexts": [                "string"              ],              "specification": null            }          ]        }      ],      "security": null    }  ],  "nextCursor": null}