Skip to main content

Consent 3rd Party API

Step 1:

Create a consent with 3rd party integration and collect Integration Id from the UI

Create a consent

Step 2:

Create a M2M token granting Consent permissions. You will receive the token once you click save.

Create a M2M token

Step 3:

Api call to subrite

  • Method: POST
  • Route: {baseUrl}/api/v1/consents/{integrationId}
  • Authorization: Bearer token (use the m2m token collected in ## step 2)
  • Body: See example below

Example of body 1 :

{
"email": "[email protected]",
"status": "accepted"
}

Example of body 2 :

{
"email": "[email protected]",
"status": "withdrawn"
}

Status Deprecation Notice

Current Status Support:

  • accepted / subscribed - Both statuses are currently supported
  • withdrawn / unsubscribed - Both statuses are currently supported

Upcoming Changes:

  • The subscribed and unsubscribed statuses will be deprecated in a future release
  • Only accepted and withdrawn statuses will be supported going forward
  • We recommend updating your integrations to use the new status values as soon as possible