# Didomi

> Work with Didomi consent and preference management: record and look up people's consents, approve or delete consent events, manage purposes, handle privacy requests and their notes, and read compliance reports.

App · 27 actions. Web page: https://docs.lodol.com/docs/integrations/didomi

## Actions

### Add note to request

Add an internal note to a privacy request, such as what was done.

**Inputs**

- Organization (`organization_id`, text): The Didomi organization. Leave empty to use the one your API key belongs to.
- Privacy request ID (`request_id`, text, required): The privacy request's id, from 'List privacy requests' or an earlier step.
- Note (`text`, text, required): The note's text.

**Outputs**

- `note` (object): The new note

**Example output**

```json
{
  "note": {
    "created_at": "2026-10-16T09:00:00.000Z",
    "id": "note_01HX",
    "organization_id": "acme",
    "request_id": "req_01HXAMPLE",
    "user": {
      "name": "Sam Support"
    },
    "value": "Data export sent."
  }
}
```

### Approve consent event

Confirm a consent event that is waiting for approval, so its choices apply, or set one back to pending.

**Inputs**

- Organization (`organization_id`, text): The Didomi organization. Leave empty to use the one your API key belongs to.
- Consent event ID (`event_id`, text, required): The consent event's id, from 'List consent events' or 'Record consent'.
- Status (`status`, text, required): Confirmed applies the event's choices. One of: `confirmed`, `pending_approval` (Pending approval).
- Your user ID (`organization_user_id`, text): Your own ID for the person the event belongs to, such as their email address. Give this or the Didomi user ID.
- Didomi user ID (`didomi_user_id`, text): Didomi's own ID for the person, if you don't use your own. Give this or your user ID.

**Outputs**

- `event` (object): The consent event

**Example output**

```json
{
  "event": {
    "consents": {
      "channels": [],
      "purposes": [
        {
          "enabled": true,
          "enabled_li": true,
          "id": "newsletters",
          "values": {}
        }
      ],
      "tcfcs": "",
      "vendors": {
        "disabled": [],
        "disabled_li": [],
        "enabled": [],
        "enabled_li": []
      }
    },
    "created_at": "2026-10-15T09:00:00.000Z",
    "delegate": {
      "id": "agent-42",
      "name": "Sam Support"
    },
    "id": "00b89328-e3d5-4068-b346-8f4fcb4618df",
    "organization_id": "acme",
    "proofs_id": [],
    "regulation": "gdpr",
    "status": "confirmed",
    "user": {
      "country": "FR",
      "id": "0cc784a0-4425-45ca-a62f-00dd588d1526",
      "metadata": {},
      "organization_user_id": "jo@example.com"
    },
    "validation": {
      "approve_url": ""
    }
  }
}
```

### Create consent token

Make a short-lived token that lets one person see and change their own consents, such as in a link to your preference center (add ?token= and the token to its address).

**Inputs**

- Organization (`organization_id`, text): The Didomi organization. Leave empty to use the one your API key belongs to.
- Your user ID (`organization_user_id`, text, required): Your own ID for the person, such as their email.
- Lasts for (seconds) (`lifetime`, number): How long the token works, in seconds. Defaults to 900 (15 minutes). From 60 to 31536000.
- Changed by (ID) (`delegate_id`, text): When someone changes the consent for the person (such as a support agent), their ID, so the record shows who made the change.
- Changed by (name) (`delegate_name`, text): That person's name. Needs 'Changed by (ID)'.
- Metadata (`metadata`, object): Your own keys and values to keep with the token.

**Outputs**

- `expires_at` (text): When it stops working (UTC)
- `id_token` (text): The consent token
- `lifetime` (number): How long it lasts, in seconds
- `organization_user_id` (text): Whose it is

**Example output**

```json
{
  "expires_at": "2026-10-15T09:15:00Z",
  "id_token": "eyJhbGciOiJIUzI1NiJ9.example.signature",
  "lifetime": 900,
  "organization_user_id": "jo@example.com"
}
```

### Create privacy request

Log a privacy request someone made, such as to see or delete their data. With an email, Didomi keeps them informed as the request moves on.

**Inputs**

- Organization (`organization_id`, text): The Didomi organization. Leave empty to use the one your API key belongs to.
- Your user ID (`organization_user_id`, text, required): Your own ID for the person; their email is best.
- Right (`user_right_id`, text, required): What the person asks for. Pick one, or give its id.
- Status (`status`, text, required): Verified if you already know it's them; unverified has Didomi email them to confirm first. One of: `unverified` (Unverified (Didomi emails the person to confirm)), `verified`, `work_in_progress` (In progress), `fulfilled`, `refused`, `archived`.
- Email (`email`, text): The person's email, which Didomi writes to about the request. Needed when unverified.
- Country (`country`, text): Where the request comes from, as a two-letter code such as US.
- Metadata (`metadata`, object): Your own keys and values to keep on the request.

