Submit an audit
submit_auditStart an audit. SPENDS the quoted price from the prepaid balance, refused (nothing charged) if the price is above max_price_cents. Returns an audit id at once; the audit runs in the background (minutes). Poll get_audit about every 30 seconds.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| files | Yes | Source files. path is relative (e.g. src/Vault.sol); imported files must be included too. | |
| product | Yes | deep_review: AI security review on top of the analysis tools (Solidity or DAML). tools: static analysis tools only (Solidity), cheaper and faster. | |
| language | No | Source language: solidity for EVM contracts, daml for Canton/DAML packages. | solidity |
| project_name | Yes | Project or company name shown on the report. | |
| audit_targets | No | Optional: which files to audit and bill for. Default: every file sent. Imports are free. | |
| max_price_cents | Yes | The most you agree to pay, in US cents. Use the price from quote_audit. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | Audit id. | |
| error | Yes | Why the audit failed, if it did. | |
| stage | Yes | Progress detail while running. | |
| status | Yes | failed audits are refunded; expired reports were deleted after the retention window. | |
| product | Yes | deep_review or tools. | |
| language | Yes | solidity or daml. | |
| refunded | Yes | True when the audit failed and the price was returned. | |
| total_loc | Yes | Lines of code audited. | |
| created_at | Yes | ISO 8601 timestamp. | |
| started_at | Yes | ISO 8601 timestamp. | |
| finished_at | Yes | ISO 8601 timestamp. | |
| price_cents | Yes | Price charged, in US cents. | |
| project_name | Yes | Project name shown on the report. | |
| audit_targets | Yes | The files audited. | |
| contract_count | Yes | Number of files audited and billed. | |
| discount_percent | Yes | Account discount applied, 0 if none. | |
| report_available | Yes | True when get_audit_report can return the report. | |
| report_expires_at | Yes | When the report is deleted (ISO 8601). |