Skip to main content

ConsentsService

A list of all methods in the ConsentsService service. Click on the method name to view detailed information about that method.

MethodsDescription
Consents_GetConsentsGet all consents definitions Example of metaData for a Consent: "metaData": { "conditionText": { "sv-SE": "Svensk villkorstext", "en-GB": "English text to show for condition" }, "displayText": { "sv-SE": "Svensk text att visa", "en-GB": "English text to display" }, "linkText": { "sv-SE": "Svensk text att visa på länk", "en-GB": "English text to show on link" } }

Consents_GetConsents

Get all consents definitions Example of metaData for a Consent: "metaData": { "conditionText": { "sv-SE": "Svensk villkorstext", "en-GB": "English text to show for condition" }, "displayText": { "sv-SE": "Svensk text att visa", "en-GB": "English text to display" }, "linkText": { "sv-SE": "Svensk text att visa på länk", "en-GB": "English text to show on link" } }

  • HTTP Method: GET
  • Endpoint: /api/v2/consents

Return Type

ApiConsentDefinition[]

Example Usage Code Snippet

import { VoyadoEngage } from 'voyado_engage';

(async () => {
const voyadoEngage = new VoyadoEngage({
token: 'YOUR_TOKEN',
});

const { data } = await voyadoEngage.consents.consentsGetConsents();

console.log(data);
})();

Build Your Own SDKs with  liblab

Build developer friendly SDKs in minutes from your APIs

Start for Free →