**Outputs**

- `request` (object): The privacy request

**Example output**

```json
{
  "request": {
    "created_at": "2026-10-15T09:00:00.000Z",
    "expires_at": "2026-11-29T09:00:00.000Z",
    "id": "req_01HXAMPLE",
    "metadata": {},
    "organization_id": "acme",
    "organization_user_id": "jo@example.com",
    "regulation_id": "cpra",
    "request_fields": [
      {
        "field_id": "email",
        "value": "jo@example.com"
      }
    ],
    "source": {
      "country": "US",
      "type": "DSAR"
    },
    "status": "verified",
    "updated_at": "2026-10-15T09:00:00.000Z",
    "user_right_id": "cpra_access_my_data",
    "validation": {
      "approve_url": "",
      "type": "email"
    }
  }
}
```

### Create purpose

Add a purpose to your Data Manager, such as newsletters or analytics.

**Inputs**

- Organization (`organization_id`, text): The Didomi organization. Leave empty to use the one your API key belongs to.
- Name (`name`, text, required): The purpose's name, shown to people.
- Description (`description`, text): What the data is used for, in plain words.
- Custom ID (`custom_id`, text): Your own ID for the purpose, to match it in your systems.
- Regulations (`regulations`, list): The privacy laws the purpose is used under.

**Outputs**

- `purpose` (object): The new purpose

**Example output**

```json
{
  "purpose": {
    "created_at": "2026-10-01T09:00:00.000Z",
    "description": "Newsletters",
    "details": "Send you our newsletters.",
    "id": "newsletters",
    "metadata": {},
    "namespaces": {
      "custom": "newsletters",
      "didomi": "",
      "iab2": ""
    },
    "organization_id": "acme",
    "regulations_id": [
      "gdpr"
    ],
    "updated_at": "2026-10-01T09:00:00.000Z"
  }
}
```

### Create user

Add a person to Didomi with your own ID for them and their metadata. To record what they agreed to, use 'Record consent'.

**Inputs**

- Organization (`organization_id`, text): The Didomi organization. Leave empty to use the one your API key belongs to.
- Your user ID (`organization_user_id`, text): Your own ID for the person, such as their email address or CRM id.
- Didomi user ID (`didomi_user_id`, text): Didomi's own ID for the person, if you don't use your own. Give this or your user ID.
- Country (`country`, text): The person's country, as a two-letter code such as FR or US.
- Metadata (`metadata`, object): Your own keys and values to keep on the person.

**Outputs**

- `user` (object): The person

**Example output**

```json
{
  "user": {
    "consents": {
      "channels": [],
      "purposes": [
        {
          "enabled": true,
          "enabled_li": true,
          "id": "newsletters",
          "values": {}
        }
      ],
      "tcfcs": "",
      "vendors": {
        "disabled": [],
        "disabled_li": [],
        "enabled": [],
        "enabled_li": []
      }
    },
    "country": "FR",
    "created_at": "2026-10-15T09:00:00.000Z",
    "id": "0cc784a0-4425-45ca-a62f-00dd588d1526",
    "last_seen_country": "FR",
    "metadata": {},
    "organization_id": "acme",
    "organization_user_id": "jo@example.com",
    "updated_at": "2026-10-15T09:00:00.000Z",
    "version": 1
  }
}
```

### Delete consent event

Delete a consent event. Didomi works the person's consent status out again as if it had never happened.

**Inputs**

- Organization (`organization_id`, text): The Didomi organization. Leave empty to use the one your API key belongs to.
- Consent event ID (`event_id`, text, required): The consent event's id, from 'List consent events' or 'Record consent'.
- Your user ID (`organization_user_id`, text): Your own ID for the person the event belongs to, such as their email address. Give this or the Didomi user ID.
- Didomi user ID (`didomi_user_id`, text): Didomi's own ID for the person, if you don't use your own. Give this or your user ID.

**Outputs**

- `deleted` (true/false): Always true once deleted
- `event` (object): The event, now deleted
- `event_id` (text): The event deleted

**Example output**

```json
{
  "deleted": true,
  "event": {
    "consents": {
      "channels": [],
      "purposes": [
        {
          "enabled": true,
          "enabled_li": true,
          "id": "newsletters",
          "values": {}
        }
      ],
      "tcfcs": "",
      "vendors": {
        "disabled": [],
        "disabled_li": [],
        "enabled": [],
        "enabled_li": []
      }
    },
    "created_at": "2026-10-15T09:00:00.000Z",
    "delegate": {
      "id": "agent-42",
      "name": "Sam Support"
    },
    "id": "00b89328-e3d5-4068-b346-8f4fcb4618df",
    "organization_id": "acme",
    "proofs_id": [],
    "regulation": "gdpr",
    "status": "confirmed",
    "user": {
      "country": "FR",
      "id": "0cc784a0-4425-45ca-a62f-00dd588d1526",
      "metadata": {},
      "organization_user_id": "jo@example.com"
    },
    "validation": {
      "approve_url": ""
    }
  },
  "event_id": "00b89328-e3d5-4068-b346-8f4fcb4618df"
}
```

