PolicyForge · Schema

ConsentRecord

A single consent record as returned by the list endpoint.

PrivacyArtificial IntelligenceSoftware-as-a-ServiceComplianceGDPRCCPA

Properties

Name Type Description
id string
user_id string End-user / visitor identifier (this is `end_user_id` in the database).
policy_version string Policy version stamp captured at consent time.
consents object
ip_address stringnull
user_agent stringnull
source string `banner` = recorded via the embeddable cookie banner. `api` = recorded via POST /api/v1/consent or a hosted-policy 'I Agree' click.
banner_config_id stringnull Set when `source` is `banner`. `null` for API-recorded consents.
policy_id stringnull Set when the consent is tied to a specific PolicyForge policy (cookie banner with a linked policy, hosted-policy 'I Agree', or API consent that included a policy_id).
recorded_at string
View JSON Schema on GitHub

JSON Schema

policyforge-co-consent-record-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/policyforge-co/json-schema/policyforge-co-consent-record-schema.json",
  "title": "ConsentRecord",
  "description": "A single consent record as returned by the list endpoint.",
  "x-generated": "2026-11-21",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/policyforge-co-openapi.json#/components/schemas/ConsentRecord",
  "type": "object",
  "properties": {
    "id": {
      "type": "string",
      "format": "uuid"
    },
    "user_id": {
      "type": "string",
      "description": "End-user / visitor identifier (this is `end_user_id` in the database)."
    },
    "policy_version": {
      "type": "string",
      "description": "Policy version stamp captured at consent time."
    },
    "consents": {
      "type": "object",
      "additionalProperties": {
        "type": "boolean"
      }
    },
    "ip_address": {
      "type": [
        "string",
        "null"
      ]
    },
    "user_agent": {
      "type": [
        "string",
        "null"
      ]
    },
    "source": {
      "type": "string",
      "enum": [
        "banner",
        "api"
      ],
      "description": "`banner` = recorded via the embeddable cookie banner. `api` = recorded via POST /api/v1/consent or a hosted-policy 'I Agree' click."
    },
    "banner_config_id": {
      "type": [
        "string",
        "null"
      ],
      "format": "uuid",
      "description": "Set when `source` is `banner`. `null` for API-recorded consents."
    },
    "policy_id": {
      "type": [
        "string",
        "null"
      ],
      "format": "uuid",
      "description": "Set when the consent is tied to a specific PolicyForge policy (cookie banner with a linked policy, hosted-policy 'I Agree', or API consent that included a policy_id)."
    },
    "recorded_at": {
      "type": "string",
      "format": "date-time"
    }
  }
}

Work with this as data

Every JSON Schema here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for schemas

4 MCP tools reach this
  • find_json_schemasBrowse and filter every JSON Schema in the catalog.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This JSON Schema
curl "https://apis.io/api/v1/json-schemas/policyforge-co-consent-record"
All schemas
curl "https://apis.io/api/v1/json-schemas?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.