Creates an Identity Record holding the person-property relationship for a
consent or access registration. Returns an ir key that must be supplied
as record-metadata.identity-record-ref when creating the linked AccessRecord.
The Identity Record holds:
pii-principal — MPxN, move-in date, and optionally address.expressed-by — whether the data subject or an authorised representative
initiated the registration.principal-verification — identity verification evidence (method, outcome,
reference). Strongly recommended; null if no structured verification was performed.email — stored as a one-way hash for future magic-link re-identification
and lookup. Optional but required if magic-link re-identification is to be used.initiate-passkey-registration — if true, the response includes a
passkey-registration-redirect containing a short-lived URL to
id.central.consent. Redirect the customer to this URL — the register
completes the WebAuthn ceremony on its own origin, stores the public key,
and redirects back with ?dar-passkey-token={token-ref}. Call
GET /identity-records/{ir}/re-identify/{token-ref} once to confirm.
Supply passkey-return-url to control where the customer lands after
the ceremony.Identity Records are scoped to the authenticated Data User and are never
exposed to the unauthenticated GET /access-records/{ak} endpoint used by
Data Providers.
JWT from GET /auth/token. Pass as Authorization: Bearer <token>. Expires after 7200s.
Request body for POST /identity-records. Extends the core IdentityRecord fields with email, initiate-passkey-registration, and passkey-return-url.
Identifies the customer and their property. MPxN is the primary identifier; personal name and email are excluded to minimise PII held centrally.
Who expressed consent or initiated the access registration — the data subject themselves, or an authorised representative.
data-subject, authorised-representative How the Controller verified the identity of the principal. Strongly recommended. Null if no structured verification was performed.
Customer email address. Stored as a one-way hash — never returned in plaintext in any response. Required if magic-link re-identification is to be used. Also enables email-based lookup via GET /identity-records?email=....
"customer@example.com"
If true, the register generates a passkey registration session and returns a passkey-registration-redirect. Redirect the customer to the supplied URL; the register completes the WebAuthn ceremony on id.central.consent and redirects back to passkey-return-url with ?dar-passkey-token={token-ref} on success.
Required when initiate-passkey-registration is true. The URL the register redirects the customer to after the passkey ceremony completes. Must exactly match a URL pre-registered for the Data User's DUID. Ignored if initiate-passkey-registration is false or omitted.
"https://app.bright-energy.com/onboard/passkey-done"
Identity record created successfully. If initiate-passkey-registration
was true, passkey-registration-redirect is populated — redirect the
customer to redirect-url. The register completes the WebAuthn ceremony
on id.central.consent and sends the customer back to return-url with
?dar-passkey-token={token-ref}. Call
GET /identity-records/{ir}/re-identify/{token-ref} once to confirm.
Unique opaque identifier for an Identity Record, issued by the register on creation. Referenced from record-metadata.identity-record-ref on an AccessRecord to link the two resources.
^ir_[0-9a-f]{24}$"ir_a3c5e7f9b1d3a3c5e7f9b1d3"
Populated when initiate-passkey-registration was true. Redirect the customer to redirect-url — the register runs the WebAuthn registration ceremony on id.central.consent and returns them to return-url with ?dar-passkey-token={token-ref}. Call GET /identity-records/{ir}/re-identify/{token-ref} once to confirm. Null otherwise.