### Delete purpose

Delete a purpose from your Data Manager.

**Inputs**

- Organization (`organization_id`, text): The Didomi organization. Leave empty to use the one your API key belongs to.
- Purpose (`purpose_id`, text, required): The purpose to delete. Pick one, or give its id.

**Outputs**

- `deleted` (true/false): Always true once deleted
- `purpose` (object): The purpose, now deleted
- `purpose_id` (text): The purpose deleted

**Example output**

```json
{
  "deleted": true,
  "purpose": {
    "created_at": "2026-10-01T09:00:00.000Z",
    "description": "Newsletters",
    "details": "Send you our newsletters.",
    "id": "newsletters",
    "metadata": {},
    "namespaces": {
      "custom": "newsletters",
      "didomi": "",
      "iab2": ""
    },
    "organization_id": "acme",
    "regulations_id": [
      "gdpr"
    ],
    "updated_at": "2026-10-01T09:00:00.000Z"
  },
  "purpose_id": "newsletters"
}
```

### Delete user

Delete a person and their consent status from Didomi, such as when they ask to be forgotten.

**Inputs**

- Organization (`organization_id`, text): The Didomi organization. Leave empty to use the one your API key belongs to.
- User (`user`, text, required): The person: your own user ID for them (such as their email), or Didomi's user ID if 'Look up by' says so.
- Look up by (`lookup`, text): Whether 'User' is your own user ID or Didomi's. Defaults to yours. One of: `organization_user_id` (Your own user ID (default)), `didomi_id` (Didomi user ID).

**Outputs**

- `deleted` (true/false): Always true once deleted
- `user` (object): The person, now deleted
- `user_key` (text): The user deleted

**Example output**

```json
{
  "deleted": true,
  "user": {
    "consents": {
      "channels": [],
      "purposes": [
        {
          "enabled": true,
          "enabled_li": true,
          "id": "newsletters",
          "values": {}
        }
      ],
      "tcfcs": "",
      "vendors": {
        "disabled": [],
        "disabled_li": [],
        "enabled": [],
        "enabled_li": []
      }
    },
    "country": "FR",
    "created_at": "2026-10-15T09:00:00.000Z",
    "id": "0cc784a0-4425-45ca-a62f-00dd588d1526",
    "last_seen_country": "FR",
    "metadata": {},
    "organization_id": "acme",
    "organization_user_id": "jo@example.com",
    "updated_at": "2026-10-15T09:00:00.000Z",
    "version": 1
  },
  "user_key": "jo@example.com"
}
```

### Get compliance report

Get one compliance report: its score, status and errors, and optionally every tracker and vendor it found.

**Inputs**

- Organization (`organization_id`, text): The Didomi organization. Leave empty to use the one your API key belongs to.
- Report ID (`report_id`, text, required): The report's id, from 'List compliance reports'.
- Include findings (`include_outputs`, true/false): Also return every tracker and vendor found. Can be large.

**Outputs**

- `report` (object): The compliance report

**Example output**

```json
{
  "report": {
    "created_at": "2026-01-14T06:42:48.322Z",
    "errors": [],
    "id": "rep_01HX",
    "organization_id": "acme",
    "outputs": {},
    "property_id": "prop_01HX",
    "score": 80,
    "status": "success",
    "trackers_count": 27,
    "vendors_count": 9
  }
}
```

### Get consent event

Get one consent event: the choices it recorded, its status and who made it.

**Inputs**

- Organization (`organization_id`, text): The Didomi organization. Leave empty to use the one your API key belongs to.
- Consent event ID (`event_id`, text, required): The consent event's id, from 'List consent events' or 'Record consent'.
- Your user ID (`organization_user_id`, text): Your own ID for the person the event belongs to, such as their email address. Give this or the Didomi user ID.
- Didomi user ID (`didomi_user_id`, text): Didomi's own ID for the person, if you don't use your own. Give this or your user ID.

**Outputs**

- `event` (object): The consent event

**Example output**

