GuidesAPI ReferenceRelease Notes
Log In
API Reference

Consent groups

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 endpointMethod and pathRequirementPurpose
Get consents in a consent groupGET /consent-groups/{consentGroupId}/consentsMandatoryRetrieve 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 groupPOST /consent-groups/{consentGroupId}/consents/action/revokeMandatoryWithdraw 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

  1. Call GET /consent-groups/{consentGroupId}/consents using the arrangement's consent group identifier.
  2. Filter by status to select consent records in a particular state, or by consentType to 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.
  3. Use page to select a page and pageSize to 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

  1. Identify the arrangement being withdrawn using its consentGroupId.
  2. Set revokedBy to 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.
  3. If you include revokedByPsu, populate its userId property with the consumer identifier as a string.
  4. Call POST /consent-groups/{consentGroupId}/consents/action/revoke with 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.