> For the complete documentation index, see [llms.txt](https://developer.harness.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://developer.harness.io/api-reference/security-testing-agent-apis/security-testing-orchestration/qwiet-ingestion.md).

# Qwiet Ingestion

Internal Qwiet scan-status callback API

## Report terminal Qwiet scan status

> Record a terminal Qwiet scan and publish it for downstream ingestion

```json
{"openapi":"3.0.3","info":{"title":"Harness Security Test Orchestration API","version":"1.0.0"},"tags":[{"name":"QwietIngestion","description":"Internal Qwiet scan-status callback API"}],"servers":[{"url":"https://app.harness.io/gateway/sto"},{"url":"http://127.0.0.1:4000"}],"security":[{"jwt_header_Authorization":["sto_scan_edit"]}],"components":{"securitySchemes":{"jwt_header_Authorization":{"type":"http","scheme":"bearer"}},"schemas":{"ReportScanStatusResponseBody":{"type":"object","properties":{"duplicate":{"type":"boolean"},"event_published":{"type":"boolean"}},"required":["event_published","duplicate"]},"NotFound":{"type":"object","properties":{"message":{"type":"string"},"status":{"type":"integer","default":404,"format":"int64"}},"required":["message"]}}},"paths":{"/api/v1/qwiet/scan-status":{"post":{"description":"Record a terminal Qwiet scan and publish it for downstream ingestion","operationId":"QwietIngestion#ReportScanStatus","parameters":[{"allowEmptyValue":true,"description":"Harness Account ID","in":"query","name":"accountId","required":true,"schema":{"description":"Harness Account ID","pattern":"^[a-zA-Z0-9_-]{22}$","type":"string"}},{"allowEmptyValue":true,"description":"Harness Organization ID","in":"query","name":"orgId","required":true,"schema":{"description":"Harness Organization ID","maxLength":128,"pattern":"^[A-Za-z_][A-Za-z0-9_]*$","type":"string"}},{"allowEmptyValue":true,"description":"Harness Project ID","in":"query","name":"projectId","required":true,"schema":{"description":"Harness Project ID","maxLength":128,"pattern":"^[A-Za-z_][A-Za-z0-9_]*$","type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"properties":{"external_scan_id":{"description":"Qwiet polyglot scan id for a compound scan or project scan id for a non-compound scan","format":"int64","minimum":1,"type":"integer"},"external_target_name":{"description":"Exact Qwiet compound name or project id used by APIs with compound-to-project fallback","maxLength":256,"minLength":1,"type":"string"},"scan_completed_at":{"format":"date-time","type":"string"},"scan_status":{"enum":["Success","Partial","Fail"],"type":"string"},"scan_types":{"description":"Scan types already recorded for this scan. Qwiet sends sast, sca, secrets, container_sca, and ai_risk; other names are ignored for product selection","items":{"minLength":1,"type":"string"},"minItems":1,"type":"array"},"source":{"description":"Client that started the scan, e.g. cli or ide","maxLength":32,"minLength":1,"type":"string"},"target_name":{"maxLength":256,"minLength":1,"type":"string"},"target_variant":{"maxLength":256,"minLength":1,"type":"string"},"user_id":{"description":"Harness user id of the user who ran the scan, read from the scan tags on the Qwiet side","maxLength":128,"minLength":1,"type":"string"}},"type":"object"}}},"required":true},"responses":{"202":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReportScanStatusResponseBody"}}},"description":"Accepted response."},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFound"}}},"description":"BadRequest: Bad Request response."},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFound"}}},"description":"Unauthorized: Unauthorized response."},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFound"}}},"description":"Forbidden: Forbidden response."},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFound"}}},"description":"TooManyRequests: Too Many Requests response."},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFound"}}},"description":"InternalServerError: Internal Server Error response."}},"summary":"Report terminal Qwiet scan status","tags":["QwietIngestion"]}}}}
```
