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

Access requests

Request expiring, purpose-bound access; grants follow authorized approval.

Request schema from OpenAPI

FieldTypeRequiredConstraintsTechnical definition
recordIdstringYes{"minLength": 1, "maxLength": 128}Registered record identifier; token scope alone does not confer object access.
purposestringYes{"minLength": 1}Purpose of access to evaluate against object-level authority.
expiresAtstringYes{"minLength": 1, "format": "date-time"}UTC expiry of the proposed access request, not an issued grant.

Input, scopes and processing

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

States and outputs

REQUESTED → APPROVED / DENIED → ACTIVE → EXPIRED / REVOKED.

Exceptions and controls

Invalid purpose/expiry returns 422; inappropriate request authority returns 403; hold/access policy may block.

HTTP example — proposed contract

Request

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

{
  "recordId": "synthetic-record-001",
  "purpose": "synthetic audit",
  "expiresAt": "2026-10-08T00:00:00Z"
}

Response · 202

{
  "requestId": "synthetic-access-001",
  "status": "APPROVAL_PENDING"
}

Required fields and shared controls

ItemProposed rule
scopeaccess:request
requiredrecordId, purpose, expiresAt
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.