When to use shared records
Use a shared record when:- An external partner or downstream system needs to retrieve some fields from a specific user record, but should not be granted a long-lived token.
- A cross-system reference is genuinely needed (e.g., sharing a customer between two business systems for a specific workflow), and you want the reference to expire automatically.
- You want to avoid creating a deterministic, long-lived token that could become a correlation key across security domains.
UserGet directly — shared records are for the cross-boundary or time-limited case.
How they work
- The caller invokes
SharedRecordCreate, identifying the user byemail/phone/login/token/customand specifying which fields to share, an expiration (finaltime), and optionally apartnertag for the audit trail. - Databunker Pro returns a
recorduuid— a fresh UUID that addresses this specific shared view. - The caller distributes the
recorduuidto the consumer (downstream system, partner, etc.). - The consumer calls
SharedRecordGetwith therecorduuidto retrieve the data, until expiration. - After expiration, the
recorduuidno longer resolves — the share ends automatically with no clean-up step required.
API: Create a shared record
Request fields
Response
API: Retrieve a shared record
Request fields
Response
fields parameter at creation time are returned. The consumer never sees the full record.
Why shared records, not long-lived tokens?
Reusing the same deterministic token across multiple systems and partners turns the token into a universal correlation key — if it leaks once, an attacker can correlate everything. Shared records avoid this in three ways:- Time-limited. A
finaltimeis mandatory in practice; expired shares cannot be reused. - Field-limited. The
fieldsparameter is data-minimisation by construction — partners receive only what they need. - Audit-attributable. The
partnertag plus the audit trail attribute every retrieval to a named consumer.
Related
- PII Vault — how regular user tokens work.
- Sub-accounts — multi-tenant patterns that limit deterministic-token reuse across security domains.
- Access control — CRBAC policies and
request_metadata.