Skip to main content
Lobyco publishes a consent event when a customer’s consent changes. Every payload carries CustomerId, equal to UserId, and Timestamp, the time of the change.
The same change can arrive as a singular or a plural event. Single-consent calls publish User Consent Accepted or User Consent Withdrawn. Bulk calls and the email consent-management link publish one User Consents Accepted or User Consents Withdrawn covering several consents. Handle both shapes.An accept or withdraw that does not change state publishes nothing. That covers accepting a consent that is already active, and withdrawing one that is not active.User Consent Rejected is published on every reject call, with no state check. Rejecting an active consent deactivates it and publishes Rejected, not Withdrawn. A rejection of a consent the customer never accepted has UserConsentId: null.ConsentId means different things in the two shapes. In the singular events it is the consent version string {Key}_{Version}_{Revision}, and Id is the numeric consent version id. In the items of the plural events, ConsentId is the numeric id and ConsentVersionId is the string.

Field reference

Field definitions match the user consent models of the Consent endpoints. A Data streams request body carries these properties under camelCase names, such as consentId for ConsentId, unless the subscription transforms the payload. The mobile app equivalents (/mobile-app/v1/UserConsents/activate, /activate/bulk, /withdraw and /reject) and Lobyco Nexus equivalents emit the same events. The consent-management page a customer opens from an email link emits User Consents Accepted, then User Consents Withdrawn, from one save. Customer sign-up emits User Consent Accepted for each consent the customer ticks, and User Consent Rejected for unticked consents configured to be rejected. PUT /v1/UserConsents/metadata emits no event.

Schemas

A payload can carry properties that its schema does not list. Rely only on the listed ones: see Events.

API reference

Endpoint documentation: Consent.
Last modified on November 20, 2026