Mobile-ID · Evidence-based trust
Records glossaryContact
Trusted Records · Integration & Developer

Registration and declaration

Request declaration for validated/QC packages under file plans and approval authority.

Request schema from OpenAPI

FieldTypeRequiredConstraintsTechnical definition
packageIdstringYes{"minLength": 1, "maxLength": 128}Intake package identifier linked to validation jobs.
recordClassstringYes{"minLength": 1}Classification code under the agreed records scheme.
qcRefstringYes{"minLength": 1, "maxLength": 128}QC decision reference; registration must follow successful validation and authorized review.

Input, scopes and processing

POST /v1/records/declarations · scope records:declare. Tenant/project and correlation contexts are required. POST/PATCH use Idempotency-Key; examples/schemas below are proposed contracts.

States and outputs

REQUESTED → REVIEW_PENDING → APPROVED / REJECTED → DECLARED. Jobs cannot bypass approval.

Exceptions and controls

Missing QC or invalid classifications return 422; insufficient permission returns 403.

HTTP example — proposed contract

Request

POST https://records.example.invalid/v1/records/declarations 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

{
  "packageId": "synthetic-package-001",
  "recordClass": "synthetic-class-001",
  "qcRef": "synthetic-qc-001"
}

Response · 202

{
  "jobId": "synthetic-job-002",
  "status": "REVIEW_PENDING",
  "declarationRef": "synthetic-declaration-001"
}

Required fields and shared controls

ItemProposed rule
scoperecords:declare
requiredpackageId, recordClass, qcRef
tenant / projectToken and context must match; headers alone are insufficient.
idempotencyPOST/PATCH: same key/body returns original result; changed body returns 409; confirm retention window.
errorcode, message, requestId, correlationId, retryable, details; no sensitive data.

Start with a verifiable scope.

Agree record classes, quality criteria, permissions and evidence before scaling.

Plan assessment

Search Trusted Records

Enlarged source image

Illustrative source image; displayed values are not service commitments.