Skip to main content

Getting started with Consent Ledger

Create a ledger, record your first consent decision, and read back its receipt.

Enzuzo Consent Ledger records every consent decision your users make and gives you a receipt you can read back later. It works with any surface: a website, an app, or a live meeting.

How it fits together

  • Consent Ledger records consent decisions and returns a receipt for each one.

  • Integrations connect Consent Ledger to the tools where consent matters. LiveKit is the first: it uses Consent Ledger receipts to control when meetings are recorded.

  • Example apps show an integration working end to end, so you can see the pattern before you build your own.

You can use Consent Ledger on its own through the API, or through an integration.

Key concepts

Term

What it means

Ledger

A chain of consent records for one application or customer. Identified by a ledgerId, a UUID such as 5ae66dc4-2a1a-4c84-b559-c7959100bb24.

Record

One consent decision written to a ledger. Identified by a recordId, a UUID returned as metadata.id when you write the record.

Receipt

The record as read back from the ledger. It shows what was recorded and when.

Surface

Where the decision was made, such as a website or a LiveKit meeting.

Owner

The account that owns a ledger, identified by an ownerId, a UUID. Usually your Enzuzo customer ID.

LiveKit

An open source platform for real-time voice and video. It is the first Consent Ledger integration, so you can record consent decisions made inside a LiveKit meeting.

Records are written asynchronously. A record may take a moment to become readable after you write it.

Step 1. Create a ledger

  1. Log in to app.enzuzo.com.

  2. Go to the Ledger page and create a ledger.

  3. Copy the Ledger ID. You will use it in every API call.

One ledger covers your whole application. You do not need a new ledger for each user, page or meeting.

Step 2. Create an API token

  1. Go to the API tokens page.

  2. Create a token and save its value somewhere secure. It is shown only once.

  3. To read records, the token needs at least the ledger:read scope.

Keep tokens on your backend. Never expose them in a browser or mobile client.

Step 3. Record a decision and read it back

  1. Send POST https://api.enzuzo.com/consent/v1/:ledgerId/state with the decision. Save the metadata.id from the response. This is the record ID.

    • Replace :ledgerId and :recordId with your IDs. All IDs are UUIDs in the lowercase 8-4-4-4-12 format, for example 5ae66dc4-2a1a-4c84-b559-c7959100bb24. UUIDs you send are normalized to lowercase.

    • Timestamps are formatted as RFC 9557 with a time zone of Z.

    • All endpoints are rate limited (see "Errors").

  2. Send GET https://api.enzuzo.com/consent/v1/:ledgerId/state/:recordId to read the receipt back.

  3. If the read returns 404 right after the write, wait briefly and retry.

To change or withdraw consent, write a new record for the same user. The ledger keeps the full history, so earlier records stay in the ledger.

What a receipt shows, and what it does not

A receipt shows what Consent Ledger recorded: the decision, when it was made, and where the request came from. It does not show that a user was informed, and it does not on its own establish legal compliance. Your application is responsible for showing a clear notice and collecting a genuine choice.


Next steps

Did this answer your question?