---
title: Anthropic connector reference
description: Reference information for the Anthropic connector, including supported tables and their schemas.
canonical_url: https://docs.databricks.com/gcp/en/ingestion/lakeflow-connect/anthropic-reference
---

# Anthropic connector reference

> [!NOTE]
> **Beta**
>
> This feature is in [Beta](https://docs.databricks.com/gcp/en/release-notes/release-types.md). To use it, a workspace admin must turn on **Lakeflow Connect for Anthropic** from the **Previews** page. See [Manage Databricks previews](https://docs.databricks.com/gcp/en/admin/workspace-settings/manage-previews.md).

This page provides reference information for the Anthropic connector, including supported tables and their schemas.

## <a id="supported-tables" />Supported source tables

The Anthropic connector supports the following source tables:

| Source table           | Primary key               | Description                                                                                                                                                                                                   | Sync mode         | Cursor field |
| ---------------------- | ------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------- | ------------ |
| `audit_log_activities` | `id`                      | Compliance Activity Feed entries for your Anthropic organization. Each row is an audit activity event. The `raw_event` column contains the full event record, including fields specific to the activity type. | Incremental       | `created_at` |
| `organizations`        | `uuid`                    | Organizations in your Anthropic account. This is the directory root that the `users`, `roles`, and `settings` tables are ingested per.                                                                        | Full refresh only |              |
| `users`                | `org_uuid`, `id`          | Users in each organization. Requires the `read:compliance_user_data` scope on the Compliance Access Key.                                                                                                      | Full refresh only |              |
| `roles`                | `org_uuid`, `id`          | Roles defined in each organization.                                                                                                                                                                           | Full refresh only |              |
| `groups`               | `id`                      | Groups in your Anthropic organization.                                                                                                                                                                        | Full refresh only |              |
| `settings`             | `organization_id`, `name` | Effective compliance settings for each organization, one row per setting. The setting value is preserved in the `value` column.                                                                               | Full refresh only |              |
| `chats`                | `id`                      | Content metadata for claude.ai chats, ingested per user.                                                                                                                                                      | Incremental       | `updated_at` |
| `messages`             | `id`                      | Full message content for claude.ai chats, ingested per chat. Message content, files, generated files, and artifacts are preserved in `VARIANT` columns.                                                       | Incremental       | `created_at` |

## Connector options

The Anthropic connector has no additional configuration options beyond the pipeline settings available for all managed connectors. See [Ingest data from Anthropic](https://docs.databricks.com/gcp/en/ingestion/lakeflow-connect/anthropic-pipeline.md).

## <a id="destination-table-schemas" />Destination table schemas

### <a id="audit-log-activities-schema" />`audit_log_activities`

**Primary key:** `id`
**Cursor field:** `created_at`

| Field               | Data type |
| ------------------- | --------- |
| `id`                | `STRING`  |
| `created_at`        | `STRING`  |
| `type`              | `STRING`  |
| `organization_id`   | `STRING`  |
| `organization_uuid` | `STRING`  |
| `actor`             | `VARIANT` |
| `claude_chat_id`    | `STRING`  |
| `claude_project_id` | `STRING`  |
| `raw_event`         | `VARIANT` |

### <a id="organizations-schema" />`organizations`

**Primary key:** `uuid`
**Sync mode:** Full refresh only

| Field        | Data type |
| ------------ | --------- |
| `uuid`       | `STRING`  |
| `name`       | `STRING`  |
| `created_at` | `STRING`  |

### <a id="users-schema" />`users`

**Primary key:** `org_uuid`, `id`
**Sync mode:** Full refresh only

| Field               | Data type |
| ------------------- | --------- |
| `org_uuid`          | `STRING`  |
| `id`                | `STRING`  |
| `full_name`         | `STRING`  |
| `email`             | `STRING`  |
| `organization_role` | `STRING`  |
| `created_at`        | `STRING`  |

### <a id="roles-schema" />`roles`

**Primary key:** `org_uuid`, `id`
**Sync mode:** Full refresh only

| Field         | Data type |
| ------------- | --------- |
| `org_uuid`    | `STRING`  |
| `id`          | `STRING`  |
| `name`        | `STRING`  |
| `description` | `STRING`  |
| `created_at`  | `STRING`  |
| `updated_at`  | `STRING`  |

### <a id="groups-schema" />`groups`

**Primary key:** `id`
**Sync mode:** Full refresh only

| Field         | Data type       |
| ------------- | --------------- |
| `id`          | `STRING`        |
| `name`        | `STRING`        |
| `description` | `STRING`        |
| `source_type` | `STRING`        |
| `roles`       | `ARRAY<STRING>` |
| `created_at`  | `STRING`        |
| `updated_at`  | `STRING`        |

### <a id="settings-schema" />`settings`

**Primary key:** `organization_id`, `name`
**Sync mode:** Full refresh only

| Field             | Data type |
| ----------------- | --------- |
| `organization_id` | `STRING`  |
| `name`            | `STRING`  |
| `type`            | `STRING`  |
| `value`           | `VARIANT` |

### <a id="chats-schema" />`chats`

**Primary key:** `id`
**Cursor field:** `updated_at`

| Field               | Data type |
| ------------------- | --------- |
| `id`                | `STRING`  |
| `user_id`           | `STRING`  |
| `name`              | `STRING`  |
| `created_at`        | `STRING`  |
| `updated_at`        | `STRING`  |
| `deleted_at`        | `STRING`  |
| `model`             | `STRING`  |
| `organization_id`   | `STRING`  |
| `organization_uuid` | `STRING`  |
| `project_id`        | `STRING`  |
| `href`              | `STRING`  |
| `is_deleted`        | `BOOLEAN` |

### <a id="messages-schema" />`messages`

**Primary key:** `id`
**Cursor field:** `created_at`

| Field             | Data type |
| ----------------- | --------- |
| `chat_id`         | `STRING`  |
| `id`              | `STRING`  |
| `role`            | `STRING`  |
| `content`         | `VARIANT` |
| `files`           | `VARIANT` |
| `generated_files` | `VARIANT` |
| `artifacts`       | `VARIANT` |
| `created_at`      | `STRING`  |