```json
{
  "event": {
    "consents": {
      "channels": [],
      "purposes": [
        {
          "enabled": true,
          "enabled_li": true,
          "id": "newsletters",
          "values": {}
        }
      ],
      "tcfcs": "",
      "vendors": {
        "disabled": [],
        "disabled_li": [],
        "enabled": [],
        "enabled_li": []
      }
    },
    "created_at": "2026-10-15T09:00:00.000Z",
    "delegate": {
      "id": "agent-42",
      "name": "Sam Support"
    },
    "id": "00b89328-e3d5-4068-b346-8f4fcb4618df",
    "organization_id": "acme",
    "proofs_id": [],
    "regulation": "gdpr",
    "status": "confirmed",
    "user": {
      "country": "FR",
      "id": "0cc784a0-4425-45ca-a62f-00dd588d1526",
      "metadata": {},
      "organization_user_id": "jo@example.com"
    },
    "validation": {
      "approve_url": ""
    }
  }
}
```

### Get privacy request

Get one privacy request with its status, right, deadline and the details given.

**Inputs**

- Organization (`organization_id`, text): The Didomi organization. Leave empty to use the one your API key belongs to.
- Privacy request ID (`request_id`, text, required): The privacy request's id, from 'List privacy requests' or an earlier step.

**Outputs**

- `request` (object): The privacy request

**Example output**

```json
{
  "request": {
    "created_at": "2026-10-15T09:00:00.000Z",
    "expires_at": "2026-11-29T09:00:00.000Z",
    "id": "req_01HXAMPLE",
    "metadata": {},
    "organization_id": "acme",
    "organization_user_id": "jo@example.com",
    "regulation_id": "cpra",
    "request_fields": [
      {
        "field_id": "email",
        "value": "jo@example.com"
      }
    ],
    "source": {
      "country": "US",
      "type": "DSAR"
    },
    "status": "verified",
    "updated_at": "2026-10-15T09:00:00.000Z",
    "user_right_id": "cpra_access_my_data",
    "validation": {
      "approve_url": "",
      "type": "email"
    }
  }
}
```

### Get user's consents

Get one person's current consent status: each purpose and vendor they accepted or refused, their preferences and metadata.

**Inputs**

- Organization (`organization_id`, text): The Didomi organization. Leave empty to use the one your API key belongs to.
- User (`user`, text, required): The person: your own user ID for them (such as their email), or Didomi's user ID if 'Look up by' says so.
- Look up by (`lookup`, text): Whether 'User' is your own user ID or Didomi's. Defaults to yours. One of: `organization_user_id` (Your own user ID (default)), `didomi_id` (Didomi user ID).
- Regulation (`regulation`, text): The privacy law the consent falls under. Defaults to GDPR. One of: `gdpr` (GDPR (EU and UK)), `cpra` (CPRA (California)), `cpa` (CPA (Colorado)), `ctdpa` (CTDPA (Connecticut)), `vcdpa` (VCDPA (Virginia)).
- Combine duplicates (`merge_users`, true/false): When several Didomi users share your user ID, show their consents as one.

**Outputs**

- `user` (object): The person

**Example output**

```json
{
  "user": {
    "consents": {
      "channels": [],
      "purposes": [
        {
          "enabled": true,
          "enabled_li": true,
          "id": "newsletters",
          "values": {}
        }
      ],
      "tcfcs": "",
      "vendors": {
        "disabled": [],
        "disabled_li": [],
        "enabled": [],
        "enabled_li": []
      }
    },
    "country": "FR",
    "created_at": "2026-10-15T09:00:00.000Z",
    "id": "0cc784a0-4425-45ca-a62f-00dd588d1526",
    "last_seen_country": "FR",
    "metadata": {},
    "organization_id": "acme",
    "organization_user_id": "jo@example.com",
    "updated_at": "2026-10-15T09:00:00.000Z",
    "version": 1
  }
}
```

### List compliance reports

List compliance scan reports with their score, trackers and vendors found, filtered by website, status or date.

**Inputs**

- Organization (`organization_id`, text): The Didomi organization. Leave empty to use the one your API key belongs to.
- Website (`property_id`, text): Only reports on this website.
- Status (`status`, text): Only reports in this status. One of: `success`, `partial`, `failed`, `queued`, `pending` (Running).
- Made on or after (`created_after`, date): Only reports made on or after this date.
- Made on or before (`created_before`, date): Only reports made on or before this date.
- Page size (`limit`, number): How many to return, 1 to 100. From 1 to 100.
- Skip (`skip`, number): How many to skip, such as the 'next_skip' of an earlier page. At least 0.

**Outputs**

- `count` (number): How many on this page
- `has_more` (true/false): Whether more come after these
- `next_skip` (number): Pass as 'Skip' to get the next page
- `reports` (list): The reports
- `total` (number): How many there are in all

**Example output**

```json
{
  "count": 1,
  "has_more": false,
  "next_skip": 1,
  "reports": [
    {
      "created_at": "2026-01-14T06:42:48.322Z",
      "errors": [],
      "id": "rep_01HX",
      "organization_id": "acme",
      "outputs": {},
      "property_id": "prop_01HX",
      "score": 80,
      "status": "success",
      "trackers_count": 27,
      "vendors_count": 9
    }
  ],
  "total": 1
}
```

