SEBI Compliance

Get retention status

Get the 5-year retention compliance status for all audit data types.

SEBI AI/ML Guidelines require:

  • All AI/ML decisions retained for 5 years
  • Audit trail for human oversight
  • Decision chain tracing

This endpoint reports compliance status for each data type.

get/api/v1/sebi/audit/retention

Request

Response

Retention status

tenant_idstring

The scope key the retention rows were read for. This property was documented as org_id: integer and the server has never emitted it (#3435 R8): the struct field is TenantID string \json:"tenant_id"`` (sebi_audit_export_types.go SEBIRetentionStatusResponse), so the documented property was absent from every response and the one the server does send was undocumented.

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

SEBI compliance framework identifier

compliance_status'COMPLIANT' | 'NON_COMPLIANT' | 'UNKNOWN'

Compliance status indicator.

WARNING was in this enum and is removed (#3435 R7): no code path assigns it. The three values below are the only ones the server writes (sebi_audit_export_service.go GetRetentionStatus). UNKNOWN was MISSING and is the common answer, not an edge case: it is returned whenever the retention period or the record counts backing a row could not be measured, and audit_retention_config ships EMPTY on a stock migration-applied database, so a stock deployment reports UNKNOWN for every data type. A readiness CHECK speaks a different vocabulary on a different schema: see SEBIComplianceCheck.status, which carries pass/fail/warning/unknown and is NOT this enum.

next_cleanupstring date-time

Next scheduled cleanup

Changes

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