---
schema_version: "1"
id: 2111989ac2e61fb01be42d8f258984743514dc73ce4fa5f20ccc8f1f86fcc6f0
title: Create Preference Form Access Tokens with Apex
collection: admin
version: current
locale: en-us
portal_url: https://docs.salesforce.com/admin/current/en-us/xcloud/264-0-0/preference_manager_tokens_apex.md
canonical_url: https://help.salesforce.com/s/articleView?id=xcloud.preference_manager_tokens_apex.htm&release=264.0.0&type=5
source_site: help.salesforce.com
content_type: documentation
content_hash: 7e5c43a7fa8b542778dbd2c752bed1c42c28e3d2be7aa4a15b237ff0d957836c
description: Create preference form access tokens with Apex.
products:
  - Security
  - Cross Cloud
release: "264"
---
# Create Preference Form Access Tokens with Apex

Create preference form access tokens with Apex.

### 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: <strong>Developer</strong>, <strong>Enterprise</strong>, <strong>Performance</strong>, and <strong>Unlimited</strong> Editions. Requires the Salesforce Privacy Center license.</td></tr></tbody></table>

See [Apex Reference Guide](https://developer.salesforce.com/docs/atlas.en-us.244.0.apexref.meta/apexref/apex_namespace_pref_center.htm).