Static Analysis

Submit libraries for vulnerability scanning

post/api/v2/static-analysis-sca/dependencies/scan

Request

  • Base URL
    https://api.datadoghq.com
  • URL
    https://api.datadoghq.com/api/v2/static-analysis-sca/dependencies/scan
  • Auth
    • API key in header DD-API-KEY and API key in header DD-APPLICATION-KEY
    • or OAuth 2
      Authorization code: /oauth2/v1/authorize
      Token URL: /oauth2/v1/token scopes: code_analysis_read

Request body

Example request

{
  "data": {
    "attributes": {
      "commit_hash": "0e9fc8de83eaabecd722e1cd0ed44fb489fe15fc",
      "libraries": [
        {
          "is_direct": true,
          "package_manager": "nuget",
          "purl": "pkg:nuget/Newtonsoft.Json@13.0.1"
        }
      ],
      "resource_name": "my-org/my-repo"
    },
    "type": "mcpscanrequest"
  }
}

Response

Accepted

Example response

{
  "data": {
    "attributes": {
      "job_id": "0190a3d4-1234-7000-8000-000000000000"
    },
    "id": "0190a3d4-1234-7000-8000-000000000000",
    "type": "mcpscanrequestresponse"
  }
}

Changes

No recorded changes to this operation across all 1 revision of this API.