---
title: "Requesting a new token for data erasure"
date: "2024-02-14T06:18:38+00:00"
summary: "Learn how to request a new authentication token for data erasure in CDP. Discover the process, API endpoints, and authentication methods for secure data management and compliance."
image:
type: "page"
url: "/customer-data-platform/requesting-new-token-data-erasure"
id: "cb775ad7-7ab9-4ec0-a202-197ba6913227"
---

To make a data erasure request, you must authenticate with CDP. CDP generates an authentication token through which you can establish a connection between your client and the CDP server. For more information, see [Data erasure](/customer-data-platform/data-erasure-requests).

You can leverage the following `POST` endpoint to generate the authentication token:

    https://<tokenManagementSubdomain>.agilone.com/authentication?action=login

For more information, see [Requesting a new token](/customer-data-platform/data-integration/webtags/authentication-website#cdp-request-token). However, you cannot use the token generated through the `POST` call in [Requesting a new token](/customer-data-platform/data-integration/webtags/authentication-website#cdp-request-token) to make data erasure requests.

If you do not use Acquia Single Sign-On (SSO), you can use your username:password as the basic authentication by accessing Data Erasure Hub. To get access to Data Erasure Hub, [contact Acquia Support](/service-offerings/support#contact-acquia-support).

If you use Acquia SSO, Acquia provisions an API-only user that has access to call the data erasure API. To provision this user, [contact Acquia Support](/service-offerings/support#contact-acquia-support).

To retrieve the bearer token for an API account, you can call the API endpoint using the authentication credentials. The following is the URL to get the bearer token using your username:password as the basic authentication. For example, api6 and api6.eu.

    https://<domain>.agilone.com/authentication?action=login