Get a client's marketing consent status Run in API Explorer
Ask AI
The current status per channel, or the status as it stood at a moment in the past.
GET
/api/v1/account/{account_uuid}/marketing-consent/status
curl \
--request GET 'https://api.plannrcrm.com/api/v1/account/53f22fe4-3731-4cdc-aa12-e65bd0b15e52/marketing-consent/status' \
--header "Authorization: Bearer $ACCESS_TOKEN" \
--header "X-PLANNR-ACCOUNT-UUID: {YOUR_PLANNR_ACCOUNT_UUID}"
Response examples (200)
{
"email": "opted_in",
"phone": "opted_out",
"letter": "not_captured",
"sms": "not_captured"
}
Response examples (400)
{
"message": "Marketing consent is only recorded for client accounts."
}
Response examples (422)
{
"message": "The given data was invalid.",
"errors": {
"field": [
"The field is invalid."
]
}
}