---
schema_version: "1"
id: 4931813d5bcbe4c9e5e02d317433b45118f6b2936cda6cc1314d42487ffdb0c8
title: Create an API Token
collection: admin
version: current
locale: en-us
portal_url: https://docs.salesforce.com/admin/current/en-us/mktg/264-0-0/mc_pers_api_tokens_create.md
canonical_url: https://help.salesforce.com/s/articleView?id=mktg.mc_pers_api_tokens_create.htm&release=264.0.0&type=5
source_site: help.salesforce.com
content_type: documentation
content_hash: fe39bf563959c89c400a9c9e29e3678397cf14818f76992ba08e5d561a8e1782
description: Marketing Cloud Personalization uses API tokens to authenticate and authorize all API requests to Personalization's REST API.
products:
  - Marketing
  - Salesforce Personalization
release: "264"
---
# Create an API Token

Marketing Cloud Personalization uses API tokens to authenticate and authorize all API requests to Personalization's REST API.

### Required Editions

<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="d91271e38">Permissions Needed</th>
          </tr>
        </thead>
        <tbody>
          <tr class="">
            <td data-label="Permissions Needed" class="slds-cell-wrap" style="vertical-align:top;" headers="d91271e38 ">To create an API token:</td>

            <td class="slds-cell-wrap" style="vertical-align:top;" headers="d91271e38 ">A role with Administrator permissions</td>

          </tr>
        </tbody>
      </table>

1. From the bottom section of the main navigation, select **Security > API Tokens**.
2. Click **Create Token**.
3. To allow the token to access the API, select **Can access API**.
4. To allow the token to send events, select **Can send events**.
5. To restrict access to specific datasets in your Personalization account, select the datasets from the **Select datasets** field. Otherwise, the token applies to all current and future datasets in your account.
6. Add any **Notes** about the token as necessary.
7. To define the IP addresses that can use the token, enter the IP addresses into the IP Accept List field and separate them with commas. When configured, requests that originate from addresses not on this list are rejected.
    
    API Token configuration doesn’t support the use of IP ranges when defining IP addresses that can use the token.
8. Click **OK**.
9. A dialog appears so you can access the API Key ID and API Key Secret, which function like a username and password in an API request.
    
    ![Note](https://sf-zdocs-cdn-prod.zoominsoftware.com/tdta-mktg-mc_personalization-264-0-0-production-enus/16bf1f60-f44c-4260-a56e-f052cfe515a3/images/icon_note.png)
    
    Note These values can be used to access your data in Personalization, so download and store them securely. After you close this dialog, you can’t access these values again.