The APIs your organisation calls to start and complete each CDR consent authorization.
Use the Authorization Server APIs to start and complete the consumer's consent authorization journey under the Consumer Data Right (CDR).
Ozone hosts these APIs, and your organisation calls them. You build the consumer journey for authentication (verifying identity), account selection where applicable, and approval of data sharing. Ozone handles the authorization protocol requirements of the CDR security profile and tracks the journey as an interaction.
In this journey, the accredited data recipient (ADR) is the organisation requesting access to the consumer's data.
This page explains which calls your integration supports and how they fit into consent authorization. Use the endpoint references for parameters, request bodies and response schemas.
Authorization Server endpoints
Your organisation calls the following Authorization Server (AS) endpoints hosted by Ozone.
| AS endpoint | Method and path | Requirement | Purpose |
|---|---|---|---|
| Start authorization | GET /auth | Mandatory | Validate the authorization request received from the ADR and start an interaction. |
| Confirm authorization | POST /auth/{interactionId}/doConfirm | Mandatory | Complete the interaction after the consumer has approved the consent and your application has updated it. |
| Fail authorization | POST /auth/{interactionId}/doFail | Mandatory | End the interaction with an error, for example when the consumer declines or authentication fails. |
Support all three operations. After
GET /authstarts an interaction successfully, usedoConfirmfor a successful journey ordoFailfor an unsuccessful journey—not both.Do not call
doFailwhen the initialGET /authrequest returns302or400. Handle those responses as described below.
How the calls fit into the flow
The Data sharing diagram shows the participating systems and API directions.
For a successful authorization journey:
- Start the interaction. When the consumer arrives at your authorization URL, call
GET /authwith the authorization request parameters received from the ADR. - Authenticate the consumer and obtain authorization. Verify the consumer's identity and obtain approval for data sharing. For account-based access, ask the consumer to select the applicable accounts.
- Update the consent. Use
PATCH /consents/{consentId}to record the authorization outcome, consumer identifier and selected internal account identifiers for account-based access. Follow the consent update requirements. - Confirm the interaction. Call
POST /auth/{interactionId}/doConfirm. - Redirect the consumer. Send the consumer to the URL returned by Ozone in the
Locationresponse header.
If an interaction has started and the consumer declines or the journey fails, use doFail instead of doConfirm. Where rejection must be recorded, update the consent before calling doFail, as described below.
Start authorization – GET /auth
GET /authCall this endpoint when your application receives an authorization request from an ADR.
Pass through the authorization request parameters without changing their values. See Start authorization for the supported parameters and response contract.
| Response | Meaning | What your application does |
|---|---|---|
200 | The request has been accepted and an interaction has started. | Retain interaction.interactionId and the consent identifiers in interaction.consentIdsList, then continue the consumer journey. |
302 | The request could not be accepted, but Ozone can return the error through a validated redirect URI. | Redirect the consumer to the URL in the Location header without changing it. Do not call doFail for this response. |
400 | The request could not be accepted and Ozone has not provided a safe redirect. | Display an error in your application and end the journey. Do not construct a redirect using the incoming request parameters. |
Use interaction.interactionId when calling doConfirm or doFail, and the identifiers in interaction.consentIdsList when reading or updating consents. The singular interaction.consentId field is deprecated.
These are the principal authorization outcomes. Refer to the endpoint reference for the complete response definitions.
Confirm authorization – POST /auth/{interactionId}/doConfirm
POST /auth/{interactionId}/doConfirmCall this endpoint after:
- The consumer has authenticated.
- The consumer has approved data sharing and, for account-based access, selected the applicable accounts.
- Your application has successfully updated the consent with the required authorization information.
Use the interaction ID returned by GET /auth.
The endpoint returns 302 with the ADR's redirect URL in the Location header. This URL carries the authorization response. Redirect the consumer to it without changing its parameters.
See Confirm authorization for the form-encoded request body, optional ID token claims and token issuance controls.
Fail authorization – POST /auth/{interactionId}/doFail
POST /auth/{interactionId}/doFailCall this endpoint when an existing interaction ends without successful authorization – for example, when the consumer declines, cancels or fails authentication, or no eligible accounts are available.
Use the interaction ID returned by GET /auth. The form-encoded body can include an OAuth 2.0 error and error_description. See Fail authorization for the supported parameters and response behaviour.
By default, Ozone returns 302 with the ADR's redirect URL in the Location header, carrying the authorization error. Redirect the consumer to that URL without changing it.
To receive the error directly as HTTP 400 instead of a redirect response, set redirect=false.
Update the consent separately
Calling doFail ends the authorization interaction; it does not update the consent status in the Consent Manager.
Where the consent must be marked as Rejected, update it using PATCH /consents/{consentId} before calling doFail. Set consentBody.data.status to Rejected and include the required consentBody.data.abandonedByStage.
See Consents for the applicable update requirements and supported values.
Related resources
- CDR Overview – API responsibilities and how consent authorization connects to data sharing.
- Consents – retrieve and update the consent during authorization.
- Data sharing diagram – the participating systems and data-sharing flow.
See Consent flow development for the screen flow and implementation steps.