### List consent events

List one person's consent history: every time they gave or changed their consents, and who made the change.

**Inputs**

- Organization (`organization_id`, text): The Didomi organization. Leave empty to use the one your API key belongs to.
- Your user ID (`organization_user_id`, text): Your own ID for the person the event belongs to, such as their email address. Give this or the Didomi user ID.
- Didomi user ID (`didomi_user_id`, text): Didomi's own ID for the person, if you don't use your own. Give this or your user ID.
- Status (`status`, text): Which events to include. Defaults to confirmed. One of: `confirmed` (Confirmed (default)), `pending_approval` (Pending approval), `all` (Confirmed and pending).
- Regulation (`regulation`, text): The privacy law the consent falls under. Defaults to GDPR. One of: `gdpr` (GDPR (EU and UK)), `cpra` (CPRA (California)), `cpa` (CPA (Colorado)), `ctdpa` (CTDPA (Connecticut)), `vcdpa` (VCDPA (Virginia)).

**Outputs**

- `count` (number): How many
- `events` (list): The consent events

**Example output**

```json
{
  "count": 1,
  "events": [
    {
      "consents": {
        "channels": [],
        "purposes": [
          {
            "enabled": true,
            "enabled_li": true,
            "id": "newsletters",
            "values": {}
          }
        ],
        "tcfcs": "",
        "vendors": {
          "disabled": [],
          "disabled_li": [],
          "enabled": [],
          "enabled_li": []
        }
      },
      "created_at": "2026-10-15T09:00:00.000Z",
      "delegate": {
        "id": "agent-42",
        "name": "Sam Support"
      },
      "id": "00b89328-e3d5-4068-b346-8f4fcb4618df",
      "organization_id": "acme",
      "proofs_id": [],
      "regulation": "gdpr",
      "status": "confirmed",
      "user": {
        "country": "FR",
        "id": "0cc784a0-4425-45ca-a62f-00dd588d1526",
        "metadata": {},
        "organization_user_id": "jo@example.com"
      },
      "validation": {
        "approve_url": ""
      }
    }
  ]
}
```

### List consent notices

List your organization's consent notices (cookie banners) by name and id.

**Inputs**

- Organization (`organization_id`, text): The Didomi organization. Leave empty to use the one your API key belongs to.
- Page size (`limit`, number): How many to return, 1 to 100. From 1 to 100.
- Skip (`skip`, number): How many to skip, such as the 'next_skip' of an earlier page. At least 0.

**Outputs**

- `count` (number): How many on this page
- `has_more` (true/false): Whether more come after these
- `next_skip` (number): Pass as 'Skip' to get the next page
- `notices` (list): The consent notices
- `total` (number): How many there are in all

**Example output**

```json
{
  "count": 1,
  "has_more": false,
  "next_skip": 1,
  "notices": [
    {
      "archived_at": "",
      "created_at": "2026-03-27T08:38:10.831Z",
      "id": "7wmRYUH6",
      "name": "Main website",
      "organization_id": "acme",
      "updated_at": "2026-03-27T08:38:10.831Z",
      "version": 0
    }
  ],
  "total": 1
}
```

### List organizations

List the Didomi organizations your API key reaches, with their ids.

**Inputs**

- Page size (`limit`, number): How many to return, 1 to 100. From 1 to 100.
- Skip (`skip`, number): How many to skip, such as the 'next_skip' of an earlier page. At least 0.

**Outputs**

- `count` (number): How many on this page
- `has_more` (true/false): Whether more come after these
- `next_skip` (number): Pass as 'Skip' to get the next page
- `organizations` (list): The organizations
- `total` (number): How many there are in all

**Example output**

```json
{
  "count": 1,
  "has_more": false,
  "next_skip": 1,
  "organizations": [
    {
      "created_at": "2025-01-10T09:00:00.000Z",
      "id": "acme",
      "name": "Acme",
      "organization_group_id": "",
      "organization_group_name": "",
      "public_api_key": "7dd8ec4e-7462-4b3b-9d04-0e1b4f1c7a3d",
      "updated_at": "2026-10-01T09:00:00.000Z",
      "website": "https://acme.example"
    }
  ],
  "total": 1
}
```

### List privacy requests

