APIs your organisation calls to read and withdraw all the consents in a CDR arrangement.
Use the Consent groups APIs to retrieve consent records and withdraw an entire sharing arrangement under the Consumer Data Right (CDR).
Ozone hosts these APIs, and your organisation calls them from your consumer dashboard or back-office tools.
This page explains which calls your integration supports and how to use them for arrangement-level consent management. Use the endpoint references for parameters, request bodies and response schemas.
Consent groups and sharing arrangements
The consent group ID, consentGroupId, corresponds to the CDR sharing arrangement identifier, cdr_arrangement_id.
Each individual consent record has its own consentId. A group can contain multiple records, including previous consents replaced when the sharing arrangement was amended.
Use the group identifier for arrangement-level operations and the individual consent identifier for operations on a specific consent record.
Consent Manager endpoints
Your organisation calls the following Consent Manager (CM) endpoints hosted by Ozone.
| CM endpoint | Method and path | Requirement | Purpose |
|---|---|---|---|
| Get consents in a consent group | GET /consent-groups/{consentGroupId}/consents | Mandatory | Retrieve the consent records belonging to an arrangement, for example to display the current and earlier consents of an amended arrangement in your dashboard. |
| Revoke consents in a consent group | POST /consent-groups/{consentGroupId}/consents/action/revoke | Mandatory | Withdraw an entire sharing arrangement, for example when the consumer withdraws it on your dashboard. |
Use the group revoke endpoint when withdrawing an entire sharing arrangement. It applies revocation to the consents belonging to that arrangement, rather than only one consent record.
Read consents in an arrangement
- Call
GET /consent-groups/{consentGroupId}/consentsusing the arrangement's consent group identifier. - Filter by
statusto select consent records in a particular state, or byconsentTypeto select a consent type. A filtered response contains only matching records. If you need both previous and current consents, do not use a status filter that excludes the records you need. - Use
pageto select a page andpageSizeto control the number of results per page. Page numbering starts at 1. Retrieve subsequent pages rather than assuming the first page contains every consent in the group.
A successful request returns HTTP 200 with consent records in the data array. If no records match, the array is empty.
This endpoint returns consent records belonging to the arrangement. To inspect changes to an individual record, use the consent audit endpoint described on Consents.
Revoke an arrangement
- Identify the arrangement being withdrawn using its
consentGroupId. - Set
revokedByto identify who initiated the withdrawal:CONSUMER– the consumer withdrew the arrangement through your consumer dashboard.COLLEAGUE– a member of your staff withdrew the arrangement on the consumer's behalf.
- If you include
revokedByPsu, populate itsuserIdproperty with the consumer identifier as a string. - Call
POST /consent-groups/{consentGroupId}/consents/action/revokewith these values.
The operation applies revocation to the consents in the group. A successful request returns HTTP 204 without a response body.
Handle an unsuccessful response
Consent records are updated sequentially. Do not assume that an unsuccessful response means no records were changed.
If the operation fails, retrieve the group's consent records to check their current statuses before deciding how to recover. Do not report the arrangement as successfully withdrawn solely because one consent record has been revoked.
Related resources
- CDR Overview – API responsibilities and how consent management connects to data sharing.
- Consents – read, update and revoke individual consents, or retrieve their audit history.
- Authorization Server APIs – start and complete the authorization interaction.