Artifacts
An artifact is any document uploaded to a dock — PDFs, images, data files. Docyard stores artifacts with content-addressable deduplication and verifies integrity on every retrieval.Deduplication
When you upload an artifact, Docyard computes its SHA-256 hash. If a file with the same hash already exists in the dock, the upload succeeds but no additional storage is consumed. The response includesisDuplicate: true to indicate the match.
This means:
- Upload the same file from multiple systems — stored once
- Re-upload after a failed batch — no wasted storage
- Cost is based on unique content, not upload count
Integrity Verification
Every retrieval verifies the stored artifact’s hash against the original. If the hash doesn’t match — due to corruption, tampering, or storage degradation — the retrieval fails and an audit event is generated.Metadata
Artifacts support arbitrary key-value metadata for downstream routing and filtering:Upload Methods
| Method | Use Case |
|---|---|
| Single upload | Upload one file via multipart form data |
| Batch upload | Upload up to 100 files in a single request |
| Metadata-only | Create artifact records without uploading binary content (for external storage) |