Docs Integrations
Anthropic Compliance API
Bring your Claude organization's activity feed — who did what in Claude, and when, as Anthropic recorded it — into your Runback audit log, sealed and checkable offline. About ten minutes, no code.
Anthropic keeps an activity feed for Claude Enterprise and Claude Console organizations: who signed in, who started a chat, uploaded a file, changed a setting, created an agent, and when. This connector copies that feed into Runback, where each record is sealed in your audit log next to everything else Runback records.
Each one is marked as recorded by Anthropic, sealed on receipt by Runback. It is Anthropic's record of what happened. It is not a policy decision, and Runback never presents it as one.
| Anthropic sends | Runback seals | |
|---|---|---|
| What happened | claude_chat_created | claude_chat_created |
| Who | user_actor, user_01TuVwXyZaBcDeFgH2JkLmN4 (user@example.com) | user_actor, user_01TuVwXyZaBcDeFgH2JkLmN4 |
| When | 2026-04-10T08:09:10Z | 2026-04-10T08:09:10.000Z |
| Which record | activity_01DeFgHjKmNpQrStUvWxYzAb | activity_01DeFgHjKmNpQrStUvWxYzAb |
| The whole record | as Anthropic sent it | kept, sha256 3d1b08448f3291dd… |
| How it arrived | Compliance API activity feed | pulled_by_runback |
| Recorded by | Anthropic | anthropic_compliance: recorded by Anthropic, sealed on receipt by Runback |
The activity above is the example from Anthropic's documentation, not anyone's data. The right-hand column is what the connector's own code produces from it.
How the records get to Runback
Anthropic offers the feed only as an API you read from, so Runback reads it for you with a key you give it.
- You create a key in Anthropic that can read the activity feed, and nothing else.
- You paste it into Runback. Runback checks it with Anthropic, then stores it encrypted.
- Every five minutes Runback asks Anthropic for activity it has not collected yet.
- Each record is stored, then sealed into your audit log within about two minutes.
Collection starts when you connect. Activity from before that is not collected.
Before you begin
- An Anthropic organization with the Compliance API turned on. On Claude Enterprise, the primary owner turns it on in claude.ai under Organization settings › API. On a standalone Claude Console organization, an admin turns it on in the Console under Settings › Compliance.
- The right role to create the key: primary owner or organization owner in claude.ai, or admin in the Console.
- An owner or admin role in Runback.
Steps
Create a key that can only read the feed
On Claude Enterprise, open claude.ai, go to Organization settings › API, and under Keys choose Create key. Name it
runback, select only the read:compliance_activities scope, and create it. Copy the key that starts withsk-ant-api01-; it is shown once.On a standalone Claude Console organization, create an Admin API key in the Console under Settings › Admin keys instead. It must be created after the Compliance API was turned on. It starts with
sk-ant-admin01-.Expected outputYou have a key. It can read the activity feed and nothing else.Connect it in Runback
In Runback, open Settings › Keys and access › Anthropic Compliance API activity, paste the key, and choose Connect.
Expected outputThe card says the key is connected and shows its last four characters. If Anthropic rejects the key, Runback says why and stores nothing.Check records arrive
Sign in to Claude, or start a chat. Within about ten minutes the same card shows how many records have arrived and when the latest came in.
What Runback records
One record per activity, with the fields Anthropic sends:
- What happened: Anthropic's activity type, for example
claude_chat_createdorplatform_agent_created, exactly as Anthropic wrote it. - Who: the kind of actor and its stable ID, for example the user's Anthropic user ID or the API key's ID. The summary never uses an email address. Anthropic recommends the user ID for matching people across systems.
- Agent: the agent's ID, when the activity is about an agent and Anthropic includes one.
- When: when it happened, by Anthropic's clock.
- The whole record: every field Anthropic sent, including any email address or IP address in it, kept as canonical JSON (RFC 8785: keys sorted, no extra spaces) and sealed by the SHA-256 hash of that text. Hashing the raw bytes of Anthropic's response will not give the same hash; canonicalize the record first.
- How it arrived: fetched by Runback from Anthropic's API with your key.
Anthropic sends the same activity more than once now and then. Runback keeps one copy and counts the rest as duplicates.
Checking a record offline
Records are sealed in batches, like Runback's own decisions, and each one can be proved on its own. Get the proof for one record by its Anthropic activity ID, with your Runback API key, from GET /api/ledger/activities/:id?source=anthropic_compliance (for example /api/ledger/activities/activity_01DeFgHjKmNpQrStUvWxYzAb?source=anthropic_compliance). Save the answer and check it with the verifier:
npx @runback/verify@3.3 proof.jsonThe proof needs @runback/verify 3.3 or later. It confirms the record is unchanged since Runback sealed it, that it sits under a checkpoint signed with Runback's published key, and that it was recorded by Anthropic.
Limits
- Runback seals what Anthropic's API returns. It does not check the records any other way.
- Anthropic says an activity can take a minute to appear in the feed. Runback waits two minutes, and re-reads the last ten minutes each time. An activity that appears more than about ten minutes late is missed.
- Each poll reads at most 5,000 records. A busier feed catches up over the next polls.
- Anthropic allows 600 requests a minute across all of your organization's Compliance API keys. Runback uses one request per poll, or up to five when there is a lot to read.
- If Anthropic rejects the key (for example after it is deleted), nothing new is collected until it is fixed, and the card shows the error. Nothing already collected is lost, and Runback resumes from where it stopped once the key works again. While the Compliance API itself is turned off, Anthropic records nothing, so there is nothing to collect for that time.
- A record without an ID or a time, or larger than 256 KB, is refused, never cut short. The card shows how many have been refused since you connected.
- Disconnect deletes the key and stops polling. Records already received stay sealed.
For your developer
The connector is a poll, not an endpoint you call. It uses GET https://api.anthropic.com/v1/compliance/activities with order=asc, a created_at window and after_id paging, as Anthropic documents. The key is stored with AES-256-GCM under EVIDENCE_CONNECTOR_SECRET_KEY, which a self-hosted deployment must set. The fields read and every assumption about Anthropic's records are listed in web/lib/connectors/anthropicCompliance.ts.
Anthropic references: the activity feed, setting up keys, polling and delivery, the API reference.