GET
/organization/projects/{project_id}/data_retentionRetrieve 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.
project_idstringrequired
The ID of the project whose data retention controls you want to retrieve.
200Returns the project data retention object with its object type and configured retention `type`.
objectstringrequired
The object type, which is always `project.data_retention`.
typestringrequired
The configured project data retention type.
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.