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

Record search

Query authorized metadata/full text. Cursors are opaque; proposed pageSize range is 1–100.

Request schema from OpenAPI

FieldTypeRequiredConstraintsTechnical definition
querystringYes{"minLength": 1}Synthetic search expression; production query grammar is unverified.
pageSizeintegerYes{"minimum": 1, "maximum": 100}Requested page size, at most 100 in this proposal.
cursor['string', 'null']No{}Opaque pagination cursor or null for the first page.

Input, scopes and processing

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

States and outputs

REQUEST → AUTHORIZED QUERY → FILTERED RESULT. Every viewer/download rechecks permission.

Exceptions and controls

Invalid query/pageSize returns 422; mismatched context/permissions return 403; errors must not disclose out-of-scope records.

HTTP example — proposed contract

Request

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

{
  "query": "synthetic",
  "pageSize": 10,
  "cursor": null
}

Response · 200

{
  "items": [
    {
      "recordId": "synthetic-record-001",
      "title": "Synthetic record"
    }
  ],
  "nextCursor": null
}

Required fields and shared controls

ItemProposed rule
scoperecords:read
requiredquery, pageSize
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.