Sample - OpenAI API
GET/organization/projects/{project_id}/data_retention

Retrieve project data retention

Retrieves the data retention controls configured for a project. Use project_id to identify the project you want to inspect. The response reports the project's configured retention type.

  • RetriesRetries up to 2×, 500ms backoff, 30s timeout.

1 parameter
project_idstringrequired
The ID of the project whose data retention controls you want to retrieve.

1 status code
200Returns the project data retention object with its object type and configured retention `type`.
objectstringrequired
The object type, which is always `project.data_retention`.
Allowed:project.data_retention
typestringrequired
The configured project data retention type.
Allowed:organization_defaultnonezero_data_retentionmodified_abuse_monitoringenhanced_zero_data_retentionenhanced_modified_abuse_monitoring

Error handling

project_id must identify the project whose data retention controls you want to inspect. The returned type is one of organization_default, none, zero_data_retention, modified_abuse_monitoring, enhanced_zero_data_retention, or enhanced_modified_abuse_monitoring.