Get consents
Get the list of consents in Subrite, with title, purpose, frequency, integration ID and where each consent is shown.
ReferenceView as Markdown
Get the list of consents from Subrite.
- Method:
GET - Route:
{baseUrl}/api/v1/consents - Authorization: Bearer token (use the M2M token from )
Success response#
[
{
id: 1,
createdAt: '2025-01-10T07:13:33.457Z',
metaData: null,
integrationId: 'd5f8e923-342f-4024-9c07-677e69333142',
title: 'Omar testing',
description: 'Omar testing',
image: null,
showOnCheckoutPage: true,
showOnMyPage: true,
status: true,
purpose: 'consent',
frequency: 'Frequency',
newsletterProviderConfigId: null,
newsletterProviderConfig: null,
},
];