Documentation
  • 👋Welcome to AuditBase!
  • API Access
    • 📖API Reference
    • V 1.1
      • Overview
      • Create Scan
      • Get Scan
      • List Scans
      • Supported Blockchains
      • Objects Definitions
    • V 1.0
      • 👁️Scan API
        • Create File Upload Scans
        • List Scans
        • Create Block Explorer Scans
        • Get Scan
      • 🤖AI Analysis API
  • Web Application
    • 🚀Create a Project
      • File Upload
      • Block Explorer Scanning
      • GitHub Integration
    • ❌Delete a Project
    • 📃Reports
  • Account Management
    • 🧑Sign Up
    • 🧑‍🤝‍🧑Add Team Members
    • 💸Manage Subscriptions
Powered by GitBook
On this page
  1. API Access
  2. V 1.1

List Scans

List all scans

GET /v1.1/scans

List all scans for an account.

Headers

Name
Value

Content-Type

application/json

Authorization

Bearer <token>

Response

Returns array of ScanResultSuccess (without the list of issues) or Error Response

[
  {
    "status": "success",
    "scan_id": "d50d67c6-3b5a-4a9e-86e6-e18a19b1efa2",
    "score": 8.2,
    "num_lines": 721,
    "timestamp": 1726804295
    "severity_counts": {
        "high": 0,
        "medium": 1,
        "low": 2,    
     },
     "issues": [
         {
             "count": 1, 
             "description": 'The division cannot overflow, since both the numerator and the denominator are non-negative.', 
             "id": 'd50d67c6-3b5a-4a9e-86e6-e18a19b1efc1', 
             "identifier": 'G013', 
             "severity": 'gas_optimization', 
             "snippet": '```solidity\nFile: tmp/4dba7fd7-4c36-4683-aac7-e69dfeb11e1f/23309182-e8eb-4236-b00c-0e6e622a56bc.sol\n\n74              uint fee = (amount * taxCollected) / 100;\n\n```\n', 
             "title": '`unchecked {}` can be used on the division of two `uints` in order to save gas'
         }
     ]
}
]
{
   "status": "failure",
   "message": "scan not found, no results_url found"
   "scan_id": ""
}
PreviousGet ScanNextSupported Blockchains

Last updated 7 months ago