What a Portal Operator Can Do
A registered portal account can callGET /meter-points/{mpxn}/access-records for any MPxN — returning all Data Users’ records, discovered access, and record states — provided the customer has actively confirmed their identity via a re-identification challenge.
A portal operator can:
- Query any meter point on behalf of a confirmed customer
- Revoke consent-based Access Records on a customer’s behalf (the Withdraw action). The register fires a
consent.withdrawalwebhook to the Data User immediately.
- Register or update Access Records — those actions belong to Data Users
- Query a meter point without a confirmed re-identification token
- See PII from Identity Records — only the access summary is returned
Getting Registered
Contact contact@auth.energy to register a portal account. You will receive:- An
account-idandsecret-key - A
duididentifying your organisation - The
portalrole — which enables cross-MPxN queries
display-name will be shown to customers during the re-identification challenge, so use your organisation’s public-facing name.
The Full Flow
Step-by-Step Implementation
1. Authenticate
Exchange your credentials for a bearer token:2. Check Identity Record Existence
Before initiating re-identification, check whether an Identity Record exists for the customer’s MPxN and which methods are available:exists is false, the customer has not yet registered with any Data User. You may still display publicly available information, but no records will be returned from the meter-point query.
3. Initiate Re-identification
Initiate the re-identification challenge. Choose the best available method — preferpasskey-assert if available, fall back to magic-link:
display-name. The customer sees:
“Citizens Advice is requesting access to confirm your identity with the Central Access Register.”Response:
4. Poll for Confirmation
Poll until the customer confirms or the token expires:5. Query the Meter Point
Once confirmed, use thetoken-ref as a query parameter:
ListAccessRecordsResponse — all Data Users’ records, discovered access, all states.
Displaying the Results
Theaccess-records array contains AccessRecordSummary objects. Key fields for a transparency view:
Legal basis plain-language labels:
Handling the DISCOVERED State
Records withstate: DISCOVERED represent organisations the DCC has detected accessing meter data without having registered with the DAR. These are not Access Records — they have no legal basis on file.
Display these prominently. The discovered-access.organisation-reference field contains the SEC Other User reference (e.g. SEC-OU-00429) which customers can use to report concerns to the Smart Energy Code Administrator.
Re-identification and Customer Trust
The re-identification flow is designed so the customer always knows who is asking for access to their data:- Magic link — the email is sent from
no-reply@central.consentand names your organisation in the body - Passkey — the challenge page at
id.central.consentdisplays yourdisplay-namebefore the biometric prompt
display-name comes from the registered account profile. It cannot be spoofed by the caller — the register reads it from your account record internally.
Security Constraints
- A
reidentification-tokenis single-use — it is consumed whenGET /meter-points/{mpxn}/access-recordsis called. A new token is required for each session. - Tokens expire one hour after issuance. If the customer takes longer than an hour to confirm, restart the flow.
- A portal account cannot query a meter point without a valid confirmed token. Bulk or automated queries without customer presence are not possible.
- Portal accounts cannot register, modify, or revoke Access Records. These actions are reserved for
data_useraccounts.
Demo Credentials
The reference implementation includes a pre-registered portal account:
The demo portal at
http://localhost:5001/portal uses this account by default. Re-identification is stubbed — tokens auto-confirm immediately without dispatching real emails or passkey challenges.
