Skip to content

Example: Importing a Scan via curl

A complete end-to-end example:

# 1. Upload a scan
curl -X POST https://api.trustsource.io/v2/core/scans \
  -H "x-apikey: YOUR_KEY" \
  -H "Content-Type: application/json" \
  -d @scan-result.json

# 2. Check scan status
curl -H "x-apikey: YOUR_KEY" \
  https://api.trustsource.io/v2/core/scans/SCAN_ID

# 3. Get module components
curl -H "x-apikey: YOUR_KEY" \
  https://api.trustsource.io/v2/core/modules/MODULE_ID/partsList