AI Compliance APIs for ChatGPT, Claude, Microsoft 365 Copilot, and Gemini
Compare AI compliance APIs for ChatGPT, Claude, Copilot, and Gemini. See what each logs, how long records last, and which tools fill monitoring gaps.

Rushali
2026 State of Agentic AI Security
How ready is your organization to secure AI agents?
3 quick questions. See how you compare to other security leaders.
Pick one employee and one afternoon of AI use. To reconstruct it, a security team may need the ChatGPT conversation, a Microsoft 365 Copilot audit event, and an endpoint event from the employee’s laptop. None of those three records tells the whole story on its own.
That is the part most evaluations skip. AI compliance APIs give authorized teams programmatic access to activity and content from supported AI workspaces, but “supported” carries a lot of weight. OpenAI and Anthropic ship dedicated compliance APIs. Microsoft 365 Copilot and Gemini surface their records through Microsoft Purview and Google Vault. What you actually get depends on the plan, the workspace, the client, and the kind of record you’re after.
What is an AI compliance API?
It’s an interface that lets security, legal, or IT pull records out of a connected AI workspace. Activity events tell you who did what, and when. Conversation content gives you the actual prompt and response. Uploaded files, resources the assistant touched, and agent sessions often live in separate records again.
The split matters the moment an investigation starts. A chat creation event proves a user opened a conversation. It says nothing about whether they pasted customer data into it. For that you need the message content, or an endpoint record that caught the input. So when a vendor says it “supports” a platform, ask which of these records its connector really pulls in.
A single interaction can leave several records
Say a finance analyst reopens an old conversation in the morning and asks for a summary. That afternoon, a colleague uploads a file and then deletes it. The activity feed might show that the analyst accessed a chat and that the colleague uploaded something. To see the question, the answer, or the file itself, you may have to go to a different content endpoint. Even with a transcript in hand, check how tool activity shows up in it. A transcript can include text that a tool returned while the original attachment stays out of reach through that endpoint.

Don’t dismiss a bare file or resource reference. Even when you can’t open the document, the reference tells an investigator exactly what to look up in the source system, under that system’s normal access controls. Store the source system and the original record ID alongside your export. The next analyst will need both to trace the evidence back.
AI compliance APIs and audit tools compared
OpenAI and Anthropic expose workspace APIs. Microsoft and Google route comparable evidence through compliance tools you probably already run. The gaps between them show up when you need full text, a legal hold, or records from one specific client.
Platform and source | Who can use it | What it records | Availability and retention | Where coverage ends |
|---|---|---|---|---|
ChatGPT via the OpenAI Compliance Logs Platform | Eligible Enterprise and Edu workspaces with the required permissions | Supported conversation messages, workspace audit events, and other enabled log categories | OpenAI makes platform logs available for 30 days. Validate collection delay for the event categories you need. | Coverage follows the connected workspace and supported event categories. Personal workspaces and local actions that never reach the workspace are outside that feed. |
Claude via the Claude Compliance API | Claude Enterprise for supported content endpoints. Standalone Claude Platform organizations can access the Activity Feed. | Activity events. Claude Enterprise can also access supported chats, files, projects, and certain session transcripts. | Anthropic documents six-year Activity Feed retention. Content and session retention depend on the record type and organization settings. | Standalone Claude Platform access is limited to Activity Feed events. Transcript coverage depends on the client, account, and session type. |
Microsoft 365 Copilot via Microsoft Purview | Microsoft 365 tenants with the relevant Copilot and Purview licensing | Audit events identify the user, time, app or service, and available references to accessed resources. Use eDiscovery for supported interaction content. | Purview Audit Standard generally retains audit events for 180 days. Interaction content follows separate retention and eDiscovery rules. | Coverage depends on the tenant and Copilot experience. Check eDiscovery when the audit event lacks the content you need. |
Gemini via Google Vault | Eligible Google Workspace editions and users covered by Vault | Vault can search and export eligible Gemini app conversations. Supported Gemini interactions inside Workspace apps can be exported. | Gemini app conversations can be retained or held under applicable Vault settings. Workspace app interactions have export-only coverage. | The Gemini app and Gemini inside Gmail, Docs, or other Workspace apps have different coverage. Personal accounts sit outside the organization’s Vault. |
Read the retention column carefully, because each cell measures something different. How long an audit event survives says nothing about how long the prompt behind it stays searchable. And being able to search a conversation doesn’t mean you can put it on legal hold. Before you set storage and access policy, find out how each record ages out at the source and again in whatever tool sits downstream.

What does the OpenAI Compliance API capture?
The OpenAI Compliance Logs Platform exposes supported records from eligible ChatGPT workspaces. Covered message content comes through the conversation-message feed. Workspace audit events cover things like administrative changes. Which records you actually receive comes down to the feeds and permissions you set up.
ChatGPT Desktop generates workspace records as long as the employee is signed in to a covered workspace. Actions that stay on the laptop are a different matter. If an endpoint policy stopped an upload, the evidence is the endpoint event. During a pilot, sign in with a work account, send a test message carrying a unique marker, and confirm the collector shows both the message text and the right workspace.
Permissions decide which OpenAI records you can retrieve
OpenAI uses a workspace-scoped Admin key, and you grant it only the permissions the integration needs. Broad compliance access, or the Conversation messages permission, has to come from a workspace owner. Narrower categories such as audit, authentication, or app logs can be granted by an owner or an admin. That separation is useful. The team reviewing sign-in events usually has no business reading what employees wrote.
If you’re assessing an integration you already have, ask three questions. Which workspace does it read? Which log categories does it collect? Does a test message show up with its content? OpenAI moved conversation logging to a new system in 2026 and retired the old stateful conversation route in June, so a connector that says it supports the Compliance API may still need an update to collect the current conversation feed. A fresh test conversation settles it.
Measure the delay at the destination
Note when the interaction happened and when it first becomes searchable in the tool your analysts actually use. The source feed and the downstream import each add their own lag. Microsoft’s ChatGPT Enterprise archive connector, for example, documents that conversations are ingested 24 hours after they occur. That number belongs to the Microsoft integration only. Time every other collector yourself.
If you need more than OpenAI’s 30-day log window, set up continuous collection into an approved archive. Then test what happens when collection breaks. Force a missed interval and check that the collector picks up from its last successful export without skipping the gap or duplicating records on replay.
What does the Claude Compliance API capture?
On Claude Enterprise, the API can return supported conversation content, files, projects, and session transcripts alongside Activity Feed events. A standalone Claude Platform organization gets the Activity Feed. So when a vendor claims a Claude Compliance API integration, hand it a test chat and see what comes back: the conversation itself, or just an activity event about it.
For Claude Desktop, Claude Code, and Cowork, write down the client, the sign-in type, and the session type during the pilot. Claude Enterprise documents transcripts for supported local sessions, with different coverage for cloud sessions and for sessions that run on API keys. If an investigation depends on one particular workflow, test that workflow. Akto documents Claude Activity Feed and Objects API ingestion for supported activity and content after the event.
Claude records age out on different schedules
According to Anthropic, new Activity Feed events become queryable within a minute, and the feed keeps six years of organization activity. That applies to the Activity Feed, and only to it. Chat, file, and project content follows the organization’s content retention rules, and it may have been deleted sooner. Supported local session transcripts default to six years, subject to any finite retention period you configure and to organization settings.
The practical consequence: an activity event can outlive the content it points to by years. If a case needs the actual conversation, export it while it still exists. And test retention under the same workspace policy you’ll run in production, not a default sandbox.
Claude Code and Cowork need separate tests
Anthropic documents local session transcript endpoints for supported Claude Enterprise workflows that run on users’ machines, Cowork and Claude Code among them. Remote session endpoints are separate and cover supported cloud Cowork and Claude Tag sessions. Confirm which session type you’re dealing with before you claim coverage. A developer running Claude Code on an API key is not the same case as one signed in with a Claude Enterprise account.
In the pilot, pull a session transcript and check the exact fields your reviewer needs. If they need the original file bytes or image content, test for that specifically. Tool output that appears in a transcript answers a narrower question than “can we recover the original file?” For the Akto connector, confirm the Activity Feed and Objects records you expect to see in Akto before treating any provider-supported transcript type as a buying criterion.
How do Microsoft 365 Copilot and Gemini handle audit records?
For Microsoft 365 Copilot, start in Microsoft Purview Audit. Search by user and interaction time, then look at the app or service and any resource references. If you need a supported prompt or response, go to Purview eDiscovery for the interaction content.
Gemini starts with a different question: where was the user when they talked to it? Eligible conversations in the Gemini app can be retained, held, searched, or exported through Google Vault. Supported interactions with Gemini inside Workspace apps, like the side panel in Gmail or Docs, go through the export workflow instead. If your policy requires a hold, confirm which of those two experiences produced the record before you lean on Vault.
Use the Copilot audit event to find the right evidence
When a Copilot event references a SharePoint file, record the identifier and look up the file and its permissions through the tenant’s approved review workflow. For the exact question and answer, find the supported interaction in eDiscovery. Write down the roles each step requires. An analyst who can see a resource reference may still need another role, or a case owner, to open the content behind it.
Try a Gemini app chat and a Workspace side panel
Have one test employee send an approved message in the Gemini app, then a second one from a Workspace side panel. Export both, if your edition supports it. Then test retention and hold for the Gemini app conversation on its own. Both interactions showing up in an export does not mean both can be held. That difference should shape where you tell employees to run workflows that carry preservation requirements.
What do compliance logs miss?
An employee copies a spreadsheet row with a customer identifier and pastes it into ChatGPT Desktop. If an endpoint policy blocks the request before it leaves the machine, the only record of the decision is in the endpoint tool. If the request reaches an eligible ChatGPT workspace, the conversation feed may hold the submitted text. A personal account on a managed laptop can still show up in supported endpoint controls. The enterprise workspace feed never sees it, because that feed only covers the connected workspace.
For prevention, evaluate the desktop, browser, and workspace controls for sensitive pastes and uploads. For investigations, confirm what records the feed really contains and how long they take to become searchable.

