---
schema_version: "1"
id: 12f26b356409e43bdb64b9c16d662d40f9ebaddbf584a729f742b4045eb9bab8
title: Consent Schema
collection: developer
version: current
locale: en-us
portal_url: https://docs.salesforce.com/developer/current/en-us/data-cloud/data-cloud-engagement-mobile-sdk/guides/c360a-api-engagement-mobile-sdk-consent-schema.md
canonical_url: https://developer.salesforce.com/docs/data/data-cloud-engagement-mobile-sdk/guide/c360a-api-engagement-mobile-sdk-consent-schema.html
source_site: developer.salesforce.com
content_type: documentation
content_hash: bb46ff0ce08eba6ee1d2386614d41383fe960207e3059401cfc5b5ad2b0e9e31
products:
  - Data 360 Engagement Mobile SDK
  - Data 360 Developer Documentation
---
# Consent Schema

Consent Management is used to either grant or revoke consent in the Engagement Mobile SDK. When a customer opts in to tracking, the mobile application sends a `consentLog` event indicating the choice along with other events that got collected. When a customer opts out, a `consentLog` event is sent containing their choice and no other events are sent to Data 360.

| Source Event Property     | Target Schema Developer Name | Field Type | Description                                                                                                                                                                            | CIM Object / Attribute                                  |
| ------------------------- | ---------------------------- | ---------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------- |
| \<Automatically Assigned> | `eventId`                    | text       | **Required**. Typically, the primary key for the engagement events.                                                                                                                    | Privacy Consent Log /Privacy Consent Log ID             |
| \<Automatically Assigned> | `dateTime`                   | dateTime   | **Required**. Used for data partitioning for engagement events. ISO 8601 supported format.                                                                                             | Privacy Consent Log /Privacy Consent Activity Date Time |
| \<Automatically Assigned> | `eventType = "consentLog"`   | text       | **Required**. The `developerName` of an event defined in the [Web Connector schema](https://help.salesforce.com/s/articleView?id=c360_a_mobile_web_sdk_schema_quick_guide.htm&type=5). | -                                                       |
| \<Automatically Assigned> | `sessionId`                  | text       | **Required**. The identifier of the session.                                                                                                                                           | -                                                       |
| \<Automatically Assigned> | `deviceId`                   | text       | **Required**. Typically, the primary key for profile events.                                                                                                                           | -                                                       |
| \<Automatically Assigned> | `category = "Engagement"`    | text       | **Required**. Possible values are: <ul><li>`Engagement`</li><li>`Profile`</li></ul>                                                                                                    | Privacy Consent Log /Privacy Consent Log Category       |
| `consent.status`          | `status`                     | text       | **Required**. Possible values are: <ul><li>`Opt In`</li><li>`Opt Out`</li></ul>                                                                                                        | Privacy Consent Log /Privacy Consent Status             |
| `consent.provider`        | `provider`                   | text       | A named identifier indicating the consent management system providing the consent to the SDK.                                                                                          | -                                                       |
| `consent.purpose`         | `purpose`                    | text       | What the user is consenting to. For example, `Tracking`.                                                                                                                               | Privacy Consent Log /Consent Action                     |
