Consent 3rd party API
Let an external system register or withdraw a member's consent in Subrite through the consents API, using an M2M token and the integration ID of the consent.
ArticleView as Markdown
Let an external system register or withdraw a member's consent in Subrite through the consents API, using an M2M token and the integration ID of the consent.
Create a consent with 3rd party integration and collect the Integration Id from the UI.

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

POST{baseUrl}/api/v1/consents/{integrationId}{
"email": "test1@subrite.no",
"status": "accepted"
}{
"email": "test2@subrite.no",
"status": "withdrawn"
}{
"email": "test3@subrite.no",
"status": "accepted",
"reference": "external-reference"
}| Field | Required | Description |
|---|---|---|
email | Yes | Email address of the subscriber |
status | Yes | Consent status: accepted or withdrawn |
reference | No | Custom reference string for tracking purposes, for example an external system ID, campaign reference, URL or any custom identifier |