Authorization
| Available access type | Permissions needed |
|---|---|
| Private access | Events > "consent" Get |
Attributes object definition for Customer consents
Each consent attribute object in the Customer attributes method must have type, category, and mode properties.
| Parameter | Value |
|---|---|
| type | "consent" |
| category | The category name of the consent you want to retrieve. |
| mode | What information about the consent should be fetched.
|
Payload example
{
"customer_ids": {
"registered": "[email protected]"
},
"attributes": [
{
"type": "consent",
"category": "newsletter",
"mode": "valid"
},
{
"type": "consent",
"category": "newsletter",
"mode": "message"
},
{
"type": "consent",
"category": "newsletter",
"mode": "timestamp"
},
{
"type": "consent",
"category": "newsletter",
"mode": "until"
}
]
}{
"results": [
{
"success": true,
"value": false
},
{
"success": true,
"value": null
},
{
"success": true,
"value": null
},
{
"success": true,
"value": null
}
],
"success": true
}{
"results": [
{
"error": "No permission",
"success": false
}
],
"success": true
}