---
title: Claude Compliance Data
description: >-
  Collect chats from your Claude organization through the Anthropic Compliance
  API.
breadcrumbs: Docs > Integrations > Claude Compliance Data
---

> For the complete documentation index, see [llms.txt](https://docs.datadoghq.com/llms.txt).

# Claude Compliance Data
Integration version1.1.0
{% callout %}
# Important note for users on the following Datadog sites: us2.ddog-gov.com

{% alert level="info" %}
To find out if this integration is available in your organization, see your [Datadog Integrations](https://app.datadoghq.com/integrations) page or ask your organization administrator.

To initiate an exception request to enable this integration for your organization, email [support@ddog-gov.com](mailto:support@ddog-gov.com).
{% /alert %}

{% /callout %}

## Overview{% #overview %}

The Claude Compliance Data integration uses the Anthropic Compliance API to collect chats from your Claude Enterprise organization, including each chat's metadata and all of its messages, from both users and Claude.

Chats are sent to Datadog as logs, with one log per message. Every log includes the chat's metadata, so you can search messages in the [Log Explorer](https://app.datadoghq.com/logs), group a full conversation by its chat ID, and keep a record of chat activity for compliance reviews and investigations.

When a chat is deleted in Claude, the integration sends a log recording the deletion, without the chat's content. Logs already collected in Datadog are not updated or removed.

## Setup{% #setup %}

### Prerequisites{% #prerequisites %}

Before you configure the integration, make sure you have:

- A [Claude Enterprise plan](https://support.claude.com/en/articles/9797531-what-is-the-enterprise-plan) with access to the [Compliance API](https://platform.claude.com/docs/en/manage-claude/compliance-api).
- A Claude organization administrator who can create a [Compliance Access Key](https://platform.claude.com/docs/en/manage-claude/compliance-api-access).

### Configuration{% #configuration %}

#### Create a Compliance Access Key{% #create-a-compliance-access-key %}

{% alert level="info" %}
For more information on how to create a Compliance Access Key, see the Claude [Set up the Compliance API](https://platform.claude.com/docs/en/manage-claude/compliance-api-access) documentation.
{% /alert %}

1. In a web browser, sign in to [claude.ai](https://claude.ai/) and navigate to **Organization settings** > **API**.
1. In the **Keys** section, click **Create key** to create a Compliance Access Key. The key begins with `sk-ant-api01-`.
1. Grant the `read:compliance_user_data` scope. This scope grants read access to every chat in the organization and is required to collect chats.
   - Do not grant the `delete:compliance_user_data` scope. This integration only reads data.
1. Copy the key for the next step.

#### Connect the organization to Datadog{% #connect-the-organization-to-datadog %}

1. In Datadog, open the **Claude Compliance Data** integration tile.
1. Select **Install**, open **Configure**, and select **Add Account**. Fill in the following details:
   - **Account name**: Enter an account name that identifies the Claude organization.
   - **Compliance Access Key**: Enter the key you created earlier, in the Create a Compliance Access Key section.
1. Enable **Collect Claude chats**. This option is disabled by default.
1. Save the account.

### Validation{% #validation %}

In the [Log Explorer](https://app.datadoghq.com/logs), search for `source:anthropic-compliance-data`. The integration collects chat activity going forward, so logs appear only after chats are created or updated in your organization, and can take up to 30 minutes to show up.

## Uninstallation{% #uninstallation %}

1. Open the **Claude Compliance Data** integration tile and select **Configure**.
1. Delete each configured account to stop future collection for that account.
1. Uninstall the integration from Datadog.
1. If the Compliance Access Key was created exclusively for this integration, delete it in [claude.ai](https://claude.ai/) under **Organization settings** > **API**.

Uninstalling the integration does not delete data already collected in Datadog.

## Data Collected{% #data-collected %}

### Metrics{% #metrics %}

Claude Compliance Data does not include any metrics.

### Logs{% #logs %}

Claude Compliance Data collects chats and assigns them the source `anthropic-compliance-data` and the service `chats`. Each log has an `event_type` attribute:

- `chat_message`: A message created or edited in a chat, with one log per message. The log contains the message and the chat's metadata under `chat`.
- `chat_updated`: A change to a chat that did not add or edit messages, such as moving the chat to another project. The log contains the chat's metadata.
- `chat_deleted`: A chat deleted in Claude. The log contains the chat's metadata, without its content.

Calls that this integration makes to the Compliance API are recorded in your organization's Activity Feed as `compliance_api_accessed` activities.

### Events{% #events %}

Claude Compliance Data does not include any events.

### Service Checks{% #service-checks %}

Claude Compliance Data does not include any service checks.

## Support{% #support %}

Need help? Contact [Datadog support](https://docs.datadoghq.com/help/).
