The following is the response of the authentication API endpoint:
{
"access_token": "<access_token>",
"token_type": "bearer",
"expires_in": <time>,
"user": {
"tenantId": <tenantId>,
"username": "<username>",
"userType": "CLIENT",
"passwordExpiryDate": "<passwordExpiryDate>"
}
}You need to get the access_token and use it in the subsequent API calls with the authorization header. For more information, see Authorization Header.
Locale | Cloud | Cluster | Example |
|---|---|---|---|
US | AWS | CS |
|
US | AWS | Prod |
|
EU | AWS | CS |
|
EU | AWS | Prod |
|
US | GCP | CS |
|
US | GCP | Prod |
|
https://<environmentSubdomain>.agilone.com/v2/{tenantId}/dw/dataerasureFor example,
https://api6.agilone.com/v2/1234/dw/dataerasureIn the preceding API endpoint, subdomains differ per environment:
Environment | Pre-Production | Production |
|---|---|---|
US AWS | cs-api6 | api6 |
EU AWS | cs-api6.eu | api6.eu |
US GCP | cs-gcp-api6 | api8 |
You can use the following optional query parameter with the API:
failOnNotFound: Set this parameter to true to fail the API request if the customer Id is not found. The default value is false. With this parameter, the API endpoint becomes:
https://<environmentSubdomain>.agilone.com/v2/{tenantId}/dw/dataerasure?failOnNotFound=<true or false>POST
To send data to CDP through the data erasure request API, you must set the HTTPS
header: content-type to application/json.
You can send the following request parameters in the payload:
Parameter | Required? | Data Type | Description |
|---|---|---|---|
reason | Yes | String | The reason for making the data erasure request. This is a free text field and you can specify a value based on the following:
|
customerIds | Yes | String | The list of known customer IDs. If you do not include all the customer IDs associated with the customer, data is partially erased. |
requestOrigin | Yes | String | The consumer app, such as API that initiates the request. This parameter does not have a default value. However, ensure that you specify a well-defined value to accurately indicate the source system. |
requestedDate | Yes | String | The date when the request was made. This can be derived from the
application server time. This date can be a current or past date but not
a future date. The format of this value is |
requestedBy | No | String | The user who requested the data erasure. |
You must set the authentication header value to Bearer <access_token>.
{
"reason": "<DataErasureReason>",
"customerIds": [
"<customerId1>",
"<customerId2>",
"<customerIdN>"
],
"requestOrigin": "<requestOrigin>",
"requestedDate": "yyyy-MM-dd HH:mm:ss z",
“requestedBy” : “<FreeText-ActualRequester>”
}For response parameters, see Payload and response code.
If this content did not answer your questions, try searching or contacting our support team for further assistance.
GCP
Prod |
|
requestedDate | Yes | String | The date when the request was made. This can be derived from the
application server time. This date can be a current or past date but not
a future date. The format of this value is |
requestedBy | No | String | The user who requested the data erasure. |
If this content did not answer your questions, try searching or contacting our support team for further assistance.