Programatically confirm data sharing option

Hi to the experts:

I want to use openai via API in a python script. I want to analyze sensitive data. Therefore, I would like to check programatically if my data sharing options are correct which means every data sharing disabled. I want to do this programatically, because it could happen that I accidently changed these setting. If the code finds out that data sharing is not disabled then it should drop a message and stop excution.

Is there a way to do this?

Thanks in advance!

Welcome to the community!

I’m wondering if this might be doable through the audit log interface

https://platform.openai.com/docs/api-reference/audit-logs/object

But I can’t find the actual field this would go into :thinking: