Audit API initial implementation

Please use 2 spaces indentation formatting