List privacy requests (requests to see, delete or stop selling someone's data), filtered by status, right, person or date.

**Inputs**

- Organization (`organization_id`, text): The Didomi organization. Leave empty to use the one your API key belongs to.
- Status (`status`, text): Only requests in this status. One of: `unverified` (Unverified (Didomi emails the person to confirm)), `verified`, `work_in_progress` (In progress), `fulfilled`, `refused`, `archived`.
- Right (`user_right_id`, text): Only requests for this right.
- Your user ID (`organization_user_id`, text): Only requests from the person with this ID, such as an email.
- Made on or after (`created_after`, date): Only requests made on or after this date.
- Page size (`limit`, number): How many to return, 1 to 100. From 1 to 100.
- Skip (`skip`, number): How many to skip, such as the 'next_skip' of an earlier page. At least 0.

**Outputs**

- `count` (number): How many on this page
- `has_more` (true/false): Whether more come after these
- `next_skip` (number): Pass as 'Skip' to get the next page
- `requests` (list): The privacy requests
- `total` (number): How many there are in all

**Example output**

```json
{
  "count": 1,
  "has_more": false,
  "next_skip": 1,
  "requests": [
    {
      "created_at": "2026-10-15T09:00:00.000Z",
      "expires_at": "2026-11-29T09:00:00.000Z",
      "id": "req_01HXAMPLE",
      "metadata": {},
      "organization_id": "acme",
      "organization_user_id": "jo@example.com",
      "regulation_id": "cpra",
      "request_fields": [
        {
          "field_id": "email",
          "value": "jo@example.com"
        }
      ],
      "source": {
        "country": "US",
        "type": "DSAR"
      },
      "status": "verified",
      "updated_at": "2026-10-15T09:00:00.000Z",
      "user_right_id": "cpra_access_my_data",
      "validation": {
        "approve_url": "",
        "type": "email"
      }
    }
  ],
  "total": 1
}
```

### List purposes

List the purposes in your Data Manager: the reasons you collect data that people give or refuse consent to.

**Inputs**

- Organization (`organization_id`, text): The Didomi organization. Leave empty to use the one your API key belongs to.
- Page size (`limit`, number): How many to return, 1 to 100. From 1 to 100.
- Skip (`skip`, number): How many to skip, such as the 'next_skip' of an earlier page. At least 0.

**Outputs**

- `count` (number): How many on this page
- `has_more` (true/false): Whether more come after these
- `next_skip` (number): Pass as 'Skip' to get the next page
- `purposes` (list): The purposes
- `total` (number): How many there are in all

**Example output**

```json
{
  "count": 1,
  "has_more": false,
  "next_skip": 1,
  "purposes": [
    {
      "created_at": "2026-10-01T09:00:00.000Z",
      "description": "Newsletters",
      "details": "Send you our newsletters.",
      "id": "newsletters",
      "metadata": {},
      "namespaces": {
        "custom": "newsletters",
        "didomi": "",
        "iab2": ""
      },
      "organization_id": "acme",
      "regulations_id": [
        "gdpr"
      ],
      "updated_at": "2026-10-01T09:00:00.000Z"
    }
  ],
  "total": 1
}
```

### List regulations

List the privacy laws Didomi supports (GDPR, CPRA and others), with their ids and the countries and states each applies in.

**Inputs**

- Readiness (`release_status`, text): Only regulations at this stage. Only stable ones are meant for collecting consent. One of: `stable` (Stable (ready for production)), `release-candidate` (Release candidate), `beta`, `alpha`.

**Outputs**

- `count` (number): How many
- `regulations` (list): The regulations

**Example output**

```json
{
  "count": 1,
  "regulations": [
    {
      "archived": false,
      "frameworks": [
        "iab"
      ],
      "geos": [
        {
          "country": {
            "id": "FR",
            "name": "France"
          },
          "region": {
            "id": "*",
            "name": "All"
          }
        }
      ],
      "id": "gdpr",
      "name": "General Data Protection Regulation",
      "platforms": [
        "amp",
        "app",
        "ctv",
        "web"
      ],
      "regulation_type": "optin",
      "release_status": "stable"
    }
  ]
}
```

### List request notes

List the notes on a privacy request, or on every request if none is given.

**Inputs**

- Organization (`organization_id`, text): The Didomi organization. Leave empty to use the one your API key belongs to.
- Privacy request ID (`request_id`, text): Only notes on this request.

**Outputs**

- `count` (number): How many
- `notes` (list): The notes

**Example output**

```json
{
  "count": 1,
  "notes": [
    {
      "created_at": "2026-10-16T09:00:00.000Z",
      "id": "note_01HX",
      "organization_id": "acme",
      "request_id": "req_01HXAMPLE",
      "user": {
        "name": "Sam Support"
      },
      "value": "Data export sent."
    }
  ]
}
```

### List scanned websites

List the websites Didomi scans for its compliance reports.

**Inputs**

- Organization (`organization_id`, text): The Didomi organization. Leave empty to use the one your API key belongs to.
- Page size (`limit`, number): How many to return, 1 to 100. From 1 to 100.
- Skip (`skip`, number): How many to skip, such as the 'next_skip' of an earlier page. At least 0.

**Outputs**

- `count` (number): How many on this page
- `has_more` (true/false): Whether more come after these
- `next_skip` (number): Pass as 'Skip' to get the next page
- `properties` (list): The websites
- `total` (number): How many there are in all

**Example output**

```json
{
  "count": 1,
  "has_more": false,
  "next_skip": 1,
  "properties": [
    {
      "country": "fr",
      "created_at": "2026-01-14T06:00:00.000Z",
      "enabled": true,
      "id": "prop_01HX",
      "name": "Main website",
      "organization_id": "acme",
      "pages_count": 10,
      "website": "https://acme.example"
    }
  ],
  "total": 1
}
```

### List user rights

List the rights people can ask to exercise in a privacy request, such as access, deletion or opt-out, with their ids.

**Inputs**: None.

**Outputs**

- `count` (number): How many
- `user_rights` (list): The user rights

**Example output**

```json
{
  "count": 1,
  "user_rights": [
    {
      "description": {
        "en": "You can request a copy of your personal information."
      },
      "expiration_time": 45,
      "id": "cpra_access_my_data",
      "label": {
        "en": "I want to access my data"
      },
      "name": "Right of access",
      "regulation_id": "cpra",
      "title": {
        "en": "Request to access my data"
      }
    }
  ]
}
```

### List users

List the people Didomi holds consents for, 100 at a time, with their current choices. To see more, run it again with the next page it gives.

**Inputs**

- Organization (`organization_id`, text): The Didomi organization. Leave empty to use the one your API key belongs to.
- Your user ID (`organization_user_id`, text): Only the person with this ID of yours, such as an email.
- Regulation (`regulation`, text): The privacy law the consent falls under. Defaults to GDPR. One of: `gdpr` (GDPR (EU and UK)), `cpra` (CPRA (California)), `cpa` (CPA (Colorado)), `ctdpa` (CTDPA (Connecticut)), `vcdpa` (VCDPA (Virginia)).
- Next page (`cursor`, text): The 'next_cursor' from an earlier page.

**Outputs**

- `count` (number): How many on this page
- `next_cursor` (text): Pass as 'Next page' for more; empty on the last page
- `users` (list): The people

**Example output**

```json
{
  "count": 1,
  "next_cursor": "",
  "users": [
    {
      "consents": {
        "channels": [],
        "purposes": [
          {
            "enabled": true,
            "enabled_li": true,
            "id": "newsletters",
            "values": {}
          }
        ],
        "tcfcs": "",
        "vendors": {
          "disabled": [],
          "disabled_li": [],
          "enabled": [],
          "enabled_li": []
        }
      },
      "country": "FR",
      "created_at": "2026-10-15T09:00:00.000Z",
      "id": "0cc784a0-4425-45ca-a62f-00dd588d1526",
      "last_seen_country": "FR",
      "metadata": {},
      "organization_id": "acme",
      "organization_user_id": "jo@example.com",
      "updated_at": "2026-10-15T09:00:00.000Z",
      "version": 1
    }
  ]
}
```

### Record consent

Record the purposes and vendors a person accepted or refused. Didomi adds it to their history and updates their consent status.

**Inputs**

- Organization (`organization_id`, text): The Didomi organization. Leave empty to use the one your API key belongs to.
- Your user ID (`organization_user_id`, text): Your own ID for the person, such as their email address. Didomi creates them if they're new. Give this or the Didomi user ID.
- Didomi user ID (`didomi_user_id`, text): Didomi's own ID for the person, if you don't use your own. Give this or your user ID.
- Regulation (`regulation`, text): The privacy law the consent falls under. Defaults to GDPR. One of: `gdpr` (GDPR (EU and UK)), `cpra` (CPRA (California)), `cpa` (CPA (Colorado)), `ctdpa` (CTDPA (Connecticut)), `vcdpa` (VCDPA (Virginia)).
- Purposes accepted (`purposes_given`, list): The purposes the person agreed to.
- Purposes refused (`purposes_refused`, list): The purposes the person said no to.
- Preference choices (`preference_values`, object): For each purpose id, the values chosen for each of its preferences, such as {"newsletters": {"topics": "sports,news"}}. An empty value clears a preference.
- Vendors accepted (`vendors_given`, list): The ids of vendors the person agreed to.
- Vendors refused (`vendors_refused`, list): The ids of vendors the person refused.
- Status (`status`, text): Confirmed applies the choices now. Pending approval keeps them until the event is approved (it needs your user ID). Defaults to confirmed. One of: `confirmed`, `pending_approval` (Pending approval).
- Country (`user_country`, text): The person's country, as a two-letter code such as FR.
- User metadata (`user_metadata`, object): Your own keys and values to merge into the person's metadata.
- Changed by (ID) (`delegate_id`, text): When someone changes the consent for the person (such as a support agent), their ID, so the record shows who made the change.
- Changed by (name) (`delegate_name`, text): That person's name. Needs 'Changed by (ID)'.
- Don't send to integrations (`skip_integrations`, true/false): Turn on when importing consents your other tools already have, so Didomi doesn't send them on again.
- Make a TCF consent string (`generate_tcf_string`, true/false): Also work out the person's IAB TCF consent string.

**Outputs**

- `event` (object): The consent event

**Example output**

```json
{
  "event": {
    "consents": {
      "channels": [],
      "purposes": [
        {
          "enabled": true,
          "enabled_li": true,
          "id": "newsletters",
          "values": {}
        }
      ],
      "tcfcs": "",
      "vendors": {
        "disabled": [],
        "disabled_li": [],
        "enabled": [],
        "enabled_li": []
      }
    },
    "created_at": "2026-10-15T09:00:00.000Z",
    "delegate": {
      "id": "agent-42",
      "name": "Sam Support"
    },
    "id": "00b89328-e3d5-4068-b346-8f4fcb4618df",
    "organization_id": "acme",
    "proofs_id": [],
    "regulation": "gdpr",
    "status": "confirmed",
    "user": {
      "country": "FR",
      "id": "0cc784a0-4425-45ca-a62f-00dd588d1526",
      "metadata": {},
      "organization_user_id": "jo@example.com"
    },
    "validation": {
      "approve_url": ""
    }
  }
}
```

### Update privacy request

Move a privacy request on (in progress, fulfilled, refused or archived), and give the person a link to their data. Only the fields given change.

**Inputs**

- Organization (`organization_id`, text): The Didomi organization. Leave empty to use the one your API key belongs to.
- Privacy request ID (`request_id`, text, required): The privacy request's id, from 'List privacy requests' or an earlier step.
- Status (`status`, text): The request's new status. Leave empty to keep it. One of: `unverified` (Unverified (Didomi emails the person to confirm)), `verified`, `work_in_progress` (In progress), `fulfilled`, `refused`, `archived`.
- Download link (`download_link`, text): For a request to see their data: an https link to it, sent to the person when the request is fulfilled.
- Metadata (`metadata`, object): Your own keys and values to keep on the request.

**Outputs**

- `request` (object): The privacy request

**Example output**

```json
{
  "request": {
    "created_at": "2026-10-15T09:00:00.000Z",
    "expires_at": "2026-11-29T09:00:00.000Z",
    "id": "req_01HXAMPLE",
    "metadata": {},
    "organization_id": "acme",
    "organization_user_id": "jo@example.com",
    "regulation_id": "cpra",
    "request_fields": [
      {
        "field_id": "email",
        "value": "jo@example.com"
      }
    ],
    "source": {
      "country": "US",
      "type": "DSAR"
    },
    "status": "work_in_progress",
    "updated_at": "2026-10-15T09:00:00.000Z",
    "user_right_id": "cpra_access_my_data",
    "validation": {
      "approve_url": "",
      "type": "email"
    }
  }
}
```

### Update user

Change a person's ID in your systems, country or metadata. Only the fields given change.

**Inputs**

- Organization (`organization_id`, text): The Didomi organization. Leave empty to use the one your API key belongs to.
- User (`user`, text, required): The person: your own user ID for them (such as their email), or Didomi's user ID if 'Look up by' says so.
- Look up by (`lookup`, text): Whether 'User' is your own user ID or Didomi's. Defaults to yours. One of: `organization_user_id` (Your own user ID (default)), `didomi_id` (Didomi user ID).
- New user ID (`new_organization_user_id`, text): A new ID of yours for the person. Leave empty to keep it.
- Country (`country`, text): The person's country, as a two-letter code such as FR or US.
- Metadata (`metadata`, object): Your own keys and values to keep on the person.

**Outputs**

- `user` (object): The person

**Example output**

```json
{
  "user": {
    "consents": {
      "channels": [],
      "purposes": [
        {
          "enabled": true,
          "enabled_li": true,
          "id": "newsletters",
          "values": {}
        }
      ],
      "tcfcs": "",
      "vendors": {
        "disabled": [],
        "disabled_li": [],
        "enabled": [],
        "enabled_li": []
      }
    },
    "country": "FR",
    "created_at": "2026-10-15T09:00:00.000Z",
    "id": "0cc784a0-4425-45ca-a62f-00dd588d1526",
    "last_seen_country": "FR",
    "metadata": {},
    "organization_id": "acme",
    "organization_user_id": "jo@example.com",
    "updated_at": "2026-10-15T09:00:00.000Z",
    "version": 1
  }
}
```
