Skip to main content
DELETE
/
consents
/
by-subject
/
{subjectId}
Erase all consents for a subject (DSAR right-to-erasure)
curl --request DELETE \
  --url https://www.consentfly.com.br/api/v1/consents/by-subject/{subjectId} \
  --header 'Authorization: <api-key>'
{
  "subject_id": "user_sha256_a1b2c3d4e5f6",
  "erased": 7
}

Documentation Index

Fetch the complete documentation index at: https://docs.consentfly.com/llms.txt

Use this file to discover all available pages before exploring further.

Authorizations

Authorization
string
header
required

Autenticação por API Key no formato Authorization: Bearer sk-... (sempre inclua o prefixo Bearer).

Gere sua chave em /dashboard/api-keys após criar a conta e verificar o e-mail. A chave é exibida uma única vez no momento da criação — armazene em variável de ambiente no seu backend. Nunca exponha em código client-side.

Path Parameters

subjectId
string
required

Subject identifier (e.g. hashed user id from the customer)

Query Parameters

site_id
string

Restrict erasure to a single site UUID

Response

OK

Resultado de uma exclusão DSAR (direito ao esquecimento) por subject_id.

subject_id
string

Identificador opaco do titular afetado.

Example:

"user_sha256_a1b2c3d4e5f6"

erased
integer

Quantidade de consentimentos marcados como excluídos.

Example:

7