SEBI Compliance

Export SEBI audit data

Export audit data for SEBI regulatory submission. Supports:

  • Multiple compliance frameworks (SEBI AI/ML, DPDP, Combined)
  • Various data types (policy violations, LLM calls, decision chain, HITL, PII redactions)
  • Multiple export formats (JSON, CSV, XML)
  • Optional PII redaction for external auditors

This endpoint is SYNCHRONOUS. The export data is collected and returned in this response; there is no job to poll and no separate download URL. (An earlier version of this text said large exports were processed asynchronously and told callers to poll a status endpoint. That was never true - the status route queried a table no migration creates, so it returned 500 on every deployment. See #3246.)

For an ASYNCHRONOUS, downloadable regulatory artifact use POST /api/v1/compliance/reports with regulator=sebi.

5-Year Retention: Per SEBI AI/ML Guidelines, all audit data is retained for minimum 5 years (1825 days).

post/api/v1/sebi/audit/export

Request

Request body

start_datestring date-time required

Start of export period (inclusive)

end_datestring date-time required

End of export period (inclusive)

data_typesSEBIAuditDataType[]

Types of audit data to export (defaults to all)

format'json' | 'csv' | 'xml'

Export output format

framework'SEBI_AI_ML' | 'DPDP_ACT_2023' | 'SEBI_DPDP_COMBINED'

SEBI compliance framework identifier

include_archivedboolean

Include records from cold storage

redact_piiboolean

Redact PII in export (for external auditors)

Response

The export, synchronously. There is no queued state: the body IS the data. status is completed, partial or failed.

export_idstring

Unique export identifier

status'completed' | 'partial' | 'failed'

Export status. SEBI audit export is SYNCHRONOUS - the POST returns the data - so there is no queued state: pending and processing were in this enum and the server has never been able to emit either (sebi_audit_export_service.go assigns the field unconditionally from sebiExportStatus on every path that returns 200).

completed ONLY when every requested section was served AND every served section's scope could reach the dimensions its writer stamps. partial when at least one but not every section is missing or scope-gapped; failed when none could be produced. On partial and failed, summary.compliance_score is ABSENT rather than zero.

exported_atstring date-time

When the export was completed

framework'SEBI_AI_ML' | 'DPDP_ACT_2023' | 'SEBI_DPDP_COMBINED'

SEBI compliance framework identifier

download_urlstring

Presigned URL to download the export from cloud storage

expires_atstring date-time

When the download URL expires

storage_type'local' | 's3' | 'gcs' | 'azure'

Storage backend used for this export

storage_keystring

Cloud storage object key (path within bucket/container)

file_size_bytesinteger

Size of the export file in bytes

file_checksumstring

SHA-256 checksum of the export file

Changes

No recorded changes to this operation across all 1 revision of this API.