Skip to main content
POST
/
consents
Create consent
curl --request POST \
  --url https://www.consentfly.com.br/api/v1/consents \
  --header 'Authorization: <api-key>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "site_id": "<string>",
  "accepted": true,
  "consent_id": "<string>",
  "ip_address": "<string>",
  "policy_version": 123,
  "preferences": {},
  "subject_id": "<string>",
  "user_agent": "<string>"
}
'
{
  "accepted": true,
  "consent_id": "<string>",
  "country": "<string>",
  "created_at": "<string>",
  "deleted_at": "<string>",
  "id": "<string>",
  "policy_version": 123,
  "preferences": {},
  "region": "<string>",
  "site_id": "<string>",
  "subject_id": "<string>",
  "updated_at": "<string>",
  "user_agent": "<string>"
}

Documentation Index

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

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

Authorizations

Authorization
string
header
required

Format: Bearer sk-... (include the Bearer prefix).

Body

application/json

Consent payload

site_id
string
required
accepted
boolean
ip_address
string
policy_version
integer
preferences
object
subject_id
string
user_agent
string

Response

Created

accepted
boolean
country
string
created_at
string
deleted_at
string
id
string
policy_version
integer
preferences
object
region
string
site_id
string
subject_id
string
updated_at
string
user_agent
string