Contacts
List a contact's consent history
GET/v1/contacts/{id}/consent-history
Requires an API key with the contacts:read scope. About keys and scopes
Every grant and withdrawal of consent, per channel or per topic, newest first: where it came from (dashboard, API, import, form, unsubscribe link), who made it, and the IP it came from. Append-only. Changes made before this history existed are not in it.
Path parameters
idstringrequireduuid
Query parameters
limitintegeroptionalmin > 0 · max 100 · default
20cursorstringoptional1–2048 characters
Returns
Returns 200 OK. Otherwise returns an error; Errors lists every code and which to retry.
idstringrequireduuid
channelstring | nullrequiredThe channel consented to. With
topicIdnull: consent to the channel; with both set: a per-channel topic choice.one of
email,pushtopicIdstring | nullrequiredThe topic consented to, if any.
uuid
grantedbooleanrequiredTrue for a grant, false for a withdrawal.
sourcestringrequiredone of
dashboard,api,import,form,unsubscribe,system,sdksourceIdstring | nullrequiredThe form, when
sourceisform.uuid
actorTypestringrequiredone of
user,api_key,contact,systemactorIdstring | nullrequiredMember or API key id; null for the contact themselves and the system.
uuid
ipstring | nullrequiredIP address the change came from.
reasonstring | nullrequiredWhy it changed, when one was given.
basisstring | nullrequiredHow the person agreed, as the workspace stated it; null when nobody did.
one of
opted_in,existing_customerevidencestring | nullrequiredWhere and how they agreed, as stated.
occurredAtstringrequireddate-time
actorNamestring | nullrequiredThe member's or API key's name now; null for the contact, the system, or one deleted.