Skip to main content

Consent list

Api call to subrite to get the consents

  • Method: GET
  • Route: {baseUrl}/api/v1/consents
  • Authorization: Bearer token (use the m2m token collected in ## configuration)

Success API 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,
},
];