Erase the caller's account (GDPR Art. 17)
curl --request POST \
--url https://api.amdital.com/v1/privacy/erasure \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"password": "<string>",
"confirmation": "DELETE MY ACCOUNT"
}
'import requests
url = "https://api.amdital.com/v1/privacy/erasure"
payload = {
"password": "<string>",
"confirmation": "DELETE MY ACCOUNT"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({password: '<string>', confirmation: 'DELETE MY ACCOUNT'})
};
fetch('https://api.amdital.com/v1/privacy/erasure', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.amdital.com/v1/privacy/erasure",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'password' => '<string>',
'confirmation' => 'DELETE MY ACCOUNT'
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.amdital.com/v1/privacy/erasure"
payload := strings.NewReader("{\n \"password\": \"<string>\",\n \"confirmation\": \"DELETE MY ACCOUNT\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.amdital.com/v1/privacy/erasure")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"password\": \"<string>\",\n \"confirmation\": \"DELETE MY ACCOUNT\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.amdital.com/v1/privacy/erasure")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"password\": \"<string>\",\n \"confirmation\": \"DELETE MY ACCOUNT\"\n}"
response = http.request(request)
puts response.read_body{
"status": "completed",
"workspacesAffected": 123,
"sessionsRevoked": 123
}Privacy
Erase the caller's account (GDPR Art. 17)
Irreversible. Requires the current password (403 when wrong) and the exact confirmation phrase (400). 409 when the caller owns a workspace that still has other members. Anonymizes PII, deactivates memberships, revokes every session; business records and audit_logs are kept. 5 attempts per hour per user (429).
POST
/
v1
/
privacy
/
erasure
Erase the caller's account (GDPR Art. 17)
curl --request POST \
--url https://api.amdital.com/v1/privacy/erasure \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"password": "<string>",
"confirmation": "DELETE MY ACCOUNT"
}
'import requests
url = "https://api.amdital.com/v1/privacy/erasure"
payload = {
"password": "<string>",
"confirmation": "DELETE MY ACCOUNT"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({password: '<string>', confirmation: 'DELETE MY ACCOUNT'})
};
fetch('https://api.amdital.com/v1/privacy/erasure', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.amdital.com/v1/privacy/erasure",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'password' => '<string>',
'confirmation' => 'DELETE MY ACCOUNT'
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.amdital.com/v1/privacy/erasure"
payload := strings.NewReader("{\n \"password\": \"<string>\",\n \"confirmation\": \"DELETE MY ACCOUNT\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.amdital.com/v1/privacy/erasure")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"password\": \"<string>\",\n \"confirmation\": \"DELETE MY ACCOUNT\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.amdital.com/v1/privacy/erasure")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"password\": \"<string>\",\n \"confirmation\": \"DELETE MY ACCOUNT\"\n}"
response = http.request(request)
puts response.read_body{
"status": "completed",
"workspacesAffected": 123,
"sessionsRevoked": 123
}Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Body
application/json
Was this page helpful?