Skip to main content
GET
/
consents
/
{id}
/
receipt
Get consent receipt (regulator-ready)
curl --request GET \
  --url https://www.consentfly.com.br/api/v1/consents/{id}/receipt \
  --header 'Authorization: <api-key>'
{
  "version": "1.0",
  "receipt_id": "rcpt_01HK8VV4P9R3T8M2A2YZJ7HQ5Q",
  "consent_id": "analytics-2026-05",
  "subject_id": "user_sha256_a1b2c3d4e5f6",
  "site_id": "6b8b4567-327a-4d10-92a5-9e8c4f5a7d12",
  "accepted": true,
  "preferences": {
    "analytics": true,
    "marketing": false,
    "functional": true
  },
  "policy_version": 3,
  "country": "BR",
  "region": "SP",
  "user_agent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 14_4) AppleWebKit/605.1.15",
  "created_at": "2026-05-24T10:30:00Z",
  "updated_at": "2026-05-24T10:30:00Z",
  "deleted_at": null
}

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

id
string
required

Consent UUID

Response

OK

Recibo canônico de consentimento, pronto para arquivar como evidência regulatória. Schema fixo na versão "1.0".

version
string

Versão do schema do recibo. Estável em "1.0".

Example:

"1.0"

receipt_id
string

Identificador único do recibo (separado do consent.id; permite reemissão sem perder rastreabilidade).

Example:

"rcpt_01HK8VV4P9R3T8M2A2YZJ7HQ5Q"

Identificador semântico do consentimento.

Example:

"analytics-2026-05"

subject_id
string

Identificador opaco do titular.

Example:

"user_sha256_a1b2c3d4e5f6"

site_id
string<uuid>
Example:

"6b8b4567-327a-4d10-92a5-9e8c4f5a7d12"

accepted
boolean
Example:

true

preferences
object
Example:
{
"analytics": true,
"marketing": false,
"functional": true
}
policy_version
integer
Example:

3

country
string
Example:

"BR"

region
string
Example:

"SP"

user_agent
string
Example:

"Mozilla/5.0 (Macintosh; Intel Mac OS X 14_4) AppleWebKit/605.1.15"

created_at
string<date-time>
Example:

"2026-05-24T10:30:00Z"

updated_at
string<date-time>
Example:

"2026-05-24T10:30:00Z"

deleted_at
string<date-time> | null
Example:

null