enterprise.compliance.export.create
Creates an audit-event export task. Runs asynchronously — the call returns immediately with status COMPLIANCE_EXPORT_STATUS_PENDING. Poll enterprise.compliance.export.detail until status is COMPLIANCE_EXPORT_STATUS_COMPLETED, then call enterprise.compliance.export.downloadUrl to fetch the archive. All filters are optional; omit them to export every event your enterprise’s teams have captured.
Authorizations
Body
Filter to a single user by user ID. Omit to include all users across your enterprise's teams.
"114504"
Filter to a single session (task). Omit to include all sessions.
"5YX76pz7Dga3yztNVw97Dh"
Lower time bound (RFC3339), inclusive. Only events with occurred_at on or after this time are included.
Upper time bound (RFC3339), exclusive. Only events with occurred_at strictly before this time are included.
Filter by event type. Omit to include all four event types.
Type of audit event. Each maps to one step of an agent session: USER_CHAT (the user's message), AGENT_REPLY (the agent's response), TOOL_CALL (a tool invocation with its arguments), TOOL_RESULT (the result returned by a tool).
EVENT_NAME_UNSPECIFIED, EVENT_NAME_USER_CHAT, EVENT_NAME_AGENT_REPLY, EVENT_NAME_TOOL_CALL, EVENT_NAME_TOOL_RESULT When true, embed each event's payload (chat text, tool arguments, tool results) in the export. Payloads are only available for events captured at Tier 2 (requires a signed SIEM DPA); for metadata-only (Tier 1) data this has no effect.
Reason for the export. Logged for compliance auditing — supply a meaningful value.
"quarterly compliance review"
Response
Export task created successfully.
Whether the request was successful.
true
Unique identifier for this API request, useful for debugging.
Unique identifier of the export task. Use it with enterprise.compliance.export.detail and enterprise.compliance.export.downloadUrl.
Initial status. Always COMPLIANCE_EXPORT_STATUS_PENDING for a freshly created task.
COMPLIANCE_EXPORT_STATUS_UNSPECIFIED, COMPLIANCE_EXPORT_STATUS_PENDING, COMPLIANCE_EXPORT_STATUS_PROCESSING, COMPLIANCE_EXPORT_STATUS_COMPLETED, COMPLIANCE_EXPORT_STATUS_FAILED Task creation time (RFC3339).