Developer integration

A file scan API gives applications one task model and one decision contract.

Applications should not maintain vendor-specific antivirus code. QINGJIAN organizes file submission, task state, normalized verdicts, evidence summaries and webhook callbacks into a reusable integration surface.

What a production scanning interface requires

A production API must handle more than “upload and scan.” It needs idempotency, authorization, large files, retries, timeouts, duplicate callbacks and auditability. Explicit states let applications behave predictably during failure and delay.

Task lifecycle

Every submission receives a unique task ID with defined state transitions.

Idempotency

Business requests can retry safely without duplicating tasks or actions.

Webhooks

Signed callbacks use timestamps and replay protection to verify origin.

Observability

Request IDs, workers, latency, engine state and final decisions remain correlated.

Every step from ingestion to action has an explicit state.

Inspection becomes an observable, retryable and auditable task chain instead of an invisible command.

01

Create

Submit a file reference, source, policy and optional SHA-256.

02

Execute

The gateway authorizes the request and schedules workers.

03

Observe

Poll the task or wait for a signed webhook.

04

Act

Use the standard verdict to release, quarantine, retry or review.

Recommended API boundaries

API designs should not log sensitive file contents or long-lived storage credentials. Authentication, tenant isolation, request size, rate limits, webhook signatures and result retention all belong in the deployment plan.

Object reference

Keep files in controlled storage and pass a time-limited readable reference.

Streaming upload

Send files directly into gateway quarantine at ingestion.

Batch tasks

Create tasks from a manifest with concurrency and priority controls.

Event callbacks

Notify applications on completion, failure, timeout or review.

DESIGN BOUNDARY

API designs should not log sensitive file contents or long-lived storage credentials. Authentication, tenant isolation, request size, rate limits, webhook signatures and result retention all belong in the deployment plan.

Frequently asked questions

Should the API return a verdict immediately?

Only predictable small-file workflows suit synchronous responses. A general API should return a task ID and deliver the final result by query or webhook.

Must files traverse the public internet?

No. The gateway can run inside the enterprise network and read controlled shares or internal object storage.

How are forged webhooks prevented?

Use secret signatures, timestamps, unique event IDs, HTTPS and a replay window, with idempotent handling by the receiver.

Tell us how files move through your environment.

Share your storage model, daily volume, existing security products and workflow. We can start with a focused assessment.

teemo.dcx@gmail.com
Send email