Mobile-ID · Tin cậy có bằng chứng
Thuật ngữ hồ sơLiên hệ
Trusted Records · Tích hợp & Nhà phát triển

Tiếp nhận gói hồ sơ

Gửi manifest để kiểm tra và tạo job bất đồng bộ; ví dụ chỉ dùng fileRef tổng hợp, không tải tệp thật.

Request schema từ OpenAPI

TrườngKiểuBắt buộcRàng buộcĐịnh nghĩa kỹ thuật
sourceRefstringCó{"minLength": 1, "maxLength": 128}Synthetic source identifier; custody reference in a real contract.
schemaVersionstringCó{"minLength": 1}Metadata schema version agreed for admission.
manifestarrayCó{"minItems": 1}File references and expected SHA-256 values; source bytes are not uploaded by the website.

Đầu vào, scope và xử lý

POST /v1/ingest-packages · scope ingest:write. Ngữ cảnh tenant/dự án và correlation bắt buộc. POST/PATCH dùng Idempotency-Key; ví dụ và schema bên dưới là contract đề xuất.

Trạng thái và đầu ra

RECEIVED → VALIDATING → ACCEPTED / QUARANTINED. Được tiếp nhận chưa đồng nghĩa declared.

Ngoại lệ và kiểm soát

Manifest thiếu, checksum/schema không hợp lệ trả 422; key trùng body khác trả 409.

Ví dụ HTTP — contract đề xuất

Request

POST https://records.example.invalid/v1/ingest-packages HTTP/1.1
Authorization: Bearer <example-token>
X-Tenant-Id: synthetic-tenant-001
X-Project-Id: synthetic-project-001
X-Correlation-Id: synthetic-correlation-001
Idempotency-Key: synthetic-key-001
Content-Type: application/json

{
  "sourceRef": "synthetic-source-001",
  "schemaVersion": "1.0",
  "manifest": [
    {
      "fileRef": "synthetic-file-001",
      "sha256": "0000000000000000000000000000000000000000000000000000000000000000"
    }
  ]
}

Response · 202

{
  "jobId": "synthetic-job-001",
  "status": "VALIDATING",
  "packageId": "synthetic-package-001"
}

Trường bắt buộc và kiểm soát chung

MụcQuy tắc đề xuất
scopeingest:write
requiredsourceRef, schemaVersion, manifest
tenant / projectToken và context phải khớp; không chỉ tin header.
idempotencyPOST/PATCH: cùng key + body trả kết quả cũ; body khác trả 409; window cần chốt.
errorcode, message, requestId, correlationId, retryable, details; không chứa dữ liệu nhạy cảm.

Bắt đầu bằng một phạm vi kiểm tra được.

Chốt loại hồ sơ, tiêu chí chất lượng, quyền và bộ bằng chứng trước khi mở rộng.

Đăng ký khảo sát

Tìm trong Trusted Records

Ảnh nguồn phóng to

Ảnh nguồn minh họa; các giá trị trong ảnh không phải cam kết dịch vụ.