{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/consentease-io/json-schema/consentease-io-post-consent-request-schema.json",
  "title": "PostConsentRequest",
  "x-generated": "2026-11-04",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/_ae-authored/consentease-io-openapi-generated.yml#/components/schemas/PostConsentRequest",
  "type": "object",
  "properties": {
    "siteId": {
      "type": "string"
    },
    "visitorId": {
      "type": "string"
    },
    "action": {
      "type": "string",
      "description": "accept_all, reject_all or custom"
    },
    "consentChoices": {
      "type": "string",
      "description": "up to 8192 characters or keyed object"
    },
    "bannerVersion": {
      "type": "string"
    },
    "policyVersion": {
      "type": "string"
    },
    "userAgent": {
      "type": "string"
    },
    "country": {
      "type": "string"
    },
    "region": {
      "type": "string"
    },
    "consentTiming": {
      "type": "object",
      "description": "{ decidedAt: ISO timestamp, renewalDays: integer }"
    }
  },
  "required": [
    "siteId",
    "visitorId",
    "action",
    "consentChoices"
  ]
}