---
schema_version: "1"
id: c67d2d0f72664d6f7eb8f2e4d5497560888c0422f80d4330e1eefd703b407ec5
title: Revoke Preference Form Access Tokens with REST API
collection: admin
version: current
locale: en-us
portal_url: https://docs.salesforce.com/admin/current/en-us/xcloud/264-0-0/revoke_access_token_rest_api.md
canonical_url: https://help.salesforce.com/s/articleView?id=xcloud.revoke_access_token_rest_api.htm&release=264.0.0&type=5
source_site: help.salesforce.com
content_type: documentation
content_hash: 0c9b8134d949b84a97b4ee4f07c46cc15fd61f217f7e31bed24d516c38f8b0d8
description: Revoke a user’s access token if it becomes compromised. For example, if it’s shared or stolen.
products:
  - Security
  - Cross Cloud
release: "264"
---
# Revoke Preference Form Access Tokens with REST API

Revoke a user’s access token if it becomes compromised. For example, if it’s shared or stolen.

### 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>

<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="d18288e64">User Permissions
            Needed</th>
        </tr>
      </thead>
      <tbody>
        <tr class="">
          <td data-label="User Permissions Needed" class="slds-cell-wrap" style="vertical-align:top;" headers="d18288e64 ">To use the Preference Manager Builder:</td>

          <td class="slds-cell-wrap" style="vertical-align:top;" headers="d18288e64 ">ManagePreferenceManager</td>

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

## Syntax

<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="text-align:left;vertical-align:top;">URI</td>

            <td class="slds-cell-wrap" style="text-align:left;vertical-align:top;">services/data/vXX.X/consent/prefcenter/invalidtoken</td>

          </tr>
          <tr class="">
            <td class="slds-cell-wrap" style="text-align:left;vertical-align:top;">Formats</td>

            <td class="slds-cell-wrap" style="text-align:left;vertical-align:top;">JSON</td>

          </tr>
          <tr class="">
            <td class="slds-cell-wrap" style="text-align:left;vertical-align:top;">HTTP Methods</td>

            <td class="slds-cell-wrap" style="text-align:left;vertical-align:top;">POST</td>

          </tr>
          <tr class="">
            <td class="slds-cell-wrap" style="text-align:left;vertical-align:top;">Authentication</td>

            <td class="slds-cell-wrap" style="text-align:left;vertical-align:top;">Bearer Token</td>

          </tr>
          <tr class="">
            <td class="slds-cell-wrap" style="text-align:left;vertical-align:top;">Request Parameters</td>

            <td class="slds-cell-wrap" style="text-align:left;vertical-align:top;">token</td>

          </tr>
          <tr class="">
            <td class="slds-cell-wrap" style="text-align:left;vertical-align:top;">Request Body</td>

            <td class="slds-cell-wrap" style="text-align:left;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">
{
[token string]              // String, Required
}</code></pre>
            </td>

          </tr>
          <tr class="">
            <td class="slds-cell-wrap" style="text-align:left;vertical-align:top;">Response Body</td>

            <td class="slds-cell-wrap" style="text-align:left;vertical-align:top;">
              <p>Your response body indicates if the request was successful. </p>
              <ul>
                <li><code>success</code> returns a true
                  or false statement to indicate if the request was
                  successful. </li>

                <li><code>tokenErrors</code> indicates
                  if there was an error revoking the token. If you included
                  multiple tokens, the response indicates any errors for each
                  individual token. </li>

                <li><code>error</code> indicates if
                  there was a system error while processing the request. </li>

              </ul>
            </td>

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

## Example Response Body

`{ "success" : true, "tokenErrors" : { }, "error" : "", }`