---
schema_version: "1"
id: d7a7e7947a162fecbffcf0c9e674290a6baeb644ded7602758b4e15158694bc4
title: Generate Tokens for User Contact Points
collection: admin
version: current
locale: en-us
portal_url: https://docs.salesforce.com/admin/current/en-us/xcloud/264-0-0/pref_manager_data_cloud_generate_tokens.md
canonical_url: https://help.salesforce.com/s/articleView?id=xcloud.pref_manager_data_cloud_generate_tokens.htm&release=264.0.0&type=5
source_site: help.salesforce.com
content_type: documentation
content_hash: 3fde5c6df753d7236edcff156b244b12b0a35713786e88bae58a38530620d59b
description: To associate consent forms with individual users, generate access tokens from email or phone contact points. Access tokens are embedded in consent form URLs, allowing users to view their personalized forms without logging in.
products:
  - Security
  - Cross Cloud
release: "264"
---
# Generate Tokens for User Contact Points

To associate consent forms with individual users, generate access tokens from email or phone contact points. Access tokens are embedded in consent form URLs, allowing users to view their personalized forms without logging in.

### Required Editions

<table class="slds-table slds-table_bordered slds-max-medium-table_stacked slds-m-bottom_small edition"><colgroup><col></colgroup><tbody><tr class=""><td class="slds-cell-wrap" style="vertical-align:top;">Available in: Lightning Experience and Salesforce Classic in <strong>Developer</strong>, <strong>Enterprise</strong>, <strong>Performance</strong>, and <strong>Unlimited</strong> Editions</td></tr></tbody></table>

<table class="slds-table slds-table_bordered slds-max-medium-table_stacked slds-m-bottom_small permission">
        <colgroup>
          <col style="width:50%">
          <col style="width:50%">
        </colgroup>
        <thead class="slds-text-title_caps ">
          <tr class="">
            <th scope="colgroup" class="slds-cell-wrap" colspan="2" style="text-align:center;vertical-align:top;" id="d7680e46">User Permissions Needed</th>
          </tr>
        </thead>
        <tbody>
          <tr class="">
            <td data-label="User Permissions Needed" class="slds-cell-wrap" style="vertical-align:top;" headers="d7680e46 ">To use Preference Manager:</td>
            <td class="slds-cell-wrap" style="vertical-align:top;" headers="d7680e46 ">Manage Preference Manager</td>
          </tr>
        </tbody>
      </table>

1. Log in to Workbench or any app used for running API calls in your Salesforce org.
2. If you’re using Workbench, go to Rest explorer.
3. Create a POST request for the token API using these specifications.
    
    <table class="slds-table slds-table_bordered slds-max-medium-table_stacked slds-m-bottom_small ">
            <colgroup>
              <col style="width:50%">
              <col style="width:50%">
            </colgroup>
            <tbody>
              <tr class="">
                <td class="slds-cell-wrap" style="vertical-align:top;">HTTP Method</td>
                <td class="slds-cell-wrap" style="vertical-align:top;">POST</td>
              </tr>
              <tr class="">
                <td class="slds-cell-wrap" style="vertical-align:top;">Endpoint</td>
                <td class="slds-cell-wrap" style="vertical-align:top;">/services/data/v60.0/consent/prefcenter/token</td>
              </tr>
              <tr class="">
                <td class="slds-cell-wrap" style="vertical-align:top;">Payload</td>
                <td class="slds-cell-wrap" style="vertical-align:top;">
                  <pre class="line-numbers slds-box slds-box_x-small slds-theme_shade slds-m-top_medium slds-m-bottom_medium slds-scrollable_x"><code class="nolang">{
   "ids": [
     "test@salesforce.com"
     "demo@salesforce.com"
     "sample@salesforce.com"
   ],
   "tokenType": "DATACLOUDID",
   "dataCloudTokenIdType": "EMAIL"
} 
</code></pre>
                </td>
              </tr>
            </tbody>
          </table>
    
    Insert the contact point values in the "ids" section. The supported formats for `dataCloudTokenIdType` are  INDIVIDUAL, ADDRESS, PHONE, and EMAIL.
    
    For example, if you want to capture consent against contact point email, then add the email addresses under ids and enter EMAIL as the `dataCloudTokenIdType`.
4. When the tokens are generated, save them as a custom field on the contact point email records.