Create audit
POST
workspaceTokenheader
AuthorizationBearer <vat_<opaque-token>>Expiring, hashed workspace token with explicit scopes.
workspace_id*Workspace IdFormat
uuidIdempotency-Key*Idempotency-Keyapplication/json- body
assessment_type?SelectableAssessmentTypeIdWhat the audit runs. security (the default) is the Full assessment: the architecture plus vulnerability, dependency, secret and configuration checks. architecture is the partial Architecture assessment: the model, structural checks, style detection and scenarios, without vulnerability checks.
Default
"security"Value in
"architecture""security"branch_ref?|nullcommit_sha?|nulldeep_review?Deep ReviewDefault
falseprofile_id?|nullprofile_version?|nullrepository_id?|nullsource_scope?upload_id?|nullSuccessful Response
application/json- response
assessment_type?AssessmentTypeIdWhat the audit runs: architecture or security.
Default
"security"Value in
"architecture""security""pull_request"audit_type*AuditTypeValue in
"github""upload"branch_ref?string|nullcommit_sha*string|nullcompleted_at*|nullcoverage_gaps*array<>created_at*Created AtFormat
date-timedecisions?|The audit's decision log; null until its first decision is recorded.
id*IdFormat
uuidorigin?OriginDefault
"manual"origin_ref?string|nullprofile_snapshot?|nullrepository_id*|nullscanner_only*Scanner Onlysource?|nullsource_manifest?source_scope?stages*array<>status*AuditStatusValue in
"queued""running""cancelling""partial""succeeded""failed""cancelled"structural_gate_result?|nulltrigger_reason?string|nullupload_id*|nullworkflow_id*string|nullworkspace_id*Workspace IdFormat
uuidcurl -X POST 'https://api.veriom.ai/v1/workspaces/497f6eca-6276-4993-bfeb-53cbbbba6f08/audits' \ -H 'Idempotency-Key: string' \ -H 'Content-Type: application/json' \ -d '{}'Example Response
{ "assessment_type": "architecture", "audit_type": "github", "branch_ref": "string", "commit_sha": "string", "completed_at": "2019-08-24T14:15:22Z", "coverage_gaps": [ {} ], "created_at": "2019-08-24T14:15:22Z", "decisions": { "assessment_type": "architecture", "base": { "assessment_type": "string", "audit_id": "78c04fa6-cfb4-46a0-9aa5-3681ba4f3897", "commit_sha": "string", "completed_at": "2019-08-24T14:15:22Z" }, "changes": { "changed_areas": [ "string" ], "changed_classes": [ "string" ], "changed_paths": [ "string" ], "complete": true, "unchanged": true }, "items": [ { "explanation": "string", "key": "string", "kind": "stage", "label": "string", "outcome": "reused", "reason": "not_in_assessment_type", "source_audit_id": "5b2a14a5-4417-422a-89c9-69ba885147c2", "units_saved": "string" } ], "totals": { "recomputed": 0, "reused": 0, "skipped": 0, "units_saved": "string" } }, "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "origin": "manual", "origin_ref": "string", "profile_snapshot": {}, "repository_id": "b349ae61-b973-4c6c-a5e0-89183ba99ff3", "scanner_only": true, "source": { "detail": "string", "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "kind": "github", "label": "string", "mcp_ingestion_id": "e483dfbe-1f30-4fa8-8989-0c8f1530c157" }, "source_manifest": {}, "source_scope": { "exclude_paths": [ "string" ], "include_paths": [ "string" ] }, "stages": [ { "completed_at": "2019-08-24T14:15:22Z", "coverage_gaps": [ {} ], "name": "string", "started_at": "2019-08-24T14:15:22Z", "status": "string" } ], "status": "queued", "structural_gate_result": {}, "trigger_reason": "string", "upload_id": "f2ef591b-135b-46fa-a604-3d4fda5bfbfb", "workflow_id": "string", "workspace_id": "0967198e-ec7b-4c6b-b4d3-f71244cadbe9"}