before_id is the first_id from a previous response changedmanage-claude/compliance-integration-patterns
Nearest release: v2.1.330, published under an hour before this site recorded the change. Shown because the two are within 24 hours of each other. Nothing here says the release caused the edit.
Recorded here
Lines+18added
Lines−18removed
From line
31
where the diff opens
First seen
14 Aug 2026
this site's first read of the page
Recorded edits20to this page, all time
The whole hunk
from line 31, old and new numbered
/
from line 31
3131* Cursor values are opaque strings that you must not parse.
3232* Requests are limited to 600 per minute for each [parent organization](https://platform.claude.com/docs/en/manage-claude/compliance-api#how-the-compliance-api-works), shared across every key, every linked organization, and every `/v1/compliance/*` endpoint; unlike the local session endpoints, the remote session endpoints carry a second request budget on top. See [429 Too Many Requests](https://platform.claude.com/docs/en/manage-claude/compliance-errors#429-too-many-requests) for the response headers and retry contract.
3333
34| Pattern | Choose when |
35| ------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
36| Window polling | Your pipeline runs on a fixed schedule, you prefer stateless workers, and you can tolerate replaying or overlapping windows |
34| Pattern | Choose when |
35| ----- | ----- |
36| Window polling | Your pipeline runs on a fixed schedule, you prefer stateless workers, and you can tolerate replaying or overlapping windows |
3737| Cursor-driven incremental reads | You want the lowest latency between an activity occurring and your pipeline ingesting it, you want to avoid re-reading pages you already drained, and you have a durable place to persist a cursor between runs |
3838
3939### Window polling
from line 95
9595
9696Each `Activity` carries fields you can join against events already in your SIEM (Splunk, Datadog, Microsoft Sentinel, Cribl, or similar):
9797
98| Compliance API field | Join target |
99| --------------------- | ----------------------------------------------------------------------- |
100| `actor.user_id` | Your identity provider’s stable user identifier |
101| `actor.email_address` | Directory email when a stable ID is unavailable |
102| `actor.ip_address` | Network, VPN, and endpoint logs |
103| `actor.user_agent` | Endpoint and device inventory, and the client app that made the request |
104| `created_at` | Time-window correlation across any source |
98| Compliance API field | Join target |
99| ----- | ----- |
100| `actor.user_id` | Your identity provider’s stable user identifier |
101| `actor.email_address` | Directory email when a stable ID is unavailable |
102| `actor.ip_address` | Network, VPN, and endpoint logs |
103| `actor.user_agent` | Endpoint and device inventory, and the client app that made the request |
104| `created_at` | Time-window correlation across any source |
105105
106106`actor.user_id` and `actor.email_address` are present when `actor.type` is `user_actor`. `actor.ip_address` and `actor.user_agent` are absent on some actor types, such as `anthropic_actor` and `scim_directory_sync_actor`. Check the discriminator before reading any of these fields. `user_id` is a stable, opaque identifier for the user account: it is consistent across every Compliance API endpoint and activity payload, and it does not change when the user’s email or display name changes. Use `user_id`, not `email_address`, as the primary join key.
107107
from line 113
113113
114114Six retention horizons govern what you can retrieve later:
115115
116| Data | Retained for | Controlled by |
117| ------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------ |
118| Activity Feed records | 6 years | Anthropic |
119| Chat, file, and project content | Your organization’s claude.ai retention policy, unless a user deletes it sooner | Your organization |
120| Local session transcripts (sessions on users’ machines) | 6 years by default, or your organization’s custom conversation retention period when a finite one is set; 30 days in organizations with HIPAA readiness enabled | Anthropic by default; your organization when it sets a custom period |
121| Remote session transcripts (sessions in the cloud), other than Claude Tag | No default period; see [Retention and deletion](https://platform.claude.com/docs/en/manage-claude/compliance-sessions#retention-and-deletion) | Your users by default; also your organization’s retention policy for sessions that Claude starts from a chat |
122| Claude Tag session transcripts (sessions in the cloud) | No default period; deleted with their channel or Slack workspace (see [Retention and deletion](https://platform.claude.com/docs/en/manage-claude/compliance-sessions#retention-and-deletion)) | Your organization |
123| Content hard-deleted through the Compliance API | Not retained; deletion is immediate and permanent | The caller of the `DELETE` endpoint |
116| Data | Retained for | Controlled by |
117| ----- | ----- | ----- |
118| Activity Feed records | 6 years | Anthropic |
119| Chat, file, and project content | Your organization’s claude.ai retention policy, unless a user deletes it sooner | Your organization |
120| Local session transcripts (sessions on users’ machines) | 6 years by default, or your organization’s custom conversation retention period when a finite one is set; 30 days in organizations with HIPAA readiness enabled | Anthropic by default; your organization when it sets a custom period |
121| Remote session transcripts (sessions in the cloud), other than Claude Tag | No default period; see [Retention and deletion](https://platform.claude.com/docs/en/manage-claude/compliance-sessions#retention-and-deletion) | Your users by default; also your organization’s retention policy for sessions that Claude starts from a chat |
122| Claude Tag session transcripts (sessions in the cloud) | No default period; deleted with their channel or Slack workspace (see [Retention and deletion](https://platform.claude.com/docs/en/manage-claude/compliance-sessions#retention-and-deletion)) | Your organization |
123| Content hard-deleted through the Compliance API | Not retained; deletion is immediate and permanent | The caller of the `DELETE` endpoint |
124124
125125To learn how the rest of the Claude Platform handles retention, see [API and data retention](https://platform.claude.com/docs/en/manage-claude/api-and-data-retention).
126126
No line in this hunk matches that.