Skip to main content

Receipt reference

Every field in a Consent Ledger receipt from the LiveKit reference integration, with a real example.

Every time a participant accepts, declines or withdraws recording, the Consent Ledger LiveKit reference integration writes a record to Enzuzo Consent Ledger. When you read that record back, you get a receipt. This article explains each field in it.

Example receipt

This receipt comes from a test run with synthetic participants. Identifiers are redacted.

{
  "apiVersion": "v1",
  "kind": "ConsentState",
  "metadata": {
    "ledgerId": "<ledger ID, redacted>",
    "id": "<record ID, redacted>",
    "recordedAt": "2026-12-01T22:04:55.99397998Z",
    "user": "synthetic-participant-4b7901",
    "session": "synthetic-meeting-20261201-220455-4b7901",
    "settings": "demo-notice-v1",
    "country": "CA",
    "region": "Ontario"
  },
  "spec": {
    "action": "accept",
    "surface": {
      "kind": "meeting",
      "metadata": {
        "platform": "livekit",
        "custom": {
          "sdk": "consent-ledger-livekit",
          "submissionId": "<submission ID, redacted>",
          "purposeId": "meeting-recording",
          "revision": 1,
          "choice": "accept"
        }
      }
    },
    "categories": [
      "analytics"
    ]
  }
}

Record details

Field

What it tells you

apiVersion

The version of the Consent Ledger API that returned the receipt. Currently v1.

kind

The type of resource. A consent record read back from Consent Ledger is a ConsentState.

metadata.ledgerId

The ledger the record was written to.

metadata.id

The record's unique ID. Save it: records are read back by ID.

metadata.recordedAt

When Consent Ledger recorded the decision, in UTC.

metadata.user

The participant who made the decision, using the identifier your application supplies.

metadata.session

The meeting the decision belongs to. Consent never carries over from one meeting to another.

metadata.settings

The version of the recording notice the participant was shown. Keep a copy of each version you publish, since the receipt stores the version, not the text.

metadata.country, metadata.region

Where the request to Consent Ledger came from. For this integration that is your server, not the participant.

Decision details

Field

What it tells you

spec.action

How the decision was communicated: accept or decline.

spec.categories

What the participant agreed to. analytics is a storage mapping: Consent Ledger has no dedicated recording consent category yet, so the integration stores a recording acceptance under analytics. A decline or withdrawal has empty categories.

spec.surface.kind

Where the decision happened. For meetings, this is meeting.

spec.surface.metadata.platform

The meeting platform: livekit.

...custom.purposeId

The purpose the participant decided on: meeting-recording.

...custom.choice

The participant's choice: accept, decline or withdraw. This keeps a decline and a withdrawal distinct.

...custom.revision

The order of this participant's decisions within the meeting. A higher revision replaces a lower one.

...custom.submissionId

The integration's own ID for this submission, so you can match the receipt to your application's records.

...custom.sdk

The integration that wrote the record: consent-ledger-livekit.

What a receipt does not include

  • The recording itself. Audio and video stay in your own storage.

  • The full text of your notice. The receipt stores its version.

  • The participant's physical location.

Can records be changed?

No. Consent Ledger is append-only and hash-chained. Records can't be edited, and the API has no way to delete them. A new decision is written as a new record, and earlier records stay in the ledger.

What a receipt shows, and what it does not

A receipt shows what Consent Ledger captured at the moment of the decision. It does not on its own show that a notice was clear, that consent was valid, or that your recording practices meet the law. Those depend on your notice, your application and your policies.

A receipt describes one decision at one moment. A historical acceptance receipt does not establish current recording permission: the participant may have withdrawn since. Current permission comes from the participant's current decision in your application.

Related

Did this answer your question?