Match the control to the event you need
An endpoint control sees supported activity that passes through it on a device where it’s deployed. A workspace integration pulls supported records from the connected organization no matter which device the employee used. So a work account on a device without your endpoint control shows up in the workspace feed. An upload blocked locally shows up as a policy decision in the endpoint tool.
When an alert says a file was exposed, be precise about what the evidence proves. A local block proves an attempted send and the policy decision. A message record proves that text reached the work workspace. A file reference proves a file was involved. Before concluding what was shared, check whether you can retrieve the file or verify its contents.
Which tools help collect logs and monitor employee AI?
Work backwards from the evidence your team will need to review. For an investigation, that could be a preserved conversation. For a data loss alert, it could be the policy decision on a blocked desktop upload.
Tool | When to evaluate it | What to verify |
|---|---|---|
Microsoft Purview | You need Microsoft 365 Copilot audit and eDiscovery or want to archive supported ChatGPT Enterprise interactions through Microsoft’s connector. | Which conversations arrive, how long ingestion takes, and which records are available to search or preserve. |
Google Vault | You need to investigate or retain eligible Gemini app conversations. | Which users are covered by Vault and whether an investigation concerns the Gemini app or Gemini inside Workspace. |
Cribl Stream or Splunk | You need to collect OpenAI logs or bring OpenAI and Microsoft data into a security investigation workflow. | The configured inputs, event types, and identity mapping. Cribl can collect OpenAI compliance logs. Splunk documents inputs for OpenAI and Microsoft 365 Copilot. |
Akto | You need supported desktop inspection and policy review of supported Copilot audit records. | For ChatGPT Desktop, test supported traffic and uploads routed through Akto System Proxy. For Microsoft 365 Copilot, verify the prompt, response, and resource details available for a finding from Purview. The Akto OpenAI connector documents ingestion of supported organization and audit events through the OpenAI Admin API. |
Compare connectors using the same test message
Cyberhaven and Netskope. Both appear on OpenAI’s list of integrations that support the updated conversation-message logs. Ask each vendor to show you the same test message in its product, and to say whether it came from the OpenAI workspace feed or was captured on the device. If you also need Copilot evidence, ask for a separate demo using a Microsoft 365 Copilot interaction. Coverage of the OpenAI feed proves coverage of the OpenAI feed, nothing more.
Cribl and Splunk. Cribl Stream fits when you need to collect OpenAI compliance logs and route them to a destination your security team already works in. Splunk fits when an analyst needs to query OpenAI and Microsoft 365 records side by side in one investigation. With either, ask which source input produces each event, how collection resumes after an interruption, and which fields survive parsing and filtering.
Akto. Run the same approved ChatGPT Desktop request, plus a separate supported Copilot interaction. Review the desktop event routed through Akto System Proxy, and the Copilot finding built on available Purview records. For Claude, validate one Activity Feed event and one supported object record, separately. For the OpenAI connector, ask for proof of the exact event type you need before you count conversation-message collection as verified.
Worked example: investigate ChatGPT Desktop and Copilot activity
You need one test employee, approved synthetic content, and a unique marker such as AI-AUDIT-01. What follows is an illustrative pilot, not a description of a customer deployment.
In ChatGPT Desktop, sign in to the connected work workspace and send an approved prompt that includes the marker. Search the configured OpenAI collector for the conversation message. Note which user, workspace, timestamp, and message fields come through.
In Microsoft 365 Copilot, have the same test user summarize an approved test document. Find the interaction in Purview Audit. If the review needs the prompt or reply, run the supported eDiscovery workflow and note what it returns.
On the managed device, run a separate upload test using a synthetic value that matches a test policy. Check the endpoint event for user, device, app, and policy decision. If the policy blocks the upload before submission, that endpoint event is your only evidence of the attempt.
Join the records on the mapped work identity and timestamps. Keep the originating system and record ID with every event. Where an analyst has the audit event but needs the actual text, document where to retrieve it and which role can.
If the marker doesn’t show up, check credentials and permissions, the work account and workspace, and the last successful collection time, then repeat the test. Use the source console or an approved native export to confirm the event exists at all. That tells you whether the gap is in the provider’s coverage or in the downstream collector.
Hand off the results as a short evidence table. Include a link or ID for every source record and note wherever a detail was missing. The pilot passes when a second analyst can rerun the search and reach the same conclusion about what the employee did.
Pilot scenario | Evidence that answers the question |
|---|---|
ChatGPT Desktop message accepted by the work workspace | A supported OpenAI conversation-message record containing the test marker, if the test is intended to prove message capture. |
Copilot retrieves an approved document | A Purview audit event with the user, time, and an available resource reference. Retrieve interaction content separately where the case requires it. |
Endpoint policy blocks a test upload | A policy event tied to the test device and user. Confirm that the blocked upload didn’t reach the workspace. |
Frequently asked questions
Do AI compliance APIs show personal ChatGPT or Claude activity?
No. Workspace compliance APIs cover the connected organization and its eligible accounts, and a personal ChatGPT or Claude session sits outside that feed. If staff use personal accounts on managed devices, look at a browser or endpoint control, and test whether it can tell work and personal accounts apart on the clients you actually deploy.
Can an AI compliance API block a sensitive prompt?
No. A compliance export records activity in its supported workspace after the fact. Stopping a sensitive prompt before it reaches the service takes a control in the request path, such as browser or endpoint DLP. Test a blocked prompt and a permitted prompt separately so you know which system records each outcome.
Can I send Microsoft 365 Copilot activity to the OpenAI Compliance API?
No. Microsoft Purview is the source for Microsoft 365 Copilot activity, and the OpenAI Compliance API supplies OpenAI workspace records. To investigate both in one place, set up separate inputs for each source in a common destination, and make sure both use a consistent employee identity and timestamp format.
What should I check before relying on an AI log for a legal hold?
Start with your legal and records teams: what content do they need preserved? Then confirm that the case workflow supports that record type, covers the right users and workspace, and meets the retention requirement. Finally, test whether a hold actually preserves the prompts, responses, or files the review calls for.
Does a compliance API capture transcripts from Claude Code and Cowork?
On Claude Enterprise, yes for supported local Claude Code and Cowork sessions and certain remote sessions. Check how the user signed in, where the session ran, and which transcript endpoint applies. API-key workloads can produce Activity Feed events without their prompts or model responses being available through the Claude Compliance API.
Does the 30-day OpenAI log window set our retention period?
No. OpenAI keeps Compliance Logs Platform records available for 30 days, but your retention period is yours to set. If policy requires longer, export supported records to an approved destination while they’re still available. The archive should enforce its own access and deletion rules. Test retrieval from it using a real test record ID.
Can Gemini records from the app and Workspace side panels be held in Vault?
Only the app conversations. Vault can hold eligible standalone Gemini app conversations under the relevant licensing and settings, while supported Gemini interactions inside Workspace apps are export-only. Confirm where the user was working before assuming a hold applies, and for a live case, check the exact record type and preservation workflow with your records team.
Experience enterprise-grade Agentic Security solution
