Execute the cryptographic erasure of an LGPD request
curl --request POST \
--url https://sisbajud.sandbox.lerian.net/institutions/{institutionId}/lgpd/requests/{id}/erase \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"cpfCnpj": "52998224725",
"docType": "cpf"
}
'import requests
url = "https://sisbajud.sandbox.lerian.net/institutions/{institutionId}/lgpd/requests/{id}/erase"
payload = {
"cpfCnpj": "52998224725",
"docType": "cpf"
}
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({cpfCnpj: '52998224725', docType: 'cpf'})
};
fetch('https://sisbajud.sandbox.lerian.net/institutions/{institutionId}/lgpd/requests/{id}/erase', 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://sisbajud.sandbox.lerian.net/institutions/{institutionId}/lgpd/requests/{id}/erase",
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([
'cpfCnpj' => '52998224725',
'docType' => 'cpf'
]),
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://sisbajud.sandbox.lerian.net/institutions/{institutionId}/lgpd/requests/{id}/erase"
payload := strings.NewReader("{\n \"cpfCnpj\": \"52998224725\",\n \"docType\": \"cpf\"\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://sisbajud.sandbox.lerian.net/institutions/{institutionId}/lgpd/requests/{id}/erase")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"cpfCnpj\": \"52998224725\",\n \"docType\": \"cpf\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://sisbajud.sandbox.lerian.net/institutions/{institutionId}/lgpd/requests/{id}/erase")
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 \"cpfCnpj\": \"52998224725\",\n \"docType\": \"cpf\"\n}"
response = http.request(request)
puts response.read_body{
"id": "11111111-1111-1111-1111-111111111111"
}{
"code": "ERR-0001",
"detail": "Property foo is required but is missing.",
"errors": [
{
"location": "<string>",
"message": "<string>",
"value": "<unknown>"
}
],
"instance": "https://example.com/error-log/abc123",
"status": 400,
"title": "Bad Request",
"type": "https://example.com/errors/example",
"upstream": {
"code": "E4001",
"message": "account not found at provider"
}
}Execute the cryptographic erasure of an LGPD request
Neutralizes the per-record DEK of every matching row for the subject across all active key versions, resolves the request EXECUTED, and audits it atomically. Idempotent: an already-EXECUTED request is a no-op success. A terminally NON-erasure decision maps to 409; a not-found request to 404; an out-of-scope request type to 422.
POST
/
institutions
/
{institutionId}
/
lgpd
/
requests
/
{id}
/
erase
Execute the cryptographic erasure of an LGPD request
curl --request POST \
--url https://sisbajud.sandbox.lerian.net/institutions/{institutionId}/lgpd/requests/{id}/erase \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"cpfCnpj": "52998224725",
"docType": "cpf"
}
'import requests
url = "https://sisbajud.sandbox.lerian.net/institutions/{institutionId}/lgpd/requests/{id}/erase"
payload = {
"cpfCnpj": "52998224725",
"docType": "cpf"
}
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({cpfCnpj: '52998224725', docType: 'cpf'})
};
fetch('https://sisbajud.sandbox.lerian.net/institutions/{institutionId}/lgpd/requests/{id}/erase', 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://sisbajud.sandbox.lerian.net/institutions/{institutionId}/lgpd/requests/{id}/erase",
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([
'cpfCnpj' => '52998224725',
'docType' => 'cpf'
]),
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://sisbajud.sandbox.lerian.net/institutions/{institutionId}/lgpd/requests/{id}/erase"
payload := strings.NewReader("{\n \"cpfCnpj\": \"52998224725\",\n \"docType\": \"cpf\"\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://sisbajud.sandbox.lerian.net/institutions/{institutionId}/lgpd/requests/{id}/erase")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"cpfCnpj\": \"52998224725\",\n \"docType\": \"cpf\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://sisbajud.sandbox.lerian.net/institutions/{institutionId}/lgpd/requests/{id}/erase")
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 \"cpfCnpj\": \"52998224725\",\n \"docType\": \"cpf\"\n}"
response = http.request(request)
puts response.read_body{
"id": "11111111-1111-1111-1111-111111111111"
}{
"code": "ERR-0001",
"detail": "Property foo is required but is missing.",
"errors": [
{
"location": "<string>",
"message": "<string>",
"value": "<unknown>"
}
],
"instance": "https://example.com/error-log/abc123",
"status": 400,
"title": "Bad Request",
"type": "https://example.com/errors/example",
"upstream": {
"code": "E4001",
"message": "account not found at provider"
}
}Authorizations
JWT bearer token issued by the identity provider.
Path Parameters
The institution's unique identifier (UUID) the erasure request is scoped to.
Example:
"44444444-4444-4444-4444-444444444444"
The LGPD erasure request id to execute.
Example:
"11111111-1111-1111-1111-111111111111"
Body
application/json
Response
OK
The erasure request id that was resolved EXECUTED.
Example:
"11111111-1111-1111-1111-111111111111"
Was this page